
Thanks!
Moderator: leecollings
Code: Select all
--------------------------------------------------------------------------------------------
--> testing module m_opzet
----------------------------------------
+ 1.08 (1):Zipcode=6x0xEx Housenr=2x Street= Hostname=rwm.nl Woonplaats=Echt
RunErr:0 RunWarn:0 WebErr:0 WebWarn:0 WTable:3 Found 16 data records, Schedule: vri 4 apr: gft afval ; din 8 apr: Grijze bak ; don 10 apr: pmd ; vri 11 apr: gft afval ; vri 18 apr: gft afval ;
Done...
The explanation for the "#!# Warning: These records are missing in your garbagecalendarconfig.lua file, so no notifications will be send!" can be found here.15:37:18 gc_main: 624: -> Start looping through data to find the first 5 events to show:
15:37:18 gc_main: 671: > first type:gft afval Icon:"nil"
>> GarbageDate:2025-4-4 GarbageType:gft afval; Calc Days Diff=2; *** Notify skipped because active <> on ( ??) in garbagetype_cfg[]!
>> GarbageDate:2025-4-8 GarbageType:restafval; Notify: Active=on Time=15:59 DaysBefore=1 reminder=6 Calc Days Diff=6
>> GarbageDate:2025-4-10 GarbageType:pmd; Calc Days Diff=8; *** Notify skipped because active <> on ( ??) in garbagetype_cfg[]!
>> GarbageDate:2025-4-11 GarbageType:gft afval; Calc Days Diff=9; *** Notify skipped because active <> on ( ??) in garbagetype_cfg[]!
>> GarbageDate:2025-4-18 GarbageType:gft afval; Calc Days Diff=16; *** Notify skipped because active <> on ( ??) in garbagetype_cfg[]!
15:37:18 gc_main: 773: -< End data loop
15:37:18 gc_main: 775: #!# Warning: These records are missing in your garbagecalendarconfig.lua file, so no notifications will be send!
15:37:18 gc_main: 776: #!# Add these records into the garbagetype_cfg table and adapt the schedule, text and icon info to your needs:
["gft afval"] ={hour=19,min=02,daysbefore=1,reminder=0,text="gft afval", icon=nil},
["pmd"] ={hour=19,min=02,daysbefore=1,reminder=0,text="pmd", icon=nil},
["grof tuinafval"] ={hour=19,min=02,daysbefore=1,reminder=0,text="grof tuinafval", icon=nil},
15:37:18 gc_main: 778: #!# -- end ----------------------------
Code: Select all
apt update
apt install lua5.4
The script should test for the version of LUA installed and in case it isn't, it will run it in the foreground instead of background.
Code: Select all
LUA: => check LUA not found -> Run foreground to use internal LUA.
Code: Select all
2025-06-14 08:16:00.377 Status: LUA: @GarbageCal(m_opzet_api): #### start garbagecalendar script v20200211-1430
2025-06-14 08:16:00.377 Status: LUA: @GarbageCal(m_opzet_api): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2025-06-14 08:16:00.377 Status: LUA: @GarbageCal(m_opzet_api): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2025-06-14 08:16:00.377 Status: LUA: @GarbageCal(m_opzet_api): domoticzjsonpath: /opt/domoticz/userdata/scripts/lua/
2025-06-14 08:16:00.377 Status: LUA: @GarbageCal(m_opzet_api): datafilepath: /var/tmp/
2025-06-14 08:16:00.377 Status: LUA: @GarbageCal(m_opzet_api): scriptpath: /opt/domoticz/userdata/scripts/lua/
:
2025-06-14 08:15:00.370 Status: LUA: @GarbageCal(m_opzet_api): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2025-06-14 08:15:00.370 Status: LUA: @GarbageCal(m_opzet_api): domoticzjsonpath: /opt/domoticz/userdata/scripts/lua/
2025-06-14 08:15:00.370 Status: LUA: @GarbageCal(m_opzet_api): datafilepath: /var/tmp/
2025-06-14 08:15:00.370 Status: LUA: @GarbageCal(m_opzet_api): scriptpath: /opt/domoticz/userdata/scripts/lua/
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): Loaded /opt/domoticz/userdata/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): Loaded /opt/domoticz/userdata/scripts/lua/garbagecalendar/tablefuncs.lua.
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): Start checking garbagetype_cfg table:
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:16:22 Garbagetype:Plastic, blik en drinkpakken
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:16:22 Garbagetype:Textiel
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:16:22 Garbagetype:Restafval, minicontainers.
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:2:30 Garbagetype:reloaddata
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:7:15 Garbagetype:dummy1
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:16:22 Garbagetype:Groente-, fruit, tuinafval en etensresten
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:16:22 Garbagetype:Papier en karton
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:15:15 Garbagetype:dummy2
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:16:22 Garbagetype:Kerstbomen
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): Start update for text device:
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): Warning: Datafile not found:/var/tmp/garbagecalendar_m_opzet_api.data . Start webupdate now.
2025-06-14 08:15:00.371 Status: LUA: @GarbageCal(m_opzet_api): start foreground webupdate for module m_opzet_api of file /var/tmp/garbagecalendar_m_opzet_api.data
2025-06-14 08:15:00.373 Status: LUA: @GarbageCal(m_opzet_api): lua /opt/domoticz/userdata/scripts/lua/garbagecalendar/m_opzet_api.lua "/opt/domoticz/userdata/scripts/lua/" "9999AA" "99" "" "/var/tmp/garbagecalendar_m_opzet_api.data" "/var/tmp/garbagecalendar_web_m_opzet_api.log" "inzamelkalender.gad.nl" ""
2025-06-14 08:15:00.374 Status: LUA: @GarbageCal(m_opzet_api): Unable to load the data. please check your setup and runlogfile :/var/tmp/garbagecalendar_run_m_opzet_api.log
2025-06-14 08:15:00.374 Status: LUA: @GarbageCal(m_opzet_api): - End -----------------
2025-06-14 08:15:00.374 Status: LUA: @GarbageCal(m_opzet_api): ==> found schedule:
2025-06-14 08:15:00.374 Status: LUA: @GarbageCal(m_opzet_api): Update device from:
0
replace with:
Code: Select all
lua /opt/domoticz/userdata/scripts/lua/garbagecalendar/m_opzet_api.lua "/opt/domoticz/userdata/scripts/lua/" "9999AA" "99" "" "/var/tmp/garbagecalendar_m_opzet_api.data" "/var/tmp/garbagecalendar_web_m_opzet_api.log" "inzamelkalender.gad.nl" ""
Code: Select all
['Groente-, fruit, etensresten en klein tuinafval'] ={hour=16,min=22,daysbefore=1,reminder=0,text='Groente-, fruit en tuinafval', icon = 'garbagecalendar_green'},
['Restafval'] ={hour=16,min=22,daysbefore=1,reminder=0,text='Restafval', icon = 'garbagecalendar_grey'},
['Papier en karton'] ={hour=16,min=22,daysbefore=1,reminder=0,text='Papier en karton', icon = 'garbagecalendar_blue'},
['Plastic, blik en drinkpakken'] ={hour=16,min=22,daysbefore=1,reminder=0,text='Plastic, blik en drinkpakken', icon = 'garbagecalendar_orange'},
['Textiel'] ={hour=16,min=22,daysbefore=1,reminder=0,text='Textiel'},
['Kerstbomen'] ={hour=16,min=22,daysbefore=1,reminder=0,text='Kerstbomen'},
Users browsing this forum: No registered users and 1 guest