GarbageCalendar (new version) lua scripts

Moderator: leecollings

mikeoo
Posts: 110
Joined: Sunday 22 March 2015 7:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Holland
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by mikeoo »

jvdz wrote: Friday 16 October 2020 9:20 Should work fine with these settings: ;)

Code: Select all

wmodule=m_opzet_api
Hostname=inzamelkalender.stadswerk072.nl
Zipcode=1486MK
Housenr=88

Code: Select all

Schedule: gft & etensresten: maa 19 okt ; plastic, blik & drinkpakken: vri 23 okt ; restafval.: maa 26 okt ; 
Done...
Jos
Tnx, working great again :D
Roedii66
Posts: 6
Joined: Saturday 31 March 2018 10:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by Roedii66 »

Rolandet wrote: Sunday 27 September 2020 18:59
jvdz wrote: Sunday 27 September 2020 18:55
Rolandet wrote: Sunday 27 September 2020 18:46 Only thing I can't get to work, is the icon. It still gives me the default 'text'
any thoughts on that?
This is something you need to do in Domoticz yourself with custom ico's.
I haven't played with custom icon myself as I am not working much with the webinterface so didn't bother.

Jos
ok thanks. I'll try figure it out. Thanks for the script
Yeah to bad, I especially made some garbage-container icons with help from the wiki's and found so far that within Domoticz you can only change the icons of an on/off switch. The GarbageCalendar uses a text switch. So far I didn't found if that could be changed.
Br Ruud
Basssment
Posts: 38
Joined: Thursday 18 October 2018 14:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: netherlands, Kuuk
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by Basssment »

Hi all,

Reinstalled the Garbage calender after a new domoticz installation.
most thing i could figure out from the former settings bu i do not recieve notifications.

My log shows :
2020-11-08 20:38:00.390 Status: LUA: @GarbageCal(m_deafvalapp): Start update for text device:
2020-11-08 20:38:00.391 Status: LUA: @GarbageCal(m_deafvalapp): ==> found schedule:ZAK_BLAUW: maa 9 nov ; pbp: maa 16 nov ; gft: maa 16 nov ;
2020-11-08 20:38:00.396 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_time_garbagecalendar.lua

so so error
but no email and no telegram message

what could be missing?
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by jvdz »

Did you follow the setup steps in the Wiki : https://github.com/jvanderzande/Garbage ... ifications
and possible Debugging?: https://github.com/jvanderzande/Garbage ... ki/Testing

Send me your config and logfiles in case you still have issues. ;)

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
BarryT
Posts: 358
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by BarryT »

Hi Jos,

i used the script for several months without any issues, but since last week only the first update is working and sends out an mail a day before..
after that it doesnt update anymore, and shows empty (0) in the text device as you can see in the log...

Then i need to delete all garbage tmp files (in var/tmp), then after the update the text is visible again with the new garbages. :(

You know what it can be?

Gr,
Barry

Code: Select all

2020-11-25 19:33:00.491 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Wed Nov 25 19:33:00 2020 ### Start garbagecalendar script v20200906-1400
2020-11-25 19:33:00.491 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2020-11-25 19:33:00.491 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2020-11-25 19:33:00.491 Status: LUA: @GarbageCal(m_mijnafvalwijzer): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2020-11-25 19:33:00.491 Status: LUA: @GarbageCal(m_mijnafvalwijzer): datafilepath: /var/tmp/
2020-11-25 19:33:00.492 Status: LUA: @GarbageCal(m_mijnafvalwijzer): scriptpath: /home/pi/domoticz/scripts/lua/
2020-11-25 19:33:00.492 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2020-11-25 19:33:00.493 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
2020-11-25 19:33:00.493 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start checking garbagetype_cfg table:
2020-11-25 19:33:00.493 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=tuinafval
2020-11-25 19:33:00.493 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=kca
2020-11-25 19:33:00.493 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=restafval
2020-11-25 19:33:00.493 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=09:29 Garbagetype=dummy1
2020-11-25 19:33:00.493 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=kerstbomen
2020-11-25 19:33:00.493 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=papier
2020-11-25 19:33:00.493 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=gft
2020-11-25 19:33:00.493 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=pmd
2020-11-25 19:33:00.493 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=09:30 Garbagetype=reloaddata
2020-11-25 19:33:00.493 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=grofvuil
2020-11-25 19:33:00.494 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=plastic
2020-11-25 19:33:00.494 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=takken
2020-11-25 19:33:00.494 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start update for text device:
2020-11-25 19:33:00.494 Status: LUA: !!! table.load error:cannot open /var/tmp/garbagecalendar_m_mijnafvalwijzer.data: No such file or directory
2020-11-25 19:33:00.494 Status: LUA: !!! unable to read Data from /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-25 19:33:00.494 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ### Warning: Datafile not found:/var/tmp/garbagecalendar_m_mijnafvalwijzer.data . Start webupdate now.
2020-11-25 19:33:00.494 Status: LUA: @GarbageCal(m_mijnafvalwijzer): 19:33:00 start new foreground webupdate for module m_mijnafvalwijzer of file /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-25 19:33:02.188 Status: LUA: @GarbageCal(m_mijnafvalwijzer): 19:33:02 webupdate done.
2020-11-25 19:33:02.189 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - Start looping through data from the website to find the first 2 event to show: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-25 19:33:02.189 Status: LUA: ==> GarbageDate:2020-11-27 GarbageType:papier; Notify: Active=on Time=16:15 DaysBefore=1 reminder=0 Calc Days Diff=2
2020-11-25 19:33:02.189 Status: LUA: ==> GarbageDate:2020-12-1 GarbageType:gft; Notify: Active=on Time=16:15 DaysBefore=1 reminder=0 Calc Days Diff=6
2020-11-25 19:33:02.189 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - End -----------------
2020-11-25 19:33:02.190 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ==> found schedule:Blauwe Container: vri 27 nov ; Groene Containers: din 1 dec ;
2020-11-25 19:33:02.190 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Update device from:
2020-11-25 19:33:02.190 0
2020-11-25 19:33:02.190 replace with:
2020-11-25 19:33:02.190 Blauwe Container: vri 27 nov
2020-11-25 19:33:02.190 Groene Containers: din 1 dec
2020-11-25 19:33:02.190
Raspberry / ESP Boards / Relais / Milight / Hue / OTGW / P1 / Xiaomi / RFXCom / RFLink / ZWave / Conbee II / Z2M / MQTT / A lot of scripts and many more..
Software: Linux, Android and Windows
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by jvdz »

@Barry,
I have tested with your zipcode ( we tested with a while ago) and can run the process multiple times without any issues.
So I will need the set of logfiles of the run that is failing as defined in the WIki under 1. : https://github.com/jvanderzande/Garbage ... -debugging

The posted logfile is after a successful run ...right?

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
BarryT
Posts: 358
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by BarryT »

jvdz wrote: Wednesday 25 November 2020 20:18 @Barry,
I have tested with your zipcode ( we tested with a while ago) and can run the process multiple times without any issues.
So I will need the set of logfiles of the run that is failing as defined in the WIki under 1. : https://github.com/jvanderzande/Garbage ... -debugging

The posted logfile is after a successful run ...right?

Jos
Thanks for answering, and yes that is correct.
The log you see is the log after i deleted all files in temp.
After remove, and update the script to its time then everything is replaced again.

I send you an email, thanks :)
Raspberry / ESP Boards / Relais / Milight / Hue / OTGW / P1 / Xiaomi / RFXCom / RFLink / ZWave / Conbee II / Z2M / MQTT / A lot of scripts and many more..
Software: Linux, Android and Windows
Basssment
Posts: 38
Joined: Thursday 18 October 2018 14:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: netherlands, Kuuk
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by Basssment »

