ioBroker / ioBroker.simple-api

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

GetPlainValue not working as expected. #148

Closed lumo2707 closed 1 year ago

lumo2707 commented 2 years ago

Describe the bug
When i am trying to get a value from an ioBroker object i got the following error: error: datapoint "weatherunderground.0.forecast.current.temp" not found

My call is: http://192.168.178.138:8087/getPlainValue/weatherunderground.0.forecast.current.temp

The object is generated by WeatherUnderground and has the following structure:

image

Other calls like getting the windDirection with http://192.168.178.138:8087/getPlainValue/weatherunderground.0.forecast.current.windDirection is working, but not for temp and wind.

Expected behavior
Get the temperature value

Screenshots & Logfiles
If applicable, add screenshots and logfiles to help explain your problem.

Versions:

Apollon77 commented 2 years ago

Do they really have a value? Which value is shown in Admin for them? Your screenshot do not include this

lumo2707 commented 2 years ago

Sorry, my fault:

image
Apollon77 commented 2 years ago

Very interesting.

Please execute in a shell

iob state get weatherunderground.0.forecast.current.temp

lumo2707 commented 2 years ago

Then I get the following: {"val":54.9,"ack":true,"ts":1654587183268,"q":0,"from":"system.adapter.weatherunderground.0","user":"system.user.admin","lc":1654587183268}

Its weird, the api call is working for all attributes, instead of temp and wind.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.

stale[bot] commented 1 year ago

This issue has been automatically closed because of inactivity. Please open a new issue if still relevant and make sure to include all relevant details, logs and reproduction steps. Thank you for your contributions. Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnet ein neues Issue, falls dies noch relevant ist und stellt sicher das alle relevanten Details, Logs und Reproduktionsschritte enthalten sind. Vielen Dank für Eure Unterstützung.