Page 1 of 1
Problem. "My automation scripts"***Solved***
Posted: Saturday 23 November 2019 15:20
by Knibor
Hi,
I use some Lua scripts in Domoticz in "My automation scripts"
The Lua scripts works fine, but when I change the name from the Lua script and save these I get an error in the log.
The error log says that he can't find the Lua script name, problem is that Domoticz is looking for the old name and not for the new Lua script name.
How can i solve this problem?
Thanks
Re: Problem. "My automation scripts"
Posted: Sunday 24 November 2019 1:06
by waaren
Knibor wrote: Saturday 23 November 2019 15:20
The Lua scripts works fine, but when I change the name from the Lua script and save these I get an error in the log.
The error log says that he can't find the Lua script name, problem is that Domoticz is looking for the old name and not for the new Lua script name.
I cannot replicate this. Can you show the loglines and maybe some screenshots. Could be that I don't fully replicate your steps leading to this error in the log.
Re: Problem. "My automation scripts"
Posted: Sunday 24 November 2019 18:01
by Knibor
Hi,
Hereby the Log
I change the Lua name from 'Meter uitsplitsen' to '1.0 Meter uitsplitsen'
After it, I restart Domoticz, and the log file gives me this error log.
019-11-24 17:46:22.479 Status: dzVents: Error (2.4.19): module '1.0 Meter uitsplitsen' not found:
2019-11-24 17:46:22.479 no field package.preload['1.0 Meter uitsplitsen']
2019-11-24 17:46:22.479 no file '/usr/local/share/lua/5.2/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/usr/local/share/lua/5.2/1/0 Meter uitsplitsen/init.lua'
2019-11-24 17:46:22.479 no file '/usr/local/lib/lua/5.2/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/usr/local/lib/lua/5.2/1/0 Meter uitsplitsen/init.lua'
2019-11-24 17:46:22.479 no file './1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/dzVents/runtime/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/dzVents/runtime/device-adapters/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/dzVents/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/scripts/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/../lua/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/scripts/modules/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/generated_scripts/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/data/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/modules/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/home/pi/domoticz/scripts/dzVents/1/0 Meter uitsplitsen.lua'
2019-11-24 17:46:22.479 no file '/usr/local/lib/lua/5.2/1/0 Meter uitsplitsen.so'
2019-11-24 17:46:22.479 no file '/usr/local/lib/lua/5.2/loadall.so'
2019-11-24 17:46:22.479 no file './1/0 Meter uitsplitsen.so'
2019-11-24 17:46:22.479 no file '/usr/local/lib/lua/5.2/1.so'
Re: Problem. "My automation scripts"
Posted: Sunday 24 November 2019 19:53
by waaren
Knibor wrote: Sunday 24 November 2019 18:01
Hereby the Log
I change the Lua name from 'Meter uitsplitsen' to '1.0 Meter uitsplitsen'
Lua / dzVents cannot handle filenames with an extra dot in the name.
Re: Problem. "My automation scripts" ***Solved***
Posted: Sunday 24 November 2019 20:03
by Knibor
Hi,
Thanks for the information