Skip to content

angara/meteo_data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angara.Net: Meteorological Database Service

API

Meteorological data are represented as float values:

  • t - air temperature (Celsium degrees)
  • d - dew point temperature (Celsium degrees)
  • p - atmospheric pressure (hPa)
  • h - relative humidity (%)
  • w - wind speed (m/s)
  • g - qust wind speed (m/s)
  • b - wind direction (0-360)
  • r - rainfall (mm)

Parameter suffix ? means "optional parameter".

  • /meteo/api/active-stations

    • query params:
      • search? - substring to search in station name or description
      • lat? float - both lan and lon required to sort stations by location
      • lon? float
      • last-hours? - last hours to include in last-vals (1..50)
    • response: {stations:[{...station data...}, ]}
  • /meteo/api/station-info

    • query params:
      • st=<station_name> - station_name
    • response:
      {st:"..", title:"...", ... , last_ts: ..., last:{t:<val>, t_ts:<timestamp>, t_delta:<val>, ...}}
  • /meteo/api/station-hourly

    • query params:
      • st - station_name
      • ts-beg? - begin timestamp, ISO string (default 24 hours before now)
      • ts-end? - end timestamp, ISO string (defautl now)
    • response:
      {st, ts_beg, ts_end, series: [{t:[99.9, null, null, -99], p:[800, 900, null, ...], ... }]}

Inbound

Username from basic authorization header used in hwid to station name mapping.

  • /meteo/_in
    • query params:
      • hwid - sensor id (string)
      • ts? - sample timestamp (int, milliseconds)
      • t?, d?, p?, h?, w?, g?, b?, r? - values (float), at least one value required

About

Meteorological Database Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published