Hi Jos,

After i changed teh notification time in the config file the script stopped working
I acticated the debug but cant figure out what realy goes wrong

My log:

Code: Select all

2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): #### Mon Nov 30 00:21:00 2020 ### Start garbagecalendar script v20201006-1700
2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): datafilepath: /var/tmp/
2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): scriptpath: /home/pi/domoticz/scripts/lua/
2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2020-11-30 00:21:00.372 Status: LUA: @GarbageCal(m_deafvalapp): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
2020-11-30 00:21:00.372 Status: LUA: @GarbageCal(m_deafvalapp): Start checking garbagetype_cfg table:
2020-11-30 00:21:00.372 Status: LUA: @GarbageCal(m_deafvalapp): -> NotificationTime=20:02 Garbagetype=pbp
2020-11-30 00:21:00.372 Status: LUA: @GarbageCal(m_deafvalapp): -> NotificationTime=20:02 Garbagetype=zak_blauw
2020-11-30 00:21:00.372 Status: LUA: @GarbageCal(m_deafvalapp): -> NotificationTime=19:02 Garbagetype=dummy1
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): -> NotificationTime=20:02 Garbagetype=gft
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): -> NotificationTime=19:02 Garbagetype=reloaddata
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): Start update for text device:
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): - Start looping through data from the website to find the first 3 event to show: /var/tmp/garbagecalendar_m_deafvalapp.data
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_deafvalapp.data
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): ### Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_deafvalapp.log and /var/tmp/garbagecalendar_run_m_deafvalapp.log
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): - End -----------------
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): ==> found schedule:
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): Update device from:
2020-11-30 00:21:00.373 0
2020-11-30 00:21:00.373 replace with:
2020-11-30 00:21:00.373
2020-11-30 00:21:00.374 Status: LUA: @GarbageCal(m_deafvalapp): #### 00:21:00 End garbagecalendar script v20201006-1700
2020-11-30 00:21:00.380 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_time_garbagecalendar.lua
So it finds the next pickup days but doen not write any changes in the dummy in domoticz
i checked garbagecalendar_m_deafvalapp.data
and the output is as follows:

Code: Select all



return {
-- Table: {1}
{
},
}
so noting realy there as the log said.

What could be worn, changed the time of notification back dit not resolve the problem.

Thanx Bas
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by jvdz »

Hi Bas,

Have you seen the update I made and committed 5 days ago to github for m_deafvalapp.lua as they changes from http:// to https://?

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
BarryT
Posts: 358
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by BarryT »

Basssment wrote: Monday 30 November 2020 0:26 Hi Jos,

After i changed teh notification time in the config file the script stopped working
I acticated the debug but cant figure out what realy goes wrong

My log:

Code: Select all

2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): #### Mon Nov 30 00:21:00 2020 ### Start garbagecalendar script v20201006-1700
2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): datafilepath: /var/tmp/
2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): scriptpath: /home/pi/domoticz/scripts/lua/
2020-11-30 00:21:00.371 Status: LUA: @GarbageCal(m_deafvalapp): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2020-11-30 00:21:00.372 Status: LUA: @GarbageCal(m_deafvalapp): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
2020-11-30 00:21:00.372 Status: LUA: @GarbageCal(m_deafvalapp): Start checking garbagetype_cfg table:
2020-11-30 00:21:00.372 Status: LUA: @GarbageCal(m_deafvalapp): -> NotificationTime=20:02 Garbagetype=pbp
2020-11-30 00:21:00.372 Status: LUA: @GarbageCal(m_deafvalapp): -> NotificationTime=20:02 Garbagetype=zak_blauw
2020-11-30 00:21:00.372 Status: LUA: @GarbageCal(m_deafvalapp): -> NotificationTime=19:02 Garbagetype=dummy1
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): -> NotificationTime=20:02 Garbagetype=gft
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): -> NotificationTime=19:02 Garbagetype=reloaddata
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): Start update for text device:
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): - Start looping through data from the website to find the first 3 event to show: /var/tmp/garbagecalendar_m_deafvalapp.data
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_deafvalapp.data
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): ### Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_deafvalapp.log and /var/tmp/garbagecalendar_run_m_deafvalapp.log
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): - End -----------------
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): ==> found schedule:
2020-11-30 00:21:00.373 Status: LUA: @GarbageCal(m_deafvalapp): Update device from:
2020-11-30 00:21:00.373 0
2020-11-30 00:21:00.373 replace with:
2020-11-30 00:21:00.373
2020-11-30 00:21:00.374 Status: LUA: @GarbageCal(m_deafvalapp): #### 00:21:00 End garbagecalendar script v20201006-1700
2020-11-30 00:21:00.380 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_time_garbagecalendar.lua
So it finds the next pickup days but doen not write any changes in the dummy in domoticz
i checked garbagecalendar_m_deafvalapp.data
and the output is as follows:

