I have installed the last stable and I have errors due to _G.moduleLabel is nill
I've upgraded to the last beta with same issue
Version: 2020.1 (build 11836)
Build Hash: 7e0c5045a
Compile Date: 2020-03-25 17:53:32
dzVents Version: 3.0.1
Python Version: 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0]
it was ok with:
Version: 4.11605
Build Hash: 7de1f368f
Compile Date: 2020-01-08 23:12:15
dzVents Version: 2.5.5
Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
_G.moduleLabel return nil value [Solved]
Moderator: leecollings
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: _G.moduleLabel return nil value
Thx for reporting. Don't know yet why this does no longer exist. Will try to find out and correct if possible. Until fixed you will have to set a markerhestia wrote: Wednesday 01 April 2020 21:44 I have installed the last stable and I have errors due to _G.moduleLabel is nil
in
Code: Select all
logging = { level = domoticz.LOG_DEBUG, marker = ' scriptName' },Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
hestia
- Posts: 361
- Joined: Monday 25 December 2017 23:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Paris
- Contact:
Re: _G.moduleLabel return nil value
Thanks for replying and having agreed so fast
because _G.logMarker is working, but _G.moduleLabel not!
I could just do thisUntil fixed you will have to set a marker inCode: Select all
logging = { level = domoticz.LOG_DEBUG, marker = ' scriptName' },
Code: Select all
_G.logMarker = ' scriptName'- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: _G.moduleLabel return nil value [Solved]
(kind of) Fixed in next Beta.
moduleLabel is available but no longer in global _G table but in the domoticz object.
so if you have
Code: Select all
execute = ( domoticz, item)
and if you have
Code: Select all
execute = ( dz, item)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
hestia
- Posts: 361
- Joined: Monday 25 December 2017 23:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Paris
- Contact:
Re: _G.moduleLabel return nil value
Thanks waaren
Meanwhile I added the line in the lua EventHelpers.lua and it works.
I'll have to change my scripts but it is a small change
I'm not familiar to compile domoticz, so I'm going to wait for a version to download.moduleLabel as dz.moduleLabel
Meanwhile I added the line in the lua EventHelpers.lua and it works.
I'll have to change my scripts but it is a small change
Who is online
Users browsing this forum: No registered users and 1 guest