major67
Forum Replies Created
-
Forum: Plugins
In reply to: [Get Use APIs - JSON Content Importer] Problem with array and itemsIch hab’s per CSS gelöst, indem ich die ‘longname’-Ausgabe unsichtbar mache.
Quick and dirty, aber für den Zweck reicht es.`<span style=”visibility:hidden; font-size: 0px;”>{longname} </span>
Ich werde mir aber über kurz oder lang ein Plugin für meine Zwecke schustern müssen.
Danke !
Forum: Plugins
In reply to: [Get Use APIs - JSON Content Importer] Problem with array and itemsHallo,
vielen Dank. Klar, das funktioniert, allerdings ist das relativ unbrauchbar, wegen des {longname}-“Zwangs”. Bei Wasserstand könnte man damit leben, bei “ABFLUSS_ROHDATEN” und “WASSERTEMPERATUR ROHDATEN” wird es aber unelegant.
Schade, weil das Quell-JSON jetzt gar nicht so kompliziert ist und in PHP leicht zu parsen.
Würde die PRO-Version das vereinfachen ?
Gruß,
Marco.Forum: Plugins
In reply to: [Get Use APIs - JSON Content Importer] Template Syntax too difficultThe API access is public: https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations/a6ee8177-107b-47dd-bcfd-30960ccc6e9c.json?includeTimeseries=true&includeCurrentMeasurement=true
Tried some other ways to “walk” the JSON “down”, but i gave up. I have done this in PHP once a time ago and it was SO easy to parse the JSON.
The only thing i got is the root values like uuid, number, shortname and so on. Couldn’t get any value in the following ‘timeseries’-array.