ioBroker / ioBroker.simple-api

HTTP-API Interface to read and write objets and states
MIT License
40 stars 19 forks source link

query history adapter #135

Closed froggi1930 closed 2 years ago

froggi1930 commented 2 years ago

The query will only return the latest datapoint regardless of which time (from - to) is set.

Apollon77 commented 2 years ago

Please provide details how your call looks like

froggi1930 commented 2 years ago

The call is like this... http://192.168.178.222:8087/query/javascript.0.ShellyVerbrauch.SHPLG-S%231D3709%231.Relay0.gestern?dateFrom=2022-04-01T12:00:00.000Z&dateTo=2022-04-08T01:00:10.000Z

As a result I only get the latest datapoint...

[   | {   | "target": "javascript.0.ShellyVerbrauch.SHPLG-S#1D3709#1.Relay0.gestern",   | "datapoints": [   | [   | 409.55,   | 1649541600417   | ]   | ]   | }   | ]

Apollon77 commented 2 years ago

Ok, lets iterate in Forum