I have a river running close to my house and I have set up the following items to monitor the level:
Number RiverLevel “River Level [%.3f]” (River) {http="<[http://environment.data.gov.uk/flood-monitoring/id/stations/E21511/measures:1800000:JSONPATH($.items[0].latestReading.value)]"}
DateTime LastObs “Last measurement [%1$tR]” (River) {http="<[http://environment.data.gov.uk/flood-monitoring/id/stations/E21511/measures:1800000:JSONPATH($.items[0].latestReading.dateTime)]"}
There are other data feeds, including typical and maximum levels. Documentation can be found on the EA website: http://environment.data.gov.uk/flood-monitoring/doc/reference.
Might be of interest to anyone who has a river nearby or lives near the coast.
I also wanted to be able to extract the flood warning data but I can’t get that working:
String FloodMessage “Flood warning [%s]” (River) {http="<[http://environment.data.gov.uk/flood-monitoring/id/floodAreas/122WAF933:900000:JSONPATH($.items[].message)]"}
Number FloodSev “Flood warning severity [%.1f]” (River) {http="<[http://environment.data.gov.uk/flood-monitoring/id/floodAreas/122WAF933:900000:JSONPATH($.items[].severityLevel)]"}
String FloodSevText “Flood warning severity [%s]” (River) {http="<[http://environment.data.gov.uk/flood-monitoring/id/floodAreas/122WAF933:900000:JSONPATH($.items[].severity)]"}
DateTime FloodUpdate “Time of last update [%1$tT, %1$tF]” (River) {http="<[http://environment.data.gov.uk/flood-monitoring/id/floodAreas/122WAF933:900000:JSONPATH($.items[].timeMessageChanged)]"}