Code: Select all



return {
-- Table: {1}
{
},
}
so noting realy there as the log said.

What could be worn, changed the time of notification back dit not resolve the problem.

Thanx Bas
That's exactly the same issue i deal with since a couple of weeks, but not with the AfvalApp but with the mijnafvalwijzer..
Last edited by BarryT on Monday 30 November 2020 20:46, edited 2 times in total.
Raspberry / ESP Boards / Relais / Milight / Hue / OTGW / P1 / Xiaomi / RFXCom / RFLink / ZWave / Conbee II / Z2M / MQTT / A lot of scripts and many more..
Software: Linux, Android and Windows
BarryT
Posts: 358
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by BarryT »

NORMAL USAGE, last debug output after a day working:

Code: Select all

2020-11-30 20:00:02.772
2020-11-30 20:00:02.772 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### 20:00:02 End garbagecalendar script v20201006-1700
2020-11-30 20:01:00.190 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Mon Nov 30 20:01:00 2020 ### Start garbagecalendar script v20200906-1400
2020-11-30 20:01:00.190 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2020-11-30 20:01:00.190 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2020-11-30 20:01:00.190 Status: LUA: @GarbageCal(m_mijnafvalwijzer): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2020-11-30 20:01:00.190 Status: LUA: @GarbageCal(m_mijnafvalwijzer): datafilepath: /var/tmp/
2020-11-30 20:01:00.190 Status: LUA: @GarbageCal(m_mijnafvalwijzer): scriptpath: /home/pi/domoticz/scripts/lua/
2020-11-30 20:01:00.191 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2020-11-30 20:01:00.192 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
2020-11-30 20:01:00.193 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start checking garbagetype_cfg table:
2020-11-30 20:01:00.193 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=restafval
2020-11-30 20:01:00.193 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=gft
2020-11-30 20:01:00.193 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=pmd
2020-11-30 20:01:00.193 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=papier
2020-11-30 20:01:00.193 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=20:02 Garbagetype=reloaddata
2020-11-30 20:01:00.193 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=04:14 Garbagetype=dummy1
2020-11-30 20:01:00.193 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start update for text device:
2020-11-30 20:01:00.194 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - Start looping through data from the website to find the first 2 event to show: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:01:00.194 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:01:00.194 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ### Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log and /var/tmp/garbagecalendar_run_m_mijnafvalwijzer.log
2020-11-30 20:01:00.194 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - End -----------------
2020-11-30 20:01:00.194 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ==> found schedule:
2020-11-30 20:01:00.194 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Update device from:
2020-11-30 20:01:00.194 0
2020-11-30 20:01:00.194 replace with:
2020-11-30 20:01:00.194
2020-11-30 20:01:00.195 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### 20:01:00 End garbagecalendar script v20200906-1400
AFTER REMOVED TMP FILES:

Code: Select all

2020-11-30 20:02:00.195 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Mon Nov 30 20:02:00 2020 ### Start garbagecalendar script v20200906-1400
2020-11-30 20:02:00.196 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2020-11-30 20:02:00.196 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2020-11-30 20:02:00.196 Status: LUA: @GarbageCal(m_mijnafvalwijzer): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2020-11-30 20:02:00.196 Status: LUA: @GarbageCal(m_mijnafvalwijzer): datafilepath: /var/tmp/
2020-11-30 20:02:00.196 Status: LUA: @GarbageCal(m_mijnafvalwijzer): scriptpath: /home/pi/domoticz/scripts/lua/
2020-11-30 20:02:00.196 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2020-11-30 20:02:00.199 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
2020-11-30 20:02:00.199 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start checking garbagetype_cfg table:
2020-11-30 20:02:00.199 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=gft
2020-11-30 20:02:00.199 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=20:02 Garbagetype=reloaddata
2020-11-30 20:02:00.199 Status: LUA: @GarbageCal(m_mijnafvalwijzer): NotificationTime is true
2020-11-30 20:02:00.240 Status: LUA: @GarbageCal(m_mijnafvalwijzer): start background webupdate for module m_mijnafvalwijzer of file /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:02:00.240 Status: LUA: @GarbageCal(m_mijnafvalwijzer): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_mijnafvalwijzer.lua "/home/pi/domoticz/scripts/lua/" "7081DL" "4" "" "/var/tmp/garbagecalendar_m_mijnafvalwijzer.data" "/var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log" "" ""
2020-11-30 20:02:00.266 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=papier
2020-11-30 20:02:00.267 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=restafval
2020-11-30 20:02:00.267 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=04:14 Garbagetype=dummy1
2020-11-30 20:02:00.267 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=pmd
2020-11-30 20:02:00.267 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start update for text device:
2020-11-30 20:02:00.267 Status: LUA: !!! table.load error:cannot open /var/tmp/garbagecalendar_m_mijnafvalwijzer.data: No such file or directory
2020-11-30 20:02:00.267 Status: LUA: !!! unable to read Data from /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:02:00.267 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ### Warning: Datafile not found:/var/tmp/garbagecalendar_m_mijnafvalwijzer.data . Start webupdate now.
2020-11-30 20:02:00.268 Status: LUA: @GarbageCal(m_mijnafvalwijzer): 20:02:00 start new foreground webupdate for module m_mijnafvalwijzer of file /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:02:02.445 Status: LUA: @GarbageCal(m_mijnafvalwijzer): 20:02:02 webupdate done.
2020-11-30 20:02:02.445 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - Start looping through data from the website to find the first 2 event to show: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:02:02.445 Status: LUA: ==> GarbageDate:2020-12-1 GarbageType:gft; Notify: Active=on Time=16:15 DaysBefore=1 reminder=0 Calc Days Diff=1
2020-11-30 20:02:02.445 Status: LUA: ==> GarbageDate:2020-12-8 GarbageType:restafval; Notify: Active=on Time=16:15 DaysBefore=1 reminder=0 Calc Days Diff=8
2020-11-30 20:02:02.445 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - End -----------------
2020-11-30 20:02:02.445 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ==> found schedule:Groene Containers: din 1 dec ; Grijze Container: din 8 dec ;
2020-11-30 20:02:02.445 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Update device from:
2020-11-30 20:02:02.445 0
2020-11-30 20:02:02.445 replace with:
2020-11-30 20:02:02.445 Groene Containers: din 1 dec
2020-11-30 20:02:02.445 Grijze Container: din 8 dec
2020-11-30 20:02:02.445
2020-11-30 20:02:02.446 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### 20:02:02 End garbagecalendar script v20200912-1300
NEXT UPDATE WITHOUT CHANGES:

