Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.
/ pmoAPI Public archive

Get water info from Povodí Moravy in a simple API.

License

Notifications You must be signed in to change notification settings

DanielKrasny/pmoAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pmoAPI

This repository is no longer supported. Use PovodiAPI

pmoAPI Get water info in a simple API. This PHP script supports Povodí Moravy.

Usage

Nádrže

./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¨

SaP (Stavy a průtoky)

./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

Srážky

./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, channel srazky and set values to all. Allow showing temperature in title. Options: yes, no
License

The script is available under the MIT license.

About

Get water info from Povodí Moravy in a simple API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages