This repository is no longer supported. Use PovodiAPI
Get water info in a simple API. This PHP script supports Povodí Moravy.
./pmoapi.php?channel=nadrze&station=1&response=json&values=all
Required to enter:
- channel: nadrze (used for this example), sap, srazky
- station: ID of station, available in /stations
- response: json, rss
- values: all, latest¨
./pmoapi.php?channel=sap&station=045&response=json&values=all
Required to enter:
- channel: nadrze, sap (used for this example), srazky
- station: ID of station, available in /stations
- response: json, rss
- values: all, latest
./pmoapi.php?channel=srazky&station=76&response=json&values=latest
Required to enter:
- channel: nadrze, sap, srazky (used for this example)
- station: ID of station, available in /stations
- response: json, rss Optional:
- values: all, latest (including total value), total
- temp: Only for
rss
response, channelsrazky
and set values toall
. Allow showing temperature in title. Options: yes, no
The script is available under the MIT license.