Page 1 of 1
Problem with devices.lua
Posted: Sunday 20 November 2016 19:21
by cjb75
I have a problem when trying to restrict local network access, when I remove 192.168.0.* (se below) my devices.lua (domoticz/scripts/lua) gets overwritten and only contains:
return
<html><head><title>Unauthorized</title></head><body><h1>401 Unauthorized</h1></body></html>
Local_networks.jpeg
Is this dzVents related? What to do?
Re: Problem with devices.lua [Solved]
Posted: Wednesday 25 January 2017 9:02
by DewGew
I added the ip number for the domoticz server and that worked for me.
// Pierre
Re: Problem with devices.lua
Posted: Monday 30 January 2017 15:02
by Peder
Thank you DewGew !!
I had the same problem. A lot of:...
Code: Select all
2017-01-30 14:50:00.260 LUA: devices.lua cannot be loaded
2017-01-30 14:50:00.260 LUA: error loading module 'devices' from file '/home/pi/domoticz/scripts/lua/devices.lua':
/home/pi/domoticz/scripts/lua/devices.lua:2: unexpected symbol near '<'
....in the log-file.
Also the devices.lua was only 99 bytes in size.
If I deleted the file it soon got back and causing the errors.
Then I added the IP of my server as you suggested. Then deleting the faulty devices.lua.
Now it seems to work OK. No more errors and the file size is 3kb