Logic Machine Forum
API 3.0 - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: API 3.0 (/showthread.php?tid=5718)



API 3.0 - balatis - 02.11.2024

Hello,

The api 2.5 version is no longer supported by openweather.
Is there any suggestion to support API 3.0 ? 

Thank you in advance.


RE: API 3.0 - RomansP - 04.11.2024

Hello,

I would like to know - what data do you need from openweather


RE: API 3.0 - balatis - 04.11.2024

Hello,

Data we want from openweather are :
- current temperature
- current Humidity
- current wind speed
- daily Temperature min
- daily Temperature max
- daily Weather condition
- daily pressure
- daily forecast 
- daily weather description


RE: API 3.0 - RomansP - 05.11.2024

We have tested API 3.0, and unfortunately there are no free subscriptions to use API.
So we suggest you to use our weather script from our knowledge base:
https://kb.logicmachine.net/scripting/yr-weather-forecast/


RE: API 3.0 - artur4e - 28.02.2025

Hello!
I tried our weather script https://kb.logicmachine.net/scripting/yr-weather-forecast/, but there are the following errors:

Library genohm-scada:0: attempt to index global 'json' (a nil value)
stack traceback:
Library genohm-scada: in function <Library genohm-scada:0>
Library genohm-scada: in function 'create'
User script:9: in function 'create'

What ideas? What сan I checked?

Arthur


RE: API 3.0 - admin - 28.02.2025

Which firmware version do you have?


RE: API 3.0 - artur4e - 28.02.2025

HW: LM5 Lite (i.MX6)
SW: 20240402


RE: API 3.0 - admin - 28.02.2025

Install stable release version 20240426: https://forum.logicmachine.net/showthread.php?tid=5393


RE: API 3.0 - artur4e - 28.02.2025

Thank you,
good help for me.

BR,
Arthur