MESSAGE ERREUR
Publié : 11 mai 2020, 20:24
Bonjour, j'ai un message d'erreur persistant sur un serveur Domotics sous Windows 10:
Error: EventSystem: in C:\Program Files (x86)\Domoticz\scripts\lua\script_time_main.lua: ...am Files (x86)\Domoticz\scripts\lua\script_time_main.lua:3: attempt to concatenate a nil value (local 'currentPath')
Dès que j'active le serveur Domoticz, cette erreur défile, et j'ai regardé le fichier "script_time_main.lua" qui suit sans trouver de problème particulier:
local currentPath = debug.getinfo(1).source:match("@?(.*/)")
scriptsFolderPath = currentPath .. 'Domoticz/scripts'
package.path = package.path .. ';' .. currentPath .. '?.lua'
package.path = package.path .. ';' .. currentPath .. 'scripts/lua/?.lua'
package.path = package.path .. ';' .. currentPath .. 'scripts/lua/dzVents/?.lua'
package.path = package.path .. ';' .. currentPath .. 'scripts/?.lua'
package.path = package.path .. ';' .. currentPath .. 'scripts/storage/?.lua'
local EventHelpers = require('EventHelpers')
local helpers = EventHelpers()
commandArray = helpers.dispatchTimerEventsToScripts()
return commandArray
Merci de m'aider à trouver la solution...
Error: EventSystem: in C:\Program Files (x86)\Domoticz\scripts\lua\script_time_main.lua: ...am Files (x86)\Domoticz\scripts\lua\script_time_main.lua:3: attempt to concatenate a nil value (local 'currentPath')
Dès que j'active le serveur Domoticz, cette erreur défile, et j'ai regardé le fichier "script_time_main.lua" qui suit sans trouver de problème particulier:
local currentPath = debug.getinfo(1).source:match("@?(.*/)")
scriptsFolderPath = currentPath .. 'Domoticz/scripts'
package.path = package.path .. ';' .. currentPath .. '?.lua'
package.path = package.path .. ';' .. currentPath .. 'scripts/lua/?.lua'
package.path = package.path .. ';' .. currentPath .. 'scripts/lua/dzVents/?.lua'
package.path = package.path .. ';' .. currentPath .. 'scripts/?.lua'
package.path = package.path .. ';' .. currentPath .. 'scripts/storage/?.lua'
local EventHelpers = require('EventHelpers')
local helpers = EventHelpers()
commandArray = helpers.dispatchTimerEventsToScripts()
return commandArray
Merci de m'aider à trouver la solution...