Code: Select all

2020-11-30 20:03:00.204 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Mon Nov 30 20:03:00 2020 ### Start garbagecalendar script v20200906-1400
2020-11-30 20:03:00.204 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2020-11-30 20:03:00.205 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2020-11-30 20:03:00.205 Status: LUA: @GarbageCal(m_mijnafvalwijzer): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2020-11-30 20:03:00.205 Status: LUA: @GarbageCal(m_mijnafvalwijzer): datafilepath: /var/tmp/
2020-11-30 20:03:00.205 Status: LUA: @GarbageCal(m_mijnafvalwijzer): scriptpath: /home/pi/domoticz/scripts/lua/
2020-11-30 20:03:00.205 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2020-11-30 20:03:00.207 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
2020-11-30 20:03:00.208 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start checking garbagetype_cfg table:
2020-11-30 20:03:00.208 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=restafval
2020-11-30 20:03:00.208 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=gft
2020-11-30 20:03:00.208 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=pmd
2020-11-30 20:03:00.208 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=20:02 Garbagetype=reloaddata
2020-11-30 20:03:00.208 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=04:14 Garbagetype=dummy1
2020-11-30 20:03:00.209 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=papier
2020-11-30 20:03:00.209 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start update for text device:
2020-11-30 20:03:00.209 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - Start looping through data from the website to find the first 2 event to show: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:03:00.209 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:03:00.209 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ### Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log and /var/tmp/garbagecalendar_run_m_mijnafvalwijzer.log
2020-11-30 20:03:00.209 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - End -----------------
2020-11-30 20:03:00.210 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ==> found schedule:
2020-11-30 20:03:00.210 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Update device from:
2020-11-30 20:03:00.210 Groene Containers: din 1 dec
2020-11-30 20:03:00.210 Grijze Container: din 8 dec
2020-11-30 20:03:00.210
2020-11-30 20:03:00.210 replace with:
2020-11-30 20:03:00.210
2020-11-30 20:03:00.211 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### 20:03:00 End garbagecalendar script v20200906-1400
After removing the tmp files, it works for 1 update.
After that update the next update does write the output to NIL (0) in text device..

Code: Select all

return {
-- Table: {1}
{
},
}
Raspberry / ESP Boards / Relais / Milight / Hue / OTGW / P1 / Xiaomi / RFXCom / RFLink / ZWave / Conbee II / Z2M / MQTT / A lot of scripts and many more..
Software: Linux, Android and Windows
Basssment
Posts: 38
Joined: Thursday 18 October 2018 14:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: netherlands, Kuuk
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by Basssment »

jvdz wrote: Monday 30 November 2020 13:20 Hi Bas,

Have you seen the update I made and committed 5 days ago to github for m_deafvalapp.lua as they changes from http:// to https://?

Jos
Hi Jos,

I did update the m_deafvalapp.lua
but no change to the output in my log.
i did configure the config_model once again to my settings but no change.

Bas
BarryT
Posts: 358
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by BarryT »

i enabled the "testdataload" in the config, and this gives some more output:

update 1 works, update 2 gives 0 (nil), update 3 works, update 4 gives 0 (nil), update 5 works, update 6 gives 0 (nil) etc..

Code: Select all

