Page 1 of 1

Error in dzVent.lua  [Solved]

Posted: Thursday 29 August 2019 14:55
by nosehook
I recently checked my error log and got the following error:

Error: EventSystem: in /home/pi/domoticz/dzVents/runtime/dzVents.lua: /home/pi/domoticz/dzVents/runtime/EventHelpers.lua:96: attempt to index local 'fileStorage' (a boolean value)

I do not understand what the problem is or how to solve it.
Is there anyone who can help me?


EDIT: Solved, again global variables files... is there a solution for this?

Re: Error in dzVent.lua

Posted: Thursday 29 August 2019 19:42
by waaren
nosehook wrote: Thursday 29 August 2019 14:55 I recently checked my error log and got the following error:

Error: EventSystem: in /home/pi/domoticz/dzVents/runtime/dzVents.lua: /home/pi/domoticz/dzVents/runtime/EventHelpers.lua:96: attempt to index local 'fileStorage' (a boolean value)

EDIT: Solved, again global variables files... is there a solution for this?
good to hear that it is already fixed. dzVents hands over the writing to the file to the OS. If the OS hits a problem when writing this file it's not reported back to dzVents. If this happens quite frequent it might point to a problem in your file-system / SD card

I will investigate if I can make the error message more descriptive.