23.01.2025, 10:44
Actually it should be possible to use LM web server to receive the data.
Create weather.lp file and upload it via FTP to public directory using apps login. FTP can be enabled in System config > Services.
In weather station settings set:
Path = /public/weather.lp? (not sure about ? at the end, try without if it doesn't work)
Port = 80
Then check LM logs. It should list all variables sent by the weather station. Then you can use grp.checkwrite or grp.checkupdate to update relevant LM objects with weather data.
Create weather.lp file and upload it via FTP to public directory using apps login. FTP can be enabled in System config > Services.
Code:
<?
require('apps')
vars = getvars()
log(vars)
In weather station settings set:
Path = /public/weather.lp? (not sure about ? at the end, try without if it doesn't work)
Port = 80
Then check LM logs. It should list all variables sent by the weather station. Then you can use grp.checkwrite or grp.checkupdate to update relevant LM objects with weather data.