:01.884 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### 20:46:01 End garbagecalendar script v20200912-1300
2020-11-30 20:46:01.895 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Mon Nov 30 20:46:01 2020 ### Start garbagecalendar script v20201006-1700
2020-11-30 20:46:01.896 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Debuging dataload each cycle in the foreground because "testdataload=true" in garbagecalendarconfig.lua
2020-11-30 20:46:01.896 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### please change it back to "testdataload=false" when done testing to avoid growing a big domoticz log and slowing down the event system.
2020-11-30 20:46:01.896 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2020-11-30 20:46:01.896 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2020-11-30 20:46:01.896 Status: LUA: @GarbageCal(m_mijnafvalwijzer): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2020-11-30 20:46:01.896 Status: LUA: @GarbageCal(m_mijnafvalwijzer): datafilepath: /var/tmp/
2020-11-30 20:46:01.896 Status: LUA: @GarbageCal(m_mijnafvalwijzer): scriptpath: /home/pi/domoticz/scripts/lua/
2020-11-30 20:46:01.896 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2020-11-30 20:46:01.897 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
2020-11-30 20:46:01.898 Status: LUA: @GarbageCal(m_mijnafvalwijzer): 20:46:01 start new foreground webupdate for module m_mijnafvalwijzer of file /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:46:04.015 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.015 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.016 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.016 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.016 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.016 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.016 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.017 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.017 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.017 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.017 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.017 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.018 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.018 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.018 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.018 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.018 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.018 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.019 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.019 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.019 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.019 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.019 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.020 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.020 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.020 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.020 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.020 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.020 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.021 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.021 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.021 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.021 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.021 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.022 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.022 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.022 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.022 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.022 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.022 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.023 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.023 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.023 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.023 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.023 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.024 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.024 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.024 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.024 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.024 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.025 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.025 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.025 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.025 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.025 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.025 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.026 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.026 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.026 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.026 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.026 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.027 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.027 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.027 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.027 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.027 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.027 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.028 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.028 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.028 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.028 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.028 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.029 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:46:04.029 Status: LUA: @GarbageCal(m_mijnafvalwijzer): 20:46:04 webupdate done.
2020-11-30 20:46:04.029 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start checking garbagetype_cfg table:
2020-11-30 20:46:04.029 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=papier
2020-11-30 20:46:04.029 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=gft
2020-11-30 20:46:04.029 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=04:14 Garbagetype=dummy1
2020-11-30 20:46:04.029 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=pmd
2020-11-30 20:46:04.030 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=restafval
2020-11-30 20:46:04.030 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=20:42 Garbagetype=reloaddata
2020-11-30 20:46:04.030 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start update for text device:
2020-11-30 20:46:04.030 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - Start looping through data from the website to find the first 2 event to show: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:46:04.030 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:46:04.030 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ### Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log and /var/tmp/garbagecalendar_run_m_mijnafvalwijzer.log
2020-11-30 20:46:04.030 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - End -----------------
2020-11-30 20:46:04.030 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ==> found schedule:
2020-11-30 20:46:04.030 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Update device from:
2020-11-30 20:46:04.030 0
2020-11-30 20:46:04.030 replace with:
2020-11-30 20:46:04.030
2020-11-30 20:46:04.030 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### 20:46:04 End garbagecalendar script v20200912-1300
2020-11-30 20:47:00.149 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Mon Nov 30 20:47:00 2020 ### Start garbagecalendar script v20200906-1400
2020-11-30 20:47:00.149 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Debuging dataload each cycle in the foreground because "testdataload=true" in garbagecalendarconfig.lua
2020-11-30 20:47:00.149 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### please change it back to "testdataload=false" when done testing to avoid growing a big domoticz log and slowing down the event system.
2020-11-30 20:47:00.149 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2020-11-30 20:47:00.149 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2020-11-30 20:47:00.149 Status: LUA: @GarbageCal(m_mijnafvalwijzer): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2020-11-30 20:47:00.149 Status: LUA: @GarbageCal(m_mijnafvalwijzer): datafilepath: /var/tmp/
2020-11-30 20:47:00.149 Status: LUA: @GarbageCal(m_mijnafvalwijzer): scriptpath: /home/pi/domoticz/scripts/lua/
2020-11-30 20:47:00.149 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2020-11-30 20:47:00.150 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
2020-11-30 20:47:00.151 Status: LUA: @GarbageCal(m_mijnafvalwijzer): 20:47:00 start new foreground webupdate for module m_mijnafvalwijzer of file /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:47:01.734 Status: LUA: @GarbageCal(m_mijnafvalwijzer): 20:47:01 webupdate done.
2020-11-30 20:47:01.734 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start checking garbagetype_cfg table:
2020-11-30 20:47:01.734 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=papier
2020-11-30 20:47:01.735 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=restafval
2020-11-30 20:47:01.735 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=20:42 Garbagetype=reloaddata
2020-11-30 20:47:01.735 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=04:14 Garbagetype=dummy1
2020-11-30 20:47:01.735 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=pmd
2020-11-30 20:47:01.735 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=gft
2020-11-30 20:47:01.735 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start update for text device:
2020-11-30 20:47:01.736 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - Start looping through data from the website to find the first 2 event to show: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:47:01.736 Status: LUA: ==> GarbageDate:2020-12-1 GarbageType:gft; Notify: Active=on Time=16:15 DaysBefore=1 reminder=0 Calc Days Diff=1
2020-11-30 20:47:01.736 Status: LUA: ==> GarbageDate:2020-12-8 GarbageType:restafval; Notify: Active=on Time=16:15 DaysBefore=1 reminder=0 Calc Days Diff=8
2020-11-30 20:47:01.736 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - End -----------------
2020-11-30 20:47:01.736 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ==> found schedule:Groene Containers: din 1 dec ; Grijze Container: din 8 dec ;
2020-11-30 20:47:01.736 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Update device from:
2020-11-30 20:47:01.736 0
2020-11-30 20:47:01.736 replace with:
2020-11-30 20:47:01.736 Groene Containers: din 1 dec
2020-11-30 20:47:01.736 Grijze Container: din 8 dec
2020-11-30 20:47:01.736
2020-11-30 20:47:01.737 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### 20:47:01 End garbagecalendar script v20200912-1300
2020-11-30 20:47:01.756 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Mon Nov 30 20:47:01 2020 ### Start garbagecalendar script v20201006-1700
2020-11-30 20:47:01.756 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Debuging dataload each cycle in the foreground because "testdataload=true" in garbagecalendarconfig.lua
2020-11-30 20:47:01.756 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### please change it back to "testdataload=false" when done testing to avoid growing a big domoticz log and slowing down the event system.
2020-11-30 20:47:01.756 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2020-11-30 20:47:01.756 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2020-11-30 20:47:01.756 Status: LUA: @GarbageCal(m_mijnafvalwijzer): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2020-11-30 20:47:01.756 Status: LUA: @GarbageCal(m_mijnafvalwijzer): datafilepath: /var/tmp/
2020-11-30 20:47:01.756 Status: LUA: @GarbageCal(m_mijnafvalwijzer): scriptpath: /home/pi/domoticz/scripts/lua/
2020-11-30 20:47:01.757 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2020-11-30 20:47:01.759 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
2020-11-30 20:47:01.760 Status: LUA: @GarbageCal(m_mijnafvalwijzer): 20:47:01 start new foreground webupdate for module m_mijnafvalwijzer of file /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:47:03.773 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.773 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.773 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.773 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.773 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.774 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.774 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.774 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.774 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.774 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.775 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.775 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.775 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.775 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.775 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.776 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.776 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.776 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.776 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.776 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.776 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.777 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.777 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.777 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.777 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.777 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.778 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.778 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.778 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.778 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.778 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.779 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.779 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.779 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.779 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.779 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.779 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.780 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.780 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.780 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.780 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.780 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.781 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.781 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.781 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.781 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.781 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.782 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.782 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.782 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.782 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.782 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.782 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.783 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.783 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.783 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.783 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.783 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.784 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.784 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.784 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.784 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.784 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.785 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.785 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.785 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.785 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.785 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.785 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.786 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.786 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.786 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.786 Status: LUA: garbageyear:2020 garbagemonth:nil garbageday:nil
2020-11-30 20:47:03.787 Status: LUA: @GarbageCal(m_mijnafvalwijzer): 20:47:03 webupdate done.
2020-11-30 20:47:03.787 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start checking garbagetype_cfg table:
2020-11-30 20:47:03.787 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=gft
2020-11-30 20:47:03.787 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=20:42 Garbagetype=reloaddata
2020-11-30 20:47:03.787 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=restafval
2020-11-30 20:47:03.787 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=04:14 Garbagetype=dummy1
2020-11-30 20:47:03.787 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=pmd
2020-11-30 20:47:03.787 Status: LUA: @GarbageCal(m_mijnafvalwijzer): -> NotificationTime=16:15 Garbagetype=papier
2020-11-30 20:47:03.787 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Start update for text device:
2020-11-30 20:47:03.787 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - Start looping through data from the website to find the first 2 event to show: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:47:03.787 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-11-30 20:47:03.788 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ### Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log and /var/tmp/garbagecalendar_run_m_mijnafvalwijzer.log
2020-11-30 20:47:03.788 Status: LUA: @GarbageCal(m_mijnafvalwijzer): - End -----------------
2020-11-30 20:47:03.788 Status: LUA: @GarbageCal(m_mijnafvalwijzer): ==> found schedule:
2020-11-30 20:47:03.788 Status: LUA: @GarbageCal(m_mijnafvalwijzer): Update device from:
2020-11-30 20:47:03.788 Groene Containers: din 1 dec
2020-11-30 20:47:03.788 Grijze Container: din 8 dec
2020-11-30 20:47:03.788
2020-11-30 20:47:03.788 replace with:
2020-11-30 20:47:03.788
2020-11-30 20:47:03.788 Status: LUA: @GarbageCal(m_mijnafvalwijzer): #### 20:47:03 End garbagecalendar script v20200912-1300
Raspberry / ESP Boards / Relais / Milight / Hue / OTGW / P1 / Xiaomi / RFXCom / RFLink / ZWave / Conbee II / Z2M / MQTT / A lot of scripts and many more..
Software: Linux, Android and Windows
BarryT
Posts: 358
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by BarryT »

Update 1, 20.55:

Code: Select all

return {
-- Table: {1}
{
   {2},
   {3},
   {4},
   {5},
   {6},
   {7},
},
-- Table: {2}
{
   ["garbagetype"]="gft",
   ["garbagedate"]="2020-12-1",
   ["wdesc"]="Groente, Fruit en Tuinafval en etensresten",
},
-- Table: {3}
{
   ["garbagetype"]="restafval",
   ["garbagedate"]="2020-12-8",
   ["wdesc"]="Restafval",
},
-- Table: {4}
{
   ["garbagetype"]="gft",
   ["garbagedate"]="2020-12-15",
   ["wdesc"]="Groente, Fruit en Tuinafval en etensresten",
},
-- Table: {5}
{
   ["garbagetype"]="pmd",
   ["garbagedate"]="2020-12-22",
   ["wdesc"]="Plastic, Metalen en Drankkartons",
},
-- Table: {6}
{
   ["garbagetype"]="papier",
   ["garbagedate"]="2020-12-23",
   ["wdesc"]="Papier en karton",
},
-- Table: {7}
{
   ["garbagetype"]="gft",
   ["garbagedate"]="2020-12-29",
   ["wdesc"]="Groente, Fruit en Tuinafval en etensresten",
},
}
Update 2, 20.56:

Code: Select all

return {
-- Table: {1}
{
},
}
also a file created:
garbagecalendar_web_err_m_mijnafvalwijzer.log (wich is removed after some seconds)

Update 3, 20.57:

Code: Select all

return {
-- Table: {1}
{
   {2},
   {3},
   {4},
   {5},
   {6},
   {7},
},
-- Table: {2}
{
   ["wdesc"]="Groente, Fruit en Tuinafval en etensresten",
   ["garbagedate"]="2020-12-1",
   ["garbagetype"]="gft",
},
-- Table: {3}
{
   ["wdesc"]="Restafval",
   ["garbagedate"]="2020-12-8",
   ["garbagetype"]="restafval",
},
-- Table: {4}
{
   ["wdesc"]="Groente, Fruit en Tuinafval en etensresten",
   ["garbagedate"]="2020-12-15",
   ["garbagetype"]="gft",
},
-- Table: {5}
{
   ["wdesc"]="Plastic, Metalen en Drankkartons",
   ["garbagedate"]="2020-12-22",
   ["garbagetype"]="pmd",
},
-- Table: {6}
{
   ["wdesc"]="Papier en karton",
   ["garbagedate"]="2020-12-23",
   ["garbagetype"]="papier",
},
-- Table: {7}
{
   ["wdesc"]="Groente, Fruit en Tuinafval en etensresten",
   ["garbagedate"]="2020-12-29",
   ["garbagetype"]="gft",
},
}
etc, etc...
Raspberry / ESP Boards / Relais / Milight / Hue / OTGW / P1 / Xiaomi / RFXCom / RFLink / ZWave / Conbee II / Z2M / MQTT / A lot of scripts and many more..
Software: Linux, Android and Windows
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by jvdz »

EDIT: Please check whether you are running the latest version of all scripts first as it looks like you are still running an previous version of the main and module scripts and I know I have made a fix to the regex as something was changed in the data!

@Barry, please send me the details in zip files per test case where each zip file contains all log files else it's very hard for me to understand what is happening, so please make a ZIP per step of your test and mail them to me as you've done earlier. ;)
Last edited by jvdz on Monday 30 November 2020 23:05, edited 3 times in total.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by jvdz »

Basssment wrote: Monday 30 November 2020 20:41 Hi Jos,

I did update the m_deafvalapp.lua
but no change to the output in my log.
i did configure the config_model once again to my settings but no change.

Bas
Bas, did you force the webupdate to ensure the data is collected again ? You can either delete the current garbage.data file to force an update or use the debugging options as described in the Wiki: https://github.com/jvanderzande/Garbage ... ki/Testing
If the issue persists then please also zip up the mentioned logfiles and send them to my Github email, so I can have a look

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Basssment
Posts: 38
Joined: Thursday 18 October 2018 14:04
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Location: netherlands, Kuuk
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by Basssment »

jvdz wrote: Monday 30 November 2020 22:12
Basssment wrote: Monday 30 November 2020 20:41 Hi Jos,

I did update the m_deafvalapp.lua
but no change to the output in my log.
i did configure the config_model once again to my settings but no change.

Bas
Bas, did you force the webupdate to ensure the data is collected again ? You can either delete the current garbage.data file to force an update or use the debugging options as described in the Wiki: https://github.com/jvanderzande/Garbage ... ki/Testing
If the issue persists then please also zip up the mentioned logfiles and send them to my Github email, so I can have a look

Jos
No i did not!
Now i did, the notification worked and the text field is filled again.
thanx for the support! i think i will be able to put the garbage outside on time next monday :lol:
BarryT
Posts: 358
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: 2024.3
Location: east netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by BarryT »

I just wanted to let you all know that my problems are fixed by using the latest Garbage script.
For some reason i used 2 different scripts (container.lua and garbage.lua) at the same time, that's why the scripts didnt work well.
I removed everything and started over, now all good again :)
Thx Jos
Raspberry / ESP Boards / Relais / Milight / Hue / OTGW / P1 / Xiaomi / RFXCom / RFLink / ZWave / Conbee II / Z2M / MQTT / A lot of scripts and many more..
Software: Linux, Android and Windows
Ivo1986
Posts: 16
Joined: Tuesday 07 January 2020 10:27
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Urmond - Netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by Ivo1986 »

Code: Select all

2020-12-22 10:35:00.224 Status: LUA: (m_mijnafvalwijzer): 10:35:00 #### Tue Dec 22 10:35:00 2020 ### Start garbagecalendar script v20201217-1500
2020-12-22 10:35:00.224 Status: LUA: (m_mijnafvalwijzer): 10:35:00 #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2020-12-22 10:35:00.224 Status: LUA: (m_mijnafvalwijzer): 10:35:00 #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2020-12-22 10:35:00.225 Status: LUA: (m_mijnafvalwijzer): 10:35:00 domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2020-12-22 10:35:00.225 Status: LUA: (m_mijnafvalwijzer): 10:35:00 datafilepath: /var/tmp/
2020-12-22 10:35:00.225 Status: LUA: (m_mijnafvalwijzer): 10:35:00 scriptpath: /home/pi/domoticz/scripts/lua/
2020-12-22 10:35:00.225 Status: LUA: (m_mijnafvalwijzer): 10:35:00 Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2020-12-22 10:35:00.226 Status: LUA: (m_mijnafvalwijzer): 10:35:00 Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
2020-12-22 10:35:00.226 Status: LUA: (m_mijnafvalwijzer): 10:35:00 Start checking garbagetype_cfg table:
2020-12-22 10:35:00.226 Status: LUA: (m_mijnafvalwijzer): 10:35:00 -> NotificationTime=19:22 Garbagetype=pmd
2020-12-22 10:35:00.226 Status: LUA: (m_mijnafvalwijzer): 10:35:00 -> NotificationTime=19:22 Garbagetype=gft
2020-12-22 10:35:00.226 Status: LUA: (m_mijnafvalwijzer): 10:35:00 -> NotificationTime=02:31 Garbagetype=dummy1
2020-12-22 10:35:00.226 Status: LUA: (m_mijnafvalwijzer): 10:35:00 -> NotificationTime=02:30 Garbagetype=reloaddata
2020-12-22 10:35:00.226 Status: LUA: (m_mijnafvalwijzer): 10:35:00 -> NotificationTime=19:22 Garbagetype=papier
2020-12-22 10:35:00.226 Status: LUA: (m_mijnafvalwijzer): 10:35:00 Start update for text device:
2020-12-22 10:35:00.227 Status: LUA: !!! table.load error:cannot open /var/tmp/garbagecalendar_m_mijnafvalwijzer.data: No such file or directory
2020-12-22 10:35:00.227 Status: LUA: !!! unable to read Data from /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-12-22 10:35:00.227 Status: LUA: (m_mijnafvalwijzer): 10:35:00 ### Warning: Datafile not found:/var/tmp/garbagecalendar_m_mijnafvalwijzer.data . Start webupdate now.
2020-12-22 10:35:00.227 Status: LUA: (m_mijnafvalwijzer): 10:35:00 start new foreground webupdate for module m_mijnafvalwijzer for file /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-12-22 10:35:00.227 Status: LUA: (m_mijnafvalwijzer): 10:35:00 /home/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua
2020-12-22 10:35:00.228 Status: LUA: (m_mijnafvalwijzer): 10:35:00 !! Module m_mijnafvalwijzer had hard error. check log:/var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log
2020-12-22 10:35:00.228 ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:35: attempt to index a nil value (upvalue 'arg')
2020-12-22 10:35:00.228 stack traceback:
2020-12-22 10:35:00.228 ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:10: in function 'errhandler'
2020-12-22 10:35:00.228 ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:35: in function 'Scriptpath'
2020-12-22 10:35:00.228 ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:37: in function 'RunWebModule'
2020-12-22 10:35:00.228 [C]: in function 'xpcall'
2020-12-22 10:35:00.228 ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:63: in main chunk
2020-12-22 10:35:00.228 [C]: in function 'dofile'
2020-12-22 10:35:00.228 .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:185: in function 'GetWebDataInBackground'
2020-12-22 10:35:00.228 .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:316: in function 'Perform_Data_check'
2020-12-22 10:35:00.228 .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:603: in main chunk
2020-12-22 10:35:00.228 Status: LUA: (m_mijnafvalwijzer): 10:35:00 /var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log
2020-12-22 10:35:00.228 Status: LUA: (m_mijnafvalwijzer): 10:35:00
2020-12-22 10:35:00.228 %%%%% LUA Hardcrash log %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2020-12-22 10:35:00.228 Status: LUA: (m_mijnafvalwijzer): 10:35:00 nil
2020-12-22 10:35:00.228 Status: LUA: (m_mijnafvalwijzer): 10:35:00 stack traceback:
2020-12-22 10:35:00.228 ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:71: in main chunk
2020-12-22 10:35:00.228 [C]: in function 'dofile'
2020-12-22 10:35:00.228 .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:185: in function 'GetWebDataInBackground'
2020-12-22 10:35:00.228 .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:316: in function 'Perform_Data_check'
2020-12-22 10:35:00.228 .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:603: in main chunk
2020-12-22 10:35:00.228 Status: LUA: (m_mijnafvalwijzer): 10:35:00 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2020-12-22 10:35:00.228 Status: LUA: (m_mijnafvalwijzer): 10:35:00 <-- ### End _runmodule.au3 for garbage module m_mijnafvalwijzer (v20201217-1500)
2020-12-22 10:35:00.228 Status: LUA: (m_mijnafvalwijzer): 10:35:00 webupdate done.
2020-12-22 10:35:00.228 Status: LUA: !!! table.load error:cannot open /var/tmp/garbagecalendar_m_mijnafvalwijzer.data: No such file or directory
2020-12-22 10:35:00.228 Status: LUA: !!! unable to read Data from /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-12-22 10:35:00.228 Status: LUA: (m_mijnafvalwijzer): 10:35:00 Unable to load the data. please check your setup and runlogfile :/var/tmp/garbagecalendar_run_m_mijnafvalwijzer.log
2020-12-22 10:35:00.229 Status: LUA: (m_mijnafvalwijzer): 10:35:00 ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
2020-12-22 10:35:00.229 Status: LUA: (m_mijnafvalwijzer): 10:35:00 ### Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log and /var/tmp/garbagecalendar_run_m_mijnafvalwijzer.log
2020-12-22 10:35:00.229 Status: LUA: (m_mijnafvalwijzer): 10:35:00 - End -----------------
2020-12-22 10:35:00.229 Status: LUA: (m_mijnafvalwijzer): 10:35:00 ==> found schedule:
2020-12-22 10:35:00.229 Status: LUA: (m_mijnafvalwijzer): 10:35:00 Update device from:
2020-12-22 10:35:00.229 Hello World
2020-12-22 10:35:00.229 replace with:
2020-12-22 10:35:00.229
2020-12-22 10:35:00.229 Status: LUA: (m_mijnafvalwijzer): 10:35:00 #### 10:35:00 End garbagecalendar script v20201217-1500
2020-12-22 10:35:00.238 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_time_garbagecalendar.lua
I Made a new "Container" tekst device and it stay empty
I updated already all files :(

garbagecalendar_run_m_mijnafvalwijzer.log

Code: Select all

(m_mijnafvalwijzer): 10:47:00 #### Tue Dec 22 10:47:00 2020 ### Start garbagecalendar script v20201217-1500
(m_mijnafvalwijzer): 10:47:00 domoticzjsonpath: /home/pi/domoticz/scripts/lua/
(m_mijnafvalwijzer): 10:47:00 datafilepath: /var/tmp/
(m_mijnafvalwijzer): 10:47:00 scriptpath: /home/pi/domoticz/scripts/lua/
(m_mijnafvalwijzer): 10:47:00 Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
(m_mijnafvalwijzer): 10:47:00 Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
(m_mijnafvalwijzer): 10:47:00 Start checking garbagetype_cfg table:
(m_mijnafvalwijzer): 10:47:00 -> NotificationTime=19:22  Garbagetype=gft
(m_mijnafvalwijzer): 10:47:00 -> NotificationTime=19:22  Garbagetype=pmd
(m_mijnafvalwijzer): 10:47:00 -> NotificationTime=02:31  Garbagetype=dummy1
(m_mijnafvalwijzer): 10:47:00 -> NotificationTime=02:30  Garbagetype=reloaddata
(m_mijnafvalwijzer): 10:47:00 -> NotificationTime=19:22  Garbagetype=papier
(m_mijnafvalwijzer): 10:47:00 Scheduled time(s) not reached yet, so nothing to do!
(m_mijnafvalwijzer): 10:47:00 #### 10:47:00 End garbagecalendar script v20201217-1500
garbagecalendar_web_m_mijnafvalwijzer.log

Code: Select all

(m_mijnafvalwijzer): 10:35:00 !! Module m_mijnafvalwijzer had hard error. check log:/var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log
...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:35: attempt to index a nil value (upvalue 'arg')
stack traceback:
        ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:10: in function 'errhandler'
        ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:35: in function 'Scriptpath'
        ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:37: in function 'RunWebModule'
        [C]: in function 'xpcall'
        ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:63: in main chunk
        [C]: in function 'dofile'
        .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:185: in function 'GetWebDataInBackground'
        .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:316: in function 'Perform_Data_check'
        .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:603: in main chunk
(m_mijnafvalwijzer): 10:35:00 /var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log
(m_mijnafvalwijzer): 10:35:00
%%%%% LUA Hardcrash log %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(m_mijnafvalwijzer): 10:35:00 nil
(m_mijnafvalwijzer): 10:35:00 stack traceback:
        ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:71: in main chunk
        [C]: in function 'dofile'
        .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:185: in function 'GetWebDataInBackground'
        .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:316: in function 'Perform_Data_check'
        .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:603: in main chunk
(m_mijnafvalwijzer): 10:35:00 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(m_mijnafvalwijzer): 10:35:00 <-- ### End _runmodule.au3 for garbage module m_mijnafvalwijzer (v20201217-1500)
-edit- Thanks Jos!
Last edited by Ivo1986 on Tuesday 22 December 2020 14:23, edited 1 time in total.
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: GarbageCalendar (new version) lua scripts

Post by jvdz »

There is a fix available for the last reported problem caused by the new _runmodule.lua script, which is now used to run all separate garbage modules in an effort to better capture any errors in those modules either ran in the fore or background.
There are also some changes for module m_montferland & m_goeree-overflakkee, which now also shows events happening in the "next year".

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests