I want to create a graph with the current covid cases.
I wanted to do that with the http binding get JSON data from “https://coronavirus-19-api.herokuapp.com/all”
The format of the data is:
{“cases”:200071,“deaths”:8009,“recovered”:82813}
In the http cfg I added:
covidworldwide.url=https://coronavirus-19-api.herokuapp.com/all
covidworldwide.updateInterval=5000
In the corresponding .items file I have:
String covidcasesworld "Cases [%s]" {http="<[covidworldwide:5000:JSONPATH($.cases)]"}
Still, i get the full “{“cases”:200071,“deaths”:8009,“recovered”:82813}” back as String.
Probably a small mistake that Im making but what am I doing wrong here?
Thanks!