This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Local Weatherstation to Logicmachine
#4
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.
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.
Reply


Messages In This Thread
RE: Local Weatherstation to Logicmachine - by admin - 23.01.2025, 10:44

Forum Jump: