Page 7 of 23

Re: GarbageCalendar (new version) lua scripts

Posted: Tuesday 07 April 2020 12:42
by iTDB
AllesVanZelf wrote: Tuesday 07 April 2020 12:02 Maybe it works if you change this value in /etc/ssl/openssl.cnf to MinProtocol = TLSv1.0.
Change it an get results

Code: Select all

pi@raspbian:~/domoticz/scripts/lua $ curl "https://www.ophaalkalender.be/Calendar/findstreets/?query=Pintelaan&zipcode=9000"clear
[{"Value":"De Pintelaan","Id":34152,"Brussels":false}]
Domoticz Logs:
2020-04-07 11:47:00.136 Status: LUA: #### 11:47:00 start garbagecalendar script v20200406-2030
2020-04-07 11:47:00.136 Status: LUA: !!! failed loading "garbagecalendarconfig.lua" from : "/home/pi/domoticz/scripts/lua/garbagecalendar/"
2020-04-07 11:47:00.136 Status: LUA: Ensure you have copied "garbagecalendarconfig_model.lua" to "garbagecalendarconfig.lua" and modified it to your requirements.
2020-04-07 11:47:00.136 Status: LUA: Also check the path in variable "scriptpath= " is correctly set.
2020-04-07 11:47:00.136 Error: LUA: !!! LUA Error: .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:73: attempt to index a nil value (global 'file')
2020-04-07 11:47:00.136 Error: EventSystem: Lua script /home/pi/domoticz/scripts/lua/script_time_garbagecalendar.lua did not return a commandArray

Re: GarbageCalendar (new version) lua scripts

Posted: Tuesday 07 April 2020 12:52
by jvdz
sweet, so the target website is still at tls v1.0 and buster with ssl 1.1.1 set the minimum required ssl higher making it fail.
Not sure if there is just an option for curl itself available to allow a lower version of tls without changing the system default?
I was reading up on this thread Forcing TLS version fails with OpenSSL 1.1.1 in Debian Buster? #4097.. maybe there is something in there that would allow that?

Jos

Re: GarbageCalendar (new version) lua scripts

Posted: Tuesday 07 April 2020 12:54
by jvdz
iTDB wrote: Tuesday 07 April 2020 12:42 Domoticz Logs:
2020-04-07 11:47:00.136 Status: LUA: #### 11:47:00 start garbagecalendar script v20200406-2030
2020-04-07 11:47:00.136 Status: LUA: !!! failed loading "garbagecalendarconfig.lua" from : "/home/pi/domoticz/scripts/lua/garbagecalendar/"
2020-04-07 11:47:00.136 Status: LUA: Ensure you have copied "garbagecalendarconfig_model.lua" to "garbagecalendarconfig.lua" and modified it to your requirements.
2020-04-07 11:47:00.136 Status: LUA: Also check the path in variable "scriptpath= " is correctly set.
2020-04-07 11:47:00.136 Error: LUA: !!! LUA Error: .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:73: attempt to index a nil value (global 'file')
2020-04-07 11:47:00.136 Error: EventSystem: Lua script /home/pi/domoticz/scripts/lua/script_time_garbagecalendar.lua did not return a commandArray
There is an issue with the access to the runlogfile.
Could you please update to the latest version in github, which provides some more information about access to this logfile, and then email me the logfiles so I can check to see what is happening now?
In case there are issues, just ask and always provide me a copy of the following files in a zip file to my Github email, so I can see what is happening:
  • all 3 garbagecalendar*.log files
  • garbagecalendarconfig.lua
Ensure you have these variables set in your garbagecalendarconfig.lua as follows so there will be extra debugging information:

Code: Select all

-- Switch on mydebug in case of issues and initially and check the domoticz log for any issues or missing
mydebug      = true  -- (true/false)
testdataload = true  -- (true/false)
Jos

Re: GarbageCalendar (new version) lua scripts

Posted: Tuesday 07 April 2020 18:29
by iTDB
* 2020-02-13-raspbian-buster
* Change hostname and password
Reboot
* sudo apt-get update && sudo apt-get upgrade -y
* curl -L https://install.domoticz.com | bash
* Install GarbageCalendar under domoticz/scripts/lua
* Reboot

Not working:

Code: Select all

pi@raspbian:~/domoticz/logs $ ls -l
Spoiler: show

Code: Select all

total 12
-rw-r----- 1 root root 3885 Apr  7 18:14 garbagecalendar_run_m_ophaalkalender-be.log
-rw-r----- 1 root root 3795 Apr  7 18:14 garbagecalendar_run_update_m_ophaalkalender-be.log
-rw-r----- 1 root root 1810 Apr  7 18:14 garbagecalendar_web_m_ophaalkalender-be.log
[b]pi@raspbian:~/domoticz/logs[/b] $ sudo cat garbagecalendar_run_m_ophaalkalender-be.log
@GarbageCal(m_ophaalkalender-be): #### Tue Apr  7 18:14:00 2020 ### Start garbagecalendar script v20200406-2030
@GarbageCal(m_ophaalkalender-be): #### Debuging dataload each cycle in the foreground because "testdataload=true" in garbagecalendarconfig.lua
@GarbageCal(m_ophaalkalender-be): ####    please change it back to "testdataload=false" when done testing to avoid growing a big domoticz log and slowing down the event system.
@GarbageCal(m_ophaalkalender-be): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
@GarbageCal(m_ophaalkalender-be): ####    please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
@GarbageCal(m_ophaalkalender-be): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_ophaalkalender-be): datafilepath: /home/pi/domoticz/logs/
@GarbageCal(m_ophaalkalender-be): scriptpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_ophaalkalender-be): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
@GarbageCal(m_ophaalkalender-be): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/tablefuncs.lua.
@GarbageCal(m_ophaalkalender-be): start foreground webupdate for module m_ophaalkalender-be of file /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data
@GarbageCal(m_ophaalkalender-be): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_ophaalkalender-be.lua "/home/pi/domoticz/scripts/lua/" "9000" "59" "" "/home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data" "/home/pi/domoticz/logs/garbagecalendar_web_m_ophaalkalender-be.log" "" "Pintelaan"
@GarbageCal(m_ophaalkalender-be): Start checking garbagetype_cfg table:
@GarbageCal(m_ophaalkalender-be): Restafval change to restafval
@GarbageCal(m_ophaalkalender-be): Glas change to glas
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:glas
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:2:31  Garbagetype:dummy1
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:restafval
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:pmd
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:gft
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:2:30  Garbagetype:reloaddata
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:papier
@GarbageCal(m_ophaalkalender-be): Start update for text device:
@GarbageCal(m_ophaalkalender-be): Warning: Datafile not found:/home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data . Start webupdate now.
@GarbageCal(m_ophaalkalender-be): start foreground webupdate for module m_ophaalkalender-be of file /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data
@GarbageCal(m_ophaalkalender-be): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_ophaalkalender-be.lua "/home/pi/domoticz/scripts/lua/" "9000" "59" "" "/home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data" "/home/pi/domoticz/logs/garbagecalendar_web_m_ophaalkalender-be.log" "" "Pintelaan"
@GarbageCal(m_ophaalkalender-be):  Unable to load the data. please check your setup and runlogfile :/home/pi/domoticz/logs/garbagecalendar_run_m_ophaalkalender-be.log
@GarbageCal(m_ophaalkalender-be): ### Warning: No valid records found in the datafile: /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data
@GarbageCal(m_ophaalkalender-be): ###          Please check the garbagecalendar log files for issues : /home/pi/domoticz/logs/garbagecalendar_web_m_ophaalkalender-be.log and /home/pi/domoticz/logs/garbagecalendar_run_m_ophaalkalender-be.log
@GarbageCal(m_ophaalkalender-be): - End  -----------------
@GarbageCal(m_ophaalkalender-be): ==> found schedule:
@GarbageCal(m_ophaalkalender-be): Update device from:
Hello World
 replace with:

@GarbageCal(m_ophaalkalender-be): #### 18:14:00 End garbagecalendar script v20200406-2030
[b]pi@raspbian:~/domoticz/logs[/b] $ sudo cat garbagecalendar_run_update_m_ophaalkalender-be.log
@GarbageCal(m_ophaalkalender-be): #### Tue Apr  7 18:14:00 2020 ### Start garbagecalendar script v20200406-2030
@GarbageCal(m_ophaalkalender-be): #### Debuging dataload each cycle in the foreground because "testdataload=true" in garbagecalendarconfig.lua
@GarbageCal(m_ophaalkalender-be): ####    please change it back to "testdataload=false" when done testing to avoid growing a big domoticz log and slowing down the event system.
@GarbageCal(m_ophaalkalender-be): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
@GarbageCal(m_ophaalkalender-be): ####    please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
@GarbageCal(m_ophaalkalender-be): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_ophaalkalender-be): datafilepath: /home/pi/domoticz/logs/
@GarbageCal(m_ophaalkalender-be): scriptpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_ophaalkalender-be): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
@GarbageCal(m_ophaalkalender-be): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/tablefuncs.lua.
@GarbageCal(m_ophaalkalender-be): start foreground webupdate for module m_ophaalkalender-be of file /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data
@GarbageCal(m_ophaalkalender-be): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_ophaalkalender-be.lua "/home/pi/domoticz/scripts/lua/" "9000" "59" "" "/home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data" "/home/pi/domoticz/logs/garbagecalendar_web_m_ophaalkalender-be.log" "" "Pintelaan"
@GarbageCal(m_ophaalkalender-be): Start checking garbagetype_cfg table:
@GarbageCal(m_ophaalkalender-be): Restafval change to restafval
@GarbageCal(m_ophaalkalender-be): Glas change to glas
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:glas
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:2:31  Garbagetype:dummy1
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:restafval
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:pmd
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:gft
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:2:30  Garbagetype:reloaddata
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:papier
@GarbageCal(m_ophaalkalender-be): Start update for text device:
@GarbageCal(m_ophaalkalender-be): Warning: Datafile not found:/home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data . Start webupdate now.
@GarbageCal(m_ophaalkalender-be): start foreground webupdate for module m_ophaalkalender-be of file /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data
@GarbageCal(m_ophaalkalender-be): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_ophaalkalender-be.lua "/home/pi/domoticz/scripts/lua/" "9000" "59" "" "/home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data" "/home/pi/domoticz/logs/garbagecalendar_web_m_ophaalkalender-be.log" "" "Pintelaan"
@GarbageCal(m_ophaalkalender-be):  Unable to load the data. please check your setup and runlogfile :/home/pi/domoticz/logs/garbagecalendar_run_m_ophaalkalender-be.log
@GarbageCal(m_ophaalkalender-be): ### Warning: No valid records found in the datafile: /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data
@GarbageCal(m_ophaalkalender-be): ###          Please check the garbagecalendar log files for issues : /home/pi/domoticz/logs/garbagecalendar_web_m_ophaalkalender-be.log and /home/pi/domoticz/logs/garbagecalendar_run_m_ophaalkalender-be.log
@GarbageCal(m_ophaalkalender-be): - End  -----------------
@GarbageCal(m_ophaalkalender-be): ==> found schedule:
@GarbageCal(m_ophaalkalender-be): Update device from:
Hello World
 replace with:

[b]pi@raspbian:~/domoticz/logs[/b] $ sudo cat garbagecalendar_web_m_ophaalkalender-be.log
@m_ophaalkalender-be:#### Tue Apr  7 18:14:00 2020 ### Start garbagekalerder module m_ophaalkalender-be (v20200405-2200)
@m_ophaalkalender-be:Loaded JSON.lua.
@m_ophaalkalender-be:!!! perform background update to /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data for Zipcode 9000 - 59  (optional) Hostname:
@m_ophaalkalender-be:---- web update ----------------------------------------------------------------------------
@m_ophaalkalender-be:sQuery=curl  "https://www.ophaalkalender.be/Calendar/findstreets/?query=Pintelaan&zipcode=9000" 2>/home/pi/domoticz/logs/garbagecalendar_web_err_m_ophaalkalender-be.log
lua: .../scripts/lua/garbagecalendar/m_ophaalkalender-be.lua:120: attempt to index global 'adressdata' (a nil value)
stack traceback:
        .../scripts/lua/garbagecalendar/m_ophaalkalender-be.lua:120: in function 'Perform_Update'
        .../scripts/lua/garbagecalendar/m_ophaalkalender-be.lua:182: in main chunk
        [C]: ?
@m_ophaalkalender-be:---- web data ----------------------------------------------------------------------------
@m_ophaalkalender-be:
@m_ophaalkalender-be:---- web err ------------------------------------------------------------------------
@m_ophaalkalender-be:Web_Err=  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (35) error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol

@m_ophaalkalender-be:---- end web data ------------------------------------------------------------------------
@m_ophaalkalender-be:Error: Empty result from curl command
@m_ophaalkalender-be:adressid:
[b]pi@raspbian:~/domoticz/logs[/b] $

Re: GarbageCalendar (new version) lua scripts

Posted: Tuesday 07 April 2020 18:32
by iTDB
Set /etc/ssl/openssl.cnf to MinProtocol = TLSv1.0
* reboot
And It works!

Code: Select all

pi@raspbian:~/domoticz/logs $ ls -l
Spoiler: show

Code: Select all

total 68
-rw-r----- 1 root root 13390 Apr  7 18:21 garbagecalendar_m_ophaalkalender-be.data
-rw-r----- 1 root root  3946 Apr  7 18:21 garbagecalendar_run_m_ophaalkalender-be.log
-rw-r----- 1 root root  3856 Apr  7 18:21 garbagecalendar_run_update_m_ophaalkalender-be.log
-rw-r----- 1 root root 43747 Apr  7 18:21 garbagecalendar_web_m_ophaalkalender-be.log
[b]pi@raspbian:~/domoticz/logs[/b] $ sudo cat garbagecalendar_run_m_ophaalkalender-be.log
@GarbageCal(m_ophaalkalender-be): #### Tue Apr  7 18:21:00 2020 ### Start garbagecalendar script v20200406-2030
@GarbageCal(m_ophaalkalender-be): #### Debuging dataload each cycle in the foreground because "testdataload=true" in garbagecalendarconfig.lua
@GarbageCal(m_ophaalkalender-be): ####    please change it back to "testdataload=false" when done testing to avoid growing a big domoticz log and slowing down the event system.
@GarbageCal(m_ophaalkalender-be): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
@GarbageCal(m_ophaalkalender-be): ####    please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
@GarbageCal(m_ophaalkalender-be): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_ophaalkalender-be): datafilepath: /home/pi/domoticz/logs/
@GarbageCal(m_ophaalkalender-be): scriptpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_ophaalkalender-be): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
@GarbageCal(m_ophaalkalender-be): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/tablefuncs.lua.
@GarbageCal(m_ophaalkalender-be): start foreground webupdate for module m_ophaalkalender-be of file /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data
@GarbageCal(m_ophaalkalender-be): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_ophaalkalender-be.lua "/home/pi/domoticz/scripts/lua/" "9000" "59" "" "/home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data" "/home/pi/domoticz/logs/garbagecalendar_web_m_ophaalkalender-be.log" "" "Pintelaan"
@GarbageCal(m_ophaalkalender-be): Start checking garbagetype_cfg table:
@GarbageCal(m_ophaalkalender-be): Glas change to glas
@GarbageCal(m_ophaalkalender-be): Restafval change to restafval
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:papier
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:gft
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:restafval
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:pmd
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:glas
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:2:30  Garbagetype:reloaddata
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:2:31  Garbagetype:dummy1
@GarbageCal(m_ophaalkalender-be): Start update for text device:
@GarbageCal(m_ophaalkalender-be): - Start looping through data from the website: /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data
==> GarbageDate:2020-04-10 GarbageType:pmd  Notify: Active=on  Time=19:22   DaysBefore=1   reminder=0   Calc Days Diff=3
==> GarbageDate:2020-04-10 GarbageType:restafval  Notify: Active=nil  Time=19:22   DaysBefore=1   reminder=0   Calc Days Diff=3
==> GarbageDate:2020-04-17 GarbageType:p-k  Notify: Active=nil  Time=0:0   DaysBefore=0   reminder=0   Calc Days Diff=10
@GarbageCal(m_ophaalkalender-be): - End  -----------------
@GarbageCal(m_ophaalkalender-be): #### Warning: These records are missing in your garbagecalendarconfig.lua file, so no notifications will be send!
@GarbageCal(m_ophaalkalender-be): #### -- start -- Add these records into the garbagetype_cfg table and adapt the schedule and text info to your needs :
   ["p-k"]                              ={hour=19,min=02,daysbefore=1,reminder=0,text="p-k"},
   ["grof huisvuil afroep"]             ={hour=19,min=02,daysbefore=1,reminder=0,text="grof huisvuil afroep"},
   ["kerstboom"]                        ={hour=19,min=02,daysbefore=1,reminder=0,text="kerstboom"},

@GarbageCal(m_ophaalkalender-be): #### -- end ----------------------------
@GarbageCal(m_ophaalkalender-be): ==> found schedule:pmd: vri 10 apr ; Restafval: vri 10 apr ; p-k: vri 17 apr ;
@GarbageCal(m_ophaalkalender-be): No updated text for TxtDevice.
@GarbageCal(m_ophaalkalender-be): #### 18:21:00 End garbagecalendar script v20200406-2030
[b]pi@raspbian:~/domoticz/logs[/b] $ sudo cat garbagecalendar_run_update_m_ophaalkalender-be.log
@GarbageCal(m_ophaalkalender-be): #### Tue Apr  7 18:21:00 2020 ### Start garbagecalendar script v20200406-2030
@GarbageCal(m_ophaalkalender-be): #### Debuging dataload each cycle in the foreground because "testdataload=true" in garbagecalendarconfig.lua
@GarbageCal(m_ophaalkalender-be): ####    please change it back to "testdataload=false" when done testing to avoid growing a big domoticz log and slowing down the event system.
@GarbageCal(m_ophaalkalender-be): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
@GarbageCal(m_ophaalkalender-be): ####    please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
@GarbageCal(m_ophaalkalender-be): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_ophaalkalender-be): datafilepath: /home/pi/domoticz/logs/
@GarbageCal(m_ophaalkalender-be): scriptpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_ophaalkalender-be): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
@GarbageCal(m_ophaalkalender-be): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/tablefuncs.lua.
@GarbageCal(m_ophaalkalender-be): start foreground webupdate for module m_ophaalkalender-be of file /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data
@GarbageCal(m_ophaalkalender-be): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_ophaalkalender-be.lua "/home/pi/domoticz/scripts/lua/" "9000" "59" "" "/home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data" "/home/pi/domoticz/logs/garbagecalendar_web_m_ophaalkalender-be.log" "" "Pintelaan"
@GarbageCal(m_ophaalkalender-be): Start checking garbagetype_cfg table:
@GarbageCal(m_ophaalkalender-be): Glas change to glas
@GarbageCal(m_ophaalkalender-be): Restafval change to restafval
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:papier
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:gft
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:restafval
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:pmd
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:19:22  Garbagetype:glas
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:2:30  Garbagetype:reloaddata
@GarbageCal(m_ophaalkalender-be): -> NotificationTime:2:31  Garbagetype:dummy1
@GarbageCal(m_ophaalkalender-be): Start update for text device:
@GarbageCal(m_ophaalkalender-be): - Start looping through data from the website: /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data
==> GarbageDate:2020-04-10 GarbageType:pmd  Notify: Active=on  Time=19:22   DaysBefore=1   reminder=0   Calc Days Diff=3
==> GarbageDate:2020-04-10 GarbageType:restafval  Notify: Active=nil  Time=19:22   DaysBefore=1   reminder=0   Calc Days Diff=3
==> GarbageDate:2020-04-17 GarbageType:p-k  Notify: Active=nil  Time=0:0   DaysBefore=0   reminder=0   Calc Days Diff=10
@GarbageCal(m_ophaalkalender-be): - End  -----------------
@GarbageCal(m_ophaalkalender-be): #### Warning: These records are missing in your garbagecalendarconfig.lua file, so no notifications will be send!
@GarbageCal(m_ophaalkalender-be): #### -- start -- Add these records into the garbagetype_cfg table and adapt the schedule and text info to your needs :
   ["p-k"]                              ={hour=19,min=02,daysbefore=1,reminder=0,text="p-k"},
   ["grof huisvuil afroep"]             ={hour=19,min=02,daysbefore=1,reminder=0,text="grof huisvuil afroep"},
   ["kerstboom"]                        ={hour=19,min=02,daysbefore=1,reminder=0,text="kerstboom"},

@GarbageCal(m_ophaalkalender-be): #### -- end ----------------------------
@GarbageCal(m_ophaalkalender-be): ==> found schedule:pmd: vri 10 apr ; Restafval: vri 10 apr ; p-k: vri 17 apr ;
@GarbageCal(m_ophaalkalender-be): No updated text for TxtDevice.
[b]pi@raspbian:~/domoticz/logs[/b] $ sudo cat garbagecalendar_web_m_ophaalkalender-be.log
@m_ophaalkalender-be:#### Tue Apr  7 18:21:00 2020 ### Start garbagekalerder module m_ophaalkalender-be (v20200405-2200)
@m_ophaalkalender-be:Loaded JSON.lua.
@m_ophaalkalender-be:!!! perform background update to /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data for Zipcode 9000 - 59  (optional) Hostname:
@m_ophaalkalender-be:---- web update ----------------------------------------------------------------------------
@m_ophaalkalender-be:sQuery=curl  "https://www.ophaalkalender.be/Calendar/findstreets/?query=Pintelaan&zipcode=9000" 2>/home/pi/domoticz/logs/garbagecalendar_web_err_m_ophaalkalender-be.log
@m_ophaalkalender-be:---- web data ----------------------------------------------------------------------------
@m_ophaalkalender-be:[{"Value":"De Pintelaan","Id":34152,"Brussels":false}]
@m_ophaalkalender-be:---- web err ------------------------------------------------------------------------
@m_ophaalkalender-be:Web_Err=  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    54  100    54    0     0    323      0 --:--:-- --:--:-- --:--:--   321

@m_ophaalkalender-be:---- end web data ------------------------------------------------------------------------
@m_ophaalkalender-be:adressid:[{"Value":"De Pintelaan","Id":34152,"Brussels":false}]
@m_ophaalkalender-be:adressid:34152
@m_ophaalkalender-be:sQuery=curl  "https://www.ophaalkalender.be/api/rides?id=34152&housenumber=59&zipcode=9000" 2>/home/pi/domoticz/logs/garbagecalendar_web_err_m_ophaalkalender-be.log
@m_ophaalkalender-be:---- web data ----------------------------------------------------------------------------
@m_ophaalkalender-be:[{"allDay":true,"color":"grey","start":"2020-03-06T00:00:00+01:00","title":"Restafval"},{"allDay":true,"color":"green","start":"2020-03-06T00:00:00+01:00","title":"GFT"},{"allDay":true,"color":"blue","start":"2020-03-13T00:00:00+01:00","title":"PMD"},{"allDay":true,"color":"grey","start":"2020-03-13T00:00:00+01:00","title":"Restafval"},{"allDay":true,"color":"grey","start":"2020-03-20T00:00:00+01:00","title":"Restafval"},{"allDay":true,"color":"brown","start":"2020-03-20T00:00:00+01:00","title":"P-K"},{"allDay":true,"color":"yellow","start":"2020-03-20T00:00:00+01:00","title":"Glas"},{"allDay":true,"color":"green","start":"2020-03-20T00:00:00+01:00","title":"GFT"},{"allDay":true,"color":"blue","start":"2020-03-27T00:00:00+01:00","title":"PMD"},{"allDay":true,"color":"grey","start":"2020-03-27T00:00:00+01:00","title":"Restafval"},{"allDay":true,"color":"grey","start":"2020-04-03T00:00:00+02:00","title":"Restafval"},{"allDay":true,"color":"green","start":"2020-04-03T00:00:00+02:00","title":"GFT"},{"allDay":true,"color":"blue","start":"2020-04-10T00:00:00+02:00","title":"PMD"},.......]

@m_ophaalkalender-be:---- web err ------------------------------------------------------------------------
@m_ophaalkalender-be:Web_Err=  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13388  100 13388    0     0  47985      0 --:--:-- --:--:-- --:--:-- 47985

@m_ophaalkalender-be:---- end web data ------------------------------------------------------------------------
@m_ophaalkalender-be:1 web_garbagetype:Restafval   web_garbagedate:2020-03-06T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:-32  garbageyear:2020  garbagemonth:03  garbageday:06
@m_ophaalkalender-be:2 web_garbagetype:GFT   web_garbagedate:2020-03-06T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:-32  garbageyear:2020  garbagemonth:03  garbageday:06
@m_ophaalkalender-be:3 web_garbagetype:PMD   web_garbagedate:2020-03-13T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:-25  garbageyear:2020  garbagemonth:03  garbageday:13
@m_ophaalkalender-be:4 web_garbagetype:Restafval   web_garbagedate:2020-03-13T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:-25  garbageyear:2020  garbagemonth:03  garbageday:13
@m_ophaalkalender-be:5 web_garbagetype:Restafval   web_garbagedate:2020-03-20T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:-18  garbageyear:2020  garbagemonth:03  garbageday:20
@m_ophaalkalender-be:6 web_garbagetype:P-K   web_garbagedate:2020-03-20T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:-18  garbageyear:2020  garbagemonth:03  garbageday:20
@m_ophaalkalender-be:7 web_garbagetype:Glas   web_garbagedate:2020-03-20T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:-18  garbageyear:2020  garbagemonth:03  garbageday:20
@m_ophaalkalender-be:8 web_garbagetype:GFT   web_garbagedate:2020-03-20T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:-18  garbageyear:2020  garbagemonth:03  garbageday:20
@m_ophaalkalender-be:9 web_garbagetype:PMD   web_garbagedate:2020-03-27T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:-11  garbageyear:2020  garbagemonth:03  garbageday:27
@m_ophaalkalender-be:10 web_garbagetype:Restafval   web_garbagedate:2020-03-27T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:-11  garbageyear:2020  garbagemonth:03  garbageday:27
@m_ophaalkalender-be:11 web_garbagetype:Restafval   web_garbagedate:2020-04-03T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:-4  garbageyear:2020  garbagemonth:04  garbageday:03
@m_ophaalkalender-be:12 web_garbagetype:GFT   web_garbagedate:2020-04-03T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:-4  garbageyear:2020  garbagemonth:04  garbageday:03
@m_ophaalkalender-be:13 web_garbagetype:PMD   web_garbagedate:2020-04-10T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:3  garbageyear:2020  garbagemonth:04  garbageday:10
@m_ophaalkalender-be:14 web_garbagetype:Restafval   web_garbagedate:2020-04-10T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:3  garbageyear:2020  garbagemonth:04  garbageday:10
@m_ophaalkalender-be:15 web_garbagetype:Restafval   web_garbagedate:2020-04-17T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:10  garbageyear:2020  garbagemonth:04  garbageday:17
@m_ophaalkalender-be:16 web_garbagetype:P-K   web_garbagedate:2020-04-17T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:10  garbageyear:2020  garbagemonth:04  garbageday:17
@m_ophaalkalender-be:17 web_garbagetype:Glas   web_garbagedate:2020-04-17T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:10  garbageyear:2020  garbagemonth:04  garbageday:17
@m_ophaalkalender-be:18 web_garbagetype:GFT   web_garbagedate:2020-04-17T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:10  garbageyear:2020  garbagemonth:04  garbageday:17
@m_ophaalkalender-be:19 web_garbagetype:PMD   web_garbagedate:2020-04-24T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:17  garbageyear:2020  garbagemonth:04  garbageday:24
@m_ophaalkalender-be:20 web_garbagetype:Restafval   web_garbagedate:2020-04-24T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:17  garbageyear:2020  garbagemonth:04  garbageday:24
@m_ophaalkalender-be:21 web_garbagetype:Restafval   web_garbagedate:2020-04-29T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:22  garbageyear:2020  garbagemonth:04  garbageday:29
@m_ophaalkalender-be:22 web_garbagetype:GFT   web_garbagedate:2020-04-29T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:22  garbageyear:2020  garbagemonth:04  garbageday:29
@m_ophaalkalender-be:23 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2020-05-07T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:30  garbageyear:2020  garbagemonth:05  garbageday:07
@m_ophaalkalender-be:24 web_garbagetype:PMD   web_garbagedate:2020-05-08T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:31  garbageyear:2020  garbagemonth:05  garbageday:08
@m_ophaalkalender-be:25 web_garbagetype:Restafval   web_garbagedate:2020-05-08T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:31  garbageyear:2020  garbagemonth:05  garbageday:08
@m_ophaalkalender-be:26 web_garbagetype:Restafval   web_garbagedate:2020-05-15T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:38  garbageyear:2020  garbagemonth:05  garbageday:15
@m_ophaalkalender-be:27 web_garbagetype:P-K   web_garbagedate:2020-05-15T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:38  garbageyear:2020  garbagemonth:05  garbageday:15
@m_ophaalkalender-be:28 web_garbagetype:Glas   web_garbagedate:2020-05-15T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:38  garbageyear:2020  garbagemonth:05  garbageday:15
@m_ophaalkalender-be:29 web_garbagetype:GFT   web_garbagedate:2020-05-15T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:38  garbageyear:2020  garbagemonth:05  garbageday:15
@m_ophaalkalender-be:30 web_garbagetype:PMD   web_garbagedate:2020-05-22T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:45  garbageyear:2020  garbagemonth:05  garbageday:22
@m_ophaalkalender-be:31 web_garbagetype:Restafval   web_garbagedate:2020-05-22T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:45  garbageyear:2020  garbagemonth:05  garbageday:22
@m_ophaalkalender-be:32 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2020-05-22T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:45  garbageyear:2020  garbagemonth:05  garbageday:22
@m_ophaalkalender-be:33 web_garbagetype:Restafval   web_garbagedate:2020-05-29T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:52  garbageyear:2020  garbagemonth:05  garbageday:29
@m_ophaalkalender-be:34 web_garbagetype:GFT   web_garbagedate:2020-05-29T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:52  garbageyear:2020  garbagemonth:05  garbageday:29
@m_ophaalkalender-be:35 web_garbagetype:PMD   web_garbagedate:2020-06-05T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:59  garbageyear:2020  garbagemonth:06  garbageday:05
@m_ophaalkalender-be:36 web_garbagetype:Restafval   web_garbagedate:2020-06-05T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:59  garbageyear:2020  garbagemonth:06  garbageday:05
@m_ophaalkalender-be:37 web_garbagetype:Restafval   web_garbagedate:2020-06-12T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:66  garbageyear:2020  garbagemonth:06  garbageday:12
@m_ophaalkalender-be:38 web_garbagetype:P-K   web_garbagedate:2020-06-12T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:66  garbageyear:2020  garbagemonth:06  garbageday:12
@m_ophaalkalender-be:39 web_garbagetype:Glas   web_garbagedate:2020-06-12T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:66  garbageyear:2020  garbagemonth:06  garbageday:12
@m_ophaalkalender-be:40 web_garbagetype:GFT   web_garbagedate:2020-06-12T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:66  garbageyear:2020  garbagemonth:06  garbageday:12
@m_ophaalkalender-be:41 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2020-06-16T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:70  garbageyear:2020  garbagemonth:06  garbageday:16
@m_ophaalkalender-be:42 web_garbagetype:PMD   web_garbagedate:2020-06-19T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:73  garbageyear:2020  garbagemonth:06  garbageday:19
@m_ophaalkalender-be:43 web_garbagetype:Restafval   web_garbagedate:2020-06-19T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:73  garbageyear:2020  garbagemonth:06  garbageday:19
@m_ophaalkalender-be:44 web_garbagetype:Restafval   web_garbagedate:2020-06-26T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:80  garbageyear:2020  garbagemonth:06  garbageday:26
@m_ophaalkalender-be:45 web_garbagetype:GFT   web_garbagedate:2020-06-26T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:80  garbageyear:2020  garbagemonth:06  garbageday:26
@m_ophaalkalender-be:46 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2020-07-02T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:86  garbageyear:2020  garbagemonth:07  garbageday:02
@m_ophaalkalender-be:47 web_garbagetype:PMD   web_garbagedate:2020-07-03T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:87  garbageyear:2020  garbagemonth:07  garbageday:03
@m_ophaalkalender-be:48 web_garbagetype:Restafval   web_garbagedate:2020-07-03T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:87  garbageyear:2020  garbagemonth:07  garbageday:03
@m_ophaalkalender-be:49 web_garbagetype:Restafval   web_garbagedate:2020-07-10T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:94  garbageyear:2020  garbagemonth:07  garbageday:10
@m_ophaalkalender-be:50 web_garbagetype:P-K   web_garbagedate:2020-07-10T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:94  garbageyear:2020  garbagemonth:07  garbageday:10
@m_ophaalkalender-be:51 web_garbagetype:Glas   web_garbagedate:2020-07-10T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:94  garbageyear:2020  garbagemonth:07  garbageday:10
@m_ophaalkalender-be:52 web_garbagetype:GFT   web_garbagedate:2020-07-10T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:94  garbageyear:2020  garbagemonth:07  garbageday:10
@m_ophaalkalender-be:53 web_garbagetype:PMD   web_garbagedate:2020-07-17T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:101  garbageyear:2020  garbagemonth:07  garbageday:17
@m_ophaalkalender-be:54 web_garbagetype:Restafval   web_garbagedate:2020-07-17T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:101  garbageyear:2020  garbagemonth:07  garbageday:17
@m_ophaalkalender-be:55 web_garbagetype:Restafval   web_garbagedate:2020-07-24T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:108  garbageyear:2020  garbagemonth:07  garbageday:24
@m_ophaalkalender-be:56 web_garbagetype:GFT   web_garbagedate:2020-07-24T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:108  garbageyear:2020  garbagemonth:07  garbageday:24
@m_ophaalkalender-be:57 web_garbagetype:PMD   web_garbagedate:2020-07-31T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:115  garbageyear:2020  garbagemonth:07  garbageday:31
@m_ophaalkalender-be:58 web_garbagetype:Restafval   web_garbagedate:2020-07-31T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:115  garbageyear:2020  garbagemonth:07  garbageday:31
@m_ophaalkalender-be:59 web_garbagetype:Restafval   web_garbagedate:2020-08-07T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:122  garbageyear:2020  garbagemonth:08  garbageday:07
@m_ophaalkalender-be:60 web_garbagetype:GFT   web_garbagedate:2020-08-07T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:122  garbageyear:2020  garbagemonth:08  garbageday:07
@m_ophaalkalender-be:61 web_garbagetype:PMD   web_garbagedate:2020-08-14T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:129  garbageyear:2020  garbagemonth:08  garbageday:14
@m_ophaalkalender-be:62 web_garbagetype:Restafval   web_garbagedate:2020-08-14T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:129  garbageyear:2020  garbagemonth:08  garbageday:14
@m_ophaalkalender-be:63 web_garbagetype:Restafval   web_garbagedate:2020-08-21T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:136  garbageyear:2020  garbagemonth:08  garbageday:21
@m_ophaalkalender-be:64 web_garbagetype:P-K   web_garbagedate:2020-08-21T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:136  garbageyear:2020  garbagemonth:08  garbageday:21
@m_ophaalkalender-be:65 web_garbagetype:Glas   web_garbagedate:2020-08-21T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:136  garbageyear:2020  garbagemonth:08  garbageday:21
@m_ophaalkalender-be:66 web_garbagetype:GFT   web_garbagedate:2020-08-21T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:136  garbageyear:2020  garbagemonth:08  garbageday:21
@m_ophaalkalender-be:67 web_garbagetype:PMD   web_garbagedate:2020-08-28T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:143  garbageyear:2020  garbagemonth:08  garbageday:28
@m_ophaalkalender-be:68 web_garbagetype:Restafval   web_garbagedate:2020-08-28T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:143  garbageyear:2020  garbagemonth:08  garbageday:28
@m_ophaalkalender-be:69 web_garbagetype:Restafval   web_garbagedate:2020-09-04T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:150  garbageyear:2020  garbagemonth:09  garbageday:04
@m_ophaalkalender-be:70 web_garbagetype:GFT   web_garbagedate:2020-09-04T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:150  garbageyear:2020  garbagemonth:09  garbageday:04
@m_ophaalkalender-be:71 web_garbagetype:PMD   web_garbagedate:2020-09-11T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:157  garbageyear:2020  garbagemonth:09  garbageday:11
@m_ophaalkalender-be:72 web_garbagetype:Restafval   web_garbagedate:2020-09-11T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:157  garbageyear:2020  garbagemonth:09  garbageday:11
@m_ophaalkalender-be:73 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2020-09-11T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:157  garbageyear:2020  garbagemonth:09  garbageday:11
@m_ophaalkalender-be:74 web_garbagetype:Restafval   web_garbagedate:2020-09-18T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:164  garbageyear:2020  garbagemonth:09  garbageday:18
@m_ophaalkalender-be:75 web_garbagetype:P-K   web_garbagedate:2020-09-18T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:164  garbageyear:2020  garbagemonth:09  garbageday:18
@m_ophaalkalender-be:76 web_garbagetype:Glas   web_garbagedate:2020-09-18T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:164  garbageyear:2020  garbagemonth:09  garbageday:18
@m_ophaalkalender-be:77 web_garbagetype:GFT   web_garbagedate:2020-09-18T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:164  garbageyear:2020  garbagemonth:09  garbageday:18
@m_ophaalkalender-be:78 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2020-09-21T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:167  garbageyear:2020  garbagemonth:09  garbageday:21
@m_ophaalkalender-be:79 web_garbagetype:PMD   web_garbagedate:2020-09-25T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:171  garbageyear:2020  garbagemonth:09  garbageday:25
@m_ophaalkalender-be:80 web_garbagetype:Restafval   web_garbagedate:2020-09-25T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:171  garbageyear:2020  garbagemonth:09  garbageday:25
@m_ophaalkalender-be:81 web_garbagetype:Restafval   web_garbagedate:2020-10-02T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:178  garbageyear:2020  garbagemonth:10  garbageday:02
@m_ophaalkalender-be:82 web_garbagetype:GFT   web_garbagedate:2020-10-02T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:178  garbageyear:2020  garbagemonth:10  garbageday:02
@m_ophaalkalender-be:83 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2020-10-06T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:182  garbageyear:2020  garbagemonth:10  garbageday:06
@m_ophaalkalender-be:84 web_garbagetype:PMD   web_garbagedate:2020-10-09T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:185  garbageyear:2020  garbagemonth:10  garbageday:09
@m_ophaalkalender-be:85 web_garbagetype:Restafval   web_garbagedate:2020-10-09T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:185  garbageyear:2020  garbagemonth:10  garbageday:09
@m_ophaalkalender-be:86 web_garbagetype:Restafval   web_garbagedate:2020-10-16T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:192  garbageyear:2020  garbagemonth:10  garbageday:16
@m_ophaalkalender-be:87 web_garbagetype:P-K   web_garbagedate:2020-10-16T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:192  garbageyear:2020  garbagemonth:10  garbageday:16
@m_ophaalkalender-be:88 web_garbagetype:Glas   web_garbagedate:2020-10-16T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:192  garbageyear:2020  garbagemonth:10  garbageday:16
@m_ophaalkalender-be:89 web_garbagetype:GFT   web_garbagedate:2020-10-16T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:192  garbageyear:2020  garbagemonth:10  garbageday:16
@m_ophaalkalender-be:90 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2020-10-22T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:198  garbageyear:2020  garbagemonth:10  garbageday:22
@m_ophaalkalender-be:91 web_garbagetype:PMD   web_garbagedate:2020-10-23T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:199  garbageyear:2020  garbagemonth:10  garbageday:23
@m_ophaalkalender-be:92 web_garbagetype:Restafval   web_garbagedate:2020-10-23T00:00:00+02:00
@m_ophaalkalender-be:...-> diff:199  garbageyear:2020  garbagemonth:10  garbageday:23
@m_ophaalkalender-be:93 web_garbagetype:Restafval   web_garbagedate:2020-10-30T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:206  garbageyear:2020  garbagemonth:10  garbageday:30
@m_ophaalkalender-be:94 web_garbagetype:GFT   web_garbagedate:2020-10-30T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:206  garbageyear:2020  garbagemonth:10  garbageday:30
@m_ophaalkalender-be:95 web_garbagetype:PMD   web_garbagedate:2020-11-06T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:213  garbageyear:2020  garbagemonth:11  garbageday:06
@m_ophaalkalender-be:96 web_garbagetype:Restafval   web_garbagedate:2020-11-06T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:213  garbageyear:2020  garbagemonth:11  garbageday:06
@m_ophaalkalender-be:97 web_garbagetype:Restafval   web_garbagedate:2020-11-13T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:220  garbageyear:2020  garbagemonth:11  garbageday:13
@m_ophaalkalender-be:98 web_garbagetype:P-K   web_garbagedate:2020-11-13T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:220  garbageyear:2020  garbagemonth:11  garbageday:13
@m_ophaalkalender-be:99 web_garbagetype:Glas   web_garbagedate:2020-11-13T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:220  garbageyear:2020  garbagemonth:11  garbageday:13
@m_ophaalkalender-be:100 web_garbagetype:GFT   web_garbagedate:2020-11-13T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:220  garbageyear:2020  garbagemonth:11  garbageday:13
@m_ophaalkalender-be:101 web_garbagetype:PMD   web_garbagedate:2020-11-20T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:227  garbageyear:2020  garbagemonth:11  garbageday:20
@m_ophaalkalender-be:102 web_garbagetype:Restafval   web_garbagedate:2020-11-20T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:227  garbageyear:2020  garbagemonth:11  garbageday:20
@m_ophaalkalender-be:103 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2020-11-20T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:227  garbageyear:2020  garbagemonth:11  garbageday:20
@m_ophaalkalender-be:104 web_garbagetype:Restafval   web_garbagedate:2020-11-27T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:234  garbageyear:2020  garbagemonth:11  garbageday:27
@m_ophaalkalender-be:105 web_garbagetype:GFT   web_garbagedate:2020-11-27T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:234  garbageyear:2020  garbagemonth:11  garbageday:27
@m_ophaalkalender-be:106 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2020-11-30T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:237  garbageyear:2020  garbagemonth:11  garbageday:30
@m_ophaalkalender-be:107 web_garbagetype:PMD   web_garbagedate:2020-12-04T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:241  garbageyear:2020  garbagemonth:12  garbageday:04
@m_ophaalkalender-be:108 web_garbagetype:Restafval   web_garbagedate:2020-12-04T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:241  garbageyear:2020  garbagemonth:12  garbageday:04
@m_ophaalkalender-be:109 web_garbagetype:Restafval   web_garbagedate:2020-12-11T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:248  garbageyear:2020  garbagemonth:12  garbageday:11
@m_ophaalkalender-be:110 web_garbagetype:P-K   web_garbagedate:2020-12-11T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:248  garbageyear:2020  garbagemonth:12  garbageday:11
@m_ophaalkalender-be:111 web_garbagetype:Glas   web_garbagedate:2020-12-11T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:248  garbageyear:2020  garbagemonth:12  garbageday:11
@m_ophaalkalender-be:112 web_garbagetype:GFT   web_garbagedate:2020-12-11T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:248  garbageyear:2020  garbagemonth:12  garbageday:11
@m_ophaalkalender-be:113 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2020-12-15T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:252  garbageyear:2020  garbagemonth:12  garbageday:15
@m_ophaalkalender-be:114 web_garbagetype:PMD   web_garbagedate:2020-12-18T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:255  garbageyear:2020  garbagemonth:12  garbageday:18
@m_ophaalkalender-be:115 web_garbagetype:Restafval   web_garbagedate:2020-12-18T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:255  garbageyear:2020  garbagemonth:12  garbageday:18
@m_ophaalkalender-be:116 web_garbagetype:Restafval   web_garbagedate:2020-12-23T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:260  garbageyear:2020  garbagemonth:12  garbageday:23
@m_ophaalkalender-be:117 web_garbagetype:GFT   web_garbagedate:2020-12-23T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:260  garbageyear:2020  garbagemonth:12  garbageday:23
@m_ophaalkalender-be:118 web_garbagetype:PMD   web_garbagedate:2020-12-30T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:267  garbageyear:2020  garbagemonth:12  garbageday:30
@m_ophaalkalender-be:119 web_garbagetype:Restafval   web_garbagedate:2020-12-30T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:267  garbageyear:2020  garbagemonth:12  garbageday:30
@m_ophaalkalender-be:120 web_garbagetype:Restafval   web_garbagedate:2021-01-08T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:276  garbageyear:2021  garbagemonth:01  garbageday:08
@m_ophaalkalender-be:121 web_garbagetype:Kerstboom   web_garbagedate:2021-01-08T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:276  garbageyear:2021  garbagemonth:01  garbageday:08
@m_ophaalkalender-be:122 web_garbagetype:GFT   web_garbagedate:2021-01-08T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:276  garbageyear:2021  garbagemonth:01  garbageday:08
@m_ophaalkalender-be:123 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2021-01-14T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:282  garbageyear:2021  garbagemonth:01  garbageday:14
@m_ophaalkalender-be:124 web_garbagetype:PMD   web_garbagedate:2021-01-15T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:283  garbageyear:2021  garbagemonth:01  garbageday:15
@m_ophaalkalender-be:125 web_garbagetype:Restafval   web_garbagedate:2021-01-15T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:283  garbageyear:2021  garbagemonth:01  garbageday:15
@m_ophaalkalender-be:126 web_garbagetype:Restafval   web_garbagedate:2021-01-22T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:290  garbageyear:2021  garbagemonth:01  garbageday:22
@m_ophaalkalender-be:127 web_garbagetype:P-K   web_garbagedate:2021-01-22T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:290  garbageyear:2021  garbagemonth:01  garbageday:22
@m_ophaalkalender-be:128 web_garbagetype:Glas   web_garbagedate:2021-01-22T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:290  garbageyear:2021  garbagemonth:01  garbageday:22
@m_ophaalkalender-be:129 web_garbagetype:GFT   web_garbagedate:2021-01-22T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:290  garbageyear:2021  garbagemonth:01  garbageday:22
@m_ophaalkalender-be:130 web_garbagetype:PMD   web_garbagedate:2021-01-29T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:297  garbageyear:2021  garbagemonth:01  garbageday:29
@m_ophaalkalender-be:131 web_garbagetype:Restafval   web_garbagedate:2021-01-29T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:297  garbageyear:2021  garbagemonth:01  garbageday:29
@m_ophaalkalender-be:132 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2021-01-29T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:297  garbageyear:2021  garbagemonth:01  garbageday:29
@m_ophaalkalender-be:133 web_garbagetype:Restafval   web_garbagedate:2021-02-05T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:304  garbageyear:2021  garbagemonth:02  garbageday:05
@m_ophaalkalender-be:134 web_garbagetype:GFT   web_garbagedate:2021-02-05T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:304  garbageyear:2021  garbagemonth:02  garbageday:05
@m_ophaalkalender-be:135 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2021-02-08T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:307  garbageyear:2021  garbagemonth:02  garbageday:08
@m_ophaalkalender-be:136 web_garbagetype:PMD   web_garbagedate:2021-02-12T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:311  garbageyear:2021  garbagemonth:02  garbageday:12
@m_ophaalkalender-be:137 web_garbagetype:Restafval   web_garbagedate:2021-02-12T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:311  garbageyear:2021  garbagemonth:02  garbageday:12
@m_ophaalkalender-be:138 web_garbagetype:Restafval   web_garbagedate:2021-02-19T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:318  garbageyear:2021  garbagemonth:02  garbageday:19
@m_ophaalkalender-be:139 web_garbagetype:P-K   web_garbagedate:2021-02-19T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:318  garbageyear:2021  garbagemonth:02  garbageday:19
@m_ophaalkalender-be:140 web_garbagetype:Glas   web_garbagedate:2021-02-19T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:318  garbageyear:2021  garbagemonth:02  garbageday:19
@m_ophaalkalender-be:141 web_garbagetype:GFT   web_garbagedate:2021-02-19T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:318  garbageyear:2021  garbagemonth:02  garbageday:19
@m_ophaalkalender-be:142 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2021-02-23T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:322  garbageyear:2021  garbagemonth:02  garbageday:23
@m_ophaalkalender-be:143 web_garbagetype:PMD   web_garbagedate:2021-02-26T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:325  garbageyear:2021  garbagemonth:02  garbageday:26
@m_ophaalkalender-be:144 web_garbagetype:Restafval   web_garbagedate:2021-02-26T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:325  garbageyear:2021  garbagemonth:02  garbageday:26
@m_ophaalkalender-be:145 web_garbagetype:Restafval   web_garbagedate:2021-03-05T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:332  garbageyear:2021  garbagemonth:03  garbageday:05
@m_ophaalkalender-be:146 web_garbagetype:GFT   web_garbagedate:2021-03-05T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:332  garbageyear:2021  garbagemonth:03  garbageday:05
@m_ophaalkalender-be:147 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2021-03-11T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:338  garbageyear:2021  garbagemonth:03  garbageday:11
@m_ophaalkalender-be:148 web_garbagetype:PMD   web_garbagedate:2021-03-12T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:339  garbageyear:2021  garbagemonth:03  garbageday:12
@m_ophaalkalender-be:149 web_garbagetype:Restafval   web_garbagedate:2021-03-12T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:339  garbageyear:2021  garbagemonth:03  garbageday:12
@m_ophaalkalender-be:150 web_garbagetype:Restafval   web_garbagedate:2021-03-19T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:346  garbageyear:2021  garbagemonth:03  garbageday:19
@m_ophaalkalender-be:151 web_garbagetype:P-K   web_garbagedate:2021-03-19T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:346  garbageyear:2021  garbagemonth:03  garbageday:19
@m_ophaalkalender-be:152 web_garbagetype:Glas   web_garbagedate:2021-03-19T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:346  garbageyear:2021  garbagemonth:03  garbageday:19
@m_ophaalkalender-be:153 web_garbagetype:GFT   web_garbagedate:2021-03-19T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:346  garbageyear:2021  garbagemonth:03  garbageday:19
@m_ophaalkalender-be:154 web_garbagetype:PMD   web_garbagedate:2021-03-26T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:353  garbageyear:2021  garbagemonth:03  garbageday:26
@m_ophaalkalender-be:155 web_garbagetype:Restafval   web_garbagedate:2021-03-26T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:353  garbageyear:2021  garbagemonth:03  garbageday:26
@m_ophaalkalender-be:156 web_garbagetype:Grof huisvuil afroep   web_garbagedate:2021-03-26T00:00:00+01:00
@m_ophaalkalender-be:...-> diff:353  garbageyear:2021  garbagemonth:03  garbageday:26
@m_ophaalkalender-be:=> Write data to /home/pi/domoticz/logs/garbagecalendar_m_ophaalkalender-be.data
[b]pi@raspbian:~/domoticz/logs[/b] $

Re: GarbageCalendar (new version) lua scripts

Posted: Tuesday 07 April 2020 21:01
by jvdz
iTDB wrote: Tuesday 07 April 2020 18:32 Set /etc/ssl/openssl.cnf to MinProtocol = TLSv1.0
* reboot
And It works!
Nice!
Thanks for all your testing. :)

Jos

Re: GarbageCalendar (new version) lua scripts

Posted: Wednesday 15 April 2020 13:05
by iTDB
jvdz wrote: Tuesday 07 April 2020 21:01 Thanks for all your testing. :)

Jos
You're welcome

I see that GFT is in my calendar when I have not entered it.
How can you hide unwanted garbage?

Re: GarbageCalendar (new version) lua scripts

Posted: Wednesday 15 April 2020 13:19
by jvdz
iTDB wrote: Wednesday 15 April 2020 13:05 [I see that GFT is in my calendar when I have not entered it.
How can you hide unwanted garbage?
Not sure I understand your question. All GarbageTypes shown in the calendar are found in the Data from the Website and you will get only notifications for the GarbageTypes you have defined in the configfile in the garbagetype_cfg table.
So what are you exactly expecting/wanting it to do, since GarbageType GFT is definitely in your WebData.

Jos

Re: GarbageCalendar (new version) lua scripts

Posted: Wednesday 15 April 2020 13:36
by iTDB
jvdz wrote: Wednesday 15 April 2020 13:19 So what are you exactly expecting/wanting it to do, since GarbageType GFT is definitely in your WebData.

Jos
Is it possible to filter out the GFT and only show the Restafval, Papier, Glas
This is what it shows

Re: GarbageCalendar (new version) lua scripts

Posted: Wednesday 15 April 2020 14:38
by jvdz
What about I modify the "active" option in the config table to the below and add the skip option? :

Code: Select all

   -- active     ==> (optional)  default="on"
   --           active="on"   Both will show in Domoticz Text Device and Send notifications
   --           active="off"  Will show in Domoticz Text Device but not send notifications
   --           active="skip" Will not show in Domoticz Text Device and not send notifications			
[code]

Jos

Re: GarbageCalendar (new version) lua scripts

Posted: Wednesday 15 April 2020 17:21
by jvdz
jvdz wrote: Wednesday 15 April 2020 14:38

Code: Select all

   -- active     ==> (optional)  default="on"
   --           active="on"   Both will show in Domoticz Text Device and Send notifications
   --           active="off"  Will show in Domoticz Text Device but not send notifications
   --           active="skip" Will not show in Domoticz Text Device and not send notifications			
This is now implemented in the current GitHub version. Just add the active field to the "garbagetype_cfg" GFT record like this:

Code: Select all

   ["gft"]        ={hour=17,min=59,daysbefore=1,reminder=4,text="gft",active="skip"},
Jos

Re: GarbageCalendar (new version) lua scripts

Posted: Sunday 26 April 2020 12:17
by iTDB
jvdz wrote: Wednesday 15 April 2020 17:21
jvdz wrote: Wednesday 15 April 2020 14:38

Code: Select all

   -- active     ==> (optional)  default="on"
   --           active="on"   Both will show in Domoticz Text Device and Send notifications
   --           active="off"  Will show in Domoticz Text Device but not send notifications
   --           active="skip" Will not show in Domoticz Text Device and not send notifications			
This is now implemented in the current GitHub version. Just add the active field to the "garbagetype_cfg" GFT record like this:

Code: Select all

   ["gft"]        ={hour=17,min=59,daysbefore=1,reminder=4,text="gft",active="skip"},
Jos
Thx. Works

Re: GarbageCalendar (new version) lua scripts

Posted: Friday 08 May 2020 8:48
by Reneb
Trying to get the script running on my Synology. garbagecalendar_web_m_deafvalapp.log is showing "sh: lua: command not found". Also directly through Putty getting the same result? Any suggestions?

Re: GarbageCalendar (new version) lua scripts

Posted: Monday 25 May 2020 16:25
by Pantagruel
Thanks for the hard work Jos.

After a fatal mishap to the SD-card in the Pi3 I had to setup stuff again and I switched to the new and improved modular version of the 'AfvalKalender'

Unfortunately I have not been able to set stuff up for De Meerlanden using the opzet_api.

Things seem to halt on a wrong website adres

Logs and config (partial) for afvalkalender.meerlanden.nl

Code: Select all


020-05-25 14:55:00.549 Status: LUA: @GarbageCal(m_opzet_api): #### Mon May 25 14:55:00 2020 ### Start garbagecalendar script v20200415-1630
2020-05-25 14:55:00.549 Status: LUA: @GarbageCal(m_opzet_api): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2020-05-25 14:55:00.549 Status: LUA: @GarbageCal(m_opzet_api): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2020-05-25 14:55:00.549 Status: LUA: @GarbageCal(m_opzet_api): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2020-05-25 14:55:00.550 Status: LUA: @GarbageCal(m_opzet_api): datafilepath: /var/tmp/
2020-05-25 14:55:00.550 Status: LUA: @GarbageCal(m_opzet_api): scriptpath: /home/pi/domoticz/scripts/lua/
2020-05-25 14:55:00.550 Status: LUA: @GarbageCal(m_opzet_api): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2020-05-25 14:55:00.555 Status: LUA: @GarbageCal(m_opzet_api): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
2020-05-25 14:55:00.555 Status: LUA: @GarbageCal(m_opzet_api): Start checking garbagetype_cfg table:
2020-05-25 14:55:00.556 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:2:30 Garbagetype:reloaddata
2020-05-25 14:55:00.556 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:2:31 Garbagetype:dummy1
2020-05-25 14:55:00.556 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:19:22 Garbagetype:papier
2020-05-25 14:55:00.556 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:19:22 Garbagetype:gft
2020-05-25 14:55:00.556 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:19:22 Garbagetype:pmd
2020-05-25 14:55:00.556 Status: LUA: @GarbageCal(m_opzet_api): Start update for text device:
2020-05-25 14:55:00.557 Status: LUA: !!! table.load error:cannot open /var/tmp/garbagecalendar_m_opzet_api.data: No such file or directory
2020-05-25 14:55:00.557 Status: LUA: !!! unable to read Data from /var/tmp/garbagecalendar_m_opzet_api.data
2020-05-25 14:55:00.557 Status: LUA: @GarbageCal(m_opzet_api): ### Warning: Datafile not found:/var/tmp/garbagecalendar_m_opzet_api.data . Start webupdate now.
2020-05-25 14:55:00.557 Status: LUA: @GarbageCal(m_opzet_api): start foreground webupdate for module m_opzet_api of file /var/tmp/garbagecalendar_m_opzet_api.data
2020-05-25 14:55:00.931 Status: LUA: @GarbageCal(m_opzet_api): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua "/home/pi/domoticz/scripts/lua/" "1234AB" "00" "" "/var/tmp/garbagecalendar_m_opzet_api.data" "/var/tmp/garbagecalendar_web_m_opzet_api.log" "afvalkalender.meerlanden.nl" ""
2020-05-25 14:55:00.931 Status: LUA: !!! table.load error:cannot open /var/tmp/garbagecalendar_m_opzet_api.data: No such file or directory
2020-05-25 14:55:00.932 Status: LUA: !!! unable to read Data from /var/tmp/garbagecalendar_m_opzet_api.data
2020-05-25 14:55:00.932 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
2020-05-25 14:55:00.932 Status: LUA: @GarbageCal(m_opzet_api): ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_opzet_api.data
2020-05-25 14:55:00.932 Status: LUA: @GarbageCal(m_opzet_api): ### Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_opzet_api.log and /var/tmp/garbagecalendar_run_m_opzet_api.log
2020-05-25 14:55:00.932 Status: LUA: @GarbageCal(m_opzet_api): - End -----------------
2020-05-25 14:55:00.932 Status: LUA: @GarbageCal(m_opzet_api): ==> found schedule:
2020-05-25 14:55:00.932 Status: LUA: @GarbageCal(m_opzet_api): Update device from:
2020-05-25 14:55:00.932 0
2020-05-25 14:55:00.932 replace with:
2020-05-25 14:55:00.932
2020-05-25 14:55:00.934 Status: LUA: @GarbageCal(m_opzet_api): #### 14:55:00 End garbagecalendar script v20200415-1630
2020-05-25 14:55:00.945 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_time_garbagecalendar.lua

garbagecalendar_run_m_opzet_api.log

@GarbageCal(m_opzet_api): #### Mon May 25 14:56:00 2020 ### Start garbagecalendar script v20200415-1630
@GarbageCal(m_opzet_api): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
@GarbageCal(m_opzet_api): ####    please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
@GarbageCal(m_opzet_api): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_opzet_api): datafilepath: /var/tmp/
@GarbageCal(m_opzet_api): scriptpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_opzet_api): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
@GarbageCal(m_opzet_api): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
@GarbageCal(m_opzet_api): Start checking garbagetype_cfg table:
@GarbageCal(m_opzet_api): -> NotificationTime:2:30  Garbagetype:reloaddata
@GarbageCal(m_opzet_api): -> NotificationTime:19:22  Garbagetype:gft
@GarbageCal(m_opzet_api): -> NotificationTime:19:22  Garbagetype:papier
@GarbageCal(m_opzet_api): -> NotificationTime:2:31  Garbagetype:dummy1
@GarbageCal(m_opzet_api): -> NotificationTime:19:22  Garbagetype:pmd
@GarbageCal(m_opzet_api): Start update for text device:
@GarbageCal(m_opzet_api): ### Warning: Datafile not found:/var/tmp/garbagecalendar_m_opzet_api.data . Start webupdate now.
@GarbageCal(m_opzet_api): start foreground webupdate for module m_opzet_api of file /var/tmp/garbagecalendar_m_opzet_api.data
@GarbageCal(m_opzet_api): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua "/home/pi/domoticz/scripts/lua/" "1234AB" "00" "" "/var/tmp/garbagecalendar_m_opzet_api.data" "/var/tmp/garbagecalendar_web_m_opzet_api.log" "afvalkalender.meerlanden.nl" ""
@GarbageCal(m_opzet_api):  Unable to load the data. please check your setup and runlogfile :/var/tmp/garbagecalendar_run_m_opzet_api.log
@GarbageCal(m_opzet_api): ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_opzet_api.data
@GarbageCal(m_opzet_api): ###          Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_opzet_api.log and /var/tmp/garbagecalendar_run_m_opzet_api.log
@GarbageCal(m_opzet_api): - End  -----------------
@GarbageCal(m_opzet_api): ==> found schedule:
@GarbageCal(m_opzet_api): Update device from:
0
 replace with:

@GarbageCal(m_opzet_api): #### 14:56:00 End garbagecalendar script v20200415-1630

garbagecalendar_run_update_m_opzet_api.log
@GarbageCal(m_opzet_api): #### Mon May 25 14:57:00 2020 ### Start garbagecalendar script v20200415-1630
@GarbageCal(m_opzet_api): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
@GarbageCal(m_opzet_api): ####    please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
@GarbageCal(m_opzet_api): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_opzet_api): datafilepath: /var/tmp/
@GarbageCal(m_opzet_api): scriptpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_opzet_api): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
@GarbageCal(m_opzet_api): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
@GarbageCal(m_opzet_api): Start checking garbagetype_cfg table:
@GarbageCal(m_opzet_api): -> NotificationTime:2:31  Garbagetype:dummy1
@GarbageCal(m_opzet_api): -> NotificationTime:19:22  Garbagetype:papier
@GarbageCal(m_opzet_api): -> NotificationTime:19:22  Garbagetype:gft
@GarbageCal(m_opzet_api): -> NotificationTime:19:22  Garbagetype:pmd
@GarbageCal(m_opzet_api): -> NotificationTime:2:30  Garbagetype:reloaddata
@GarbageCal(m_opzet_api): Start update for text device:
@GarbageCal(m_opzet_api): ### Warning: Datafile not found:/var/tmp/garbagecalendar_m_opzet_api.data . Start webupdate now.
@GarbageCal(m_opzet_api): start foreground webupdate for module m_opzet_api of file /var/tmp/garbagecalendar_m_opzet_api.data
@GarbageCal(m_opzet_api): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua "/home/pi/domoticz/scripts/lua/" "1234AB" "00" "" "/var/tmp/garbagecalendar_m_opzet_api.data" "/var/tmp/garbagecalendar_web_m_opzet_api.log" "afvalkalender.meerlanden.nl" ""
@GarbageCal(m_opzet_api):  Unable to load the data. please check your setup and runlogfile :/var/tmp/garbagecalendar_run_m_opzet_api.log
@GarbageCal(m_opzet_api): ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_opzet_api.data
@GarbageCal(m_opzet_api): ###          Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_opzet_api.log and /var/tmp/garbagecalendar_run_m_opzet_api.log
@GarbageCal(m_opzet_api): - End  -----------------
@GarbageCal(m_opzet_api): ==> found schedule:
@GarbageCal(m_opzet_api): Update device from:
0
 replace with:

garbagecalendar_web_m_opzet_api.log

@m_opzet_api:#### Mon May 25 14:58:00 2020 ### Start garbagekalerder module m_opzet_api (v20200410-1300)
@m_opzet_api:Loaded JSON.lua.
@m_opzet_api:!!! perform background update to /var/tmp/garbagecalendar_m_opzet_api.data for Zipcode 1234AB - 00  (optional) [b]Hostname:afvalkalender.meerlanden.nl
@m_opzet_api:---- web update ----------------------------------------------------------------------------
@m_opzet_api:sQuery=curl "https://afvalkalender.meerlanden.nl/rest/adressen/1234AB-00" 2>/var/tmp/garbagecalendar_web_err_m_opzet_api.log
@m_opzet_api:---- web data ----------------------------------------------------------------------------
@m_opzet_api:<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>[/b]

@m_opzet_api:---- web err ------------------------------------------------------------------------
@m_opzet_api:Web_Err=  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162  100   162    0     0    920      0 --:--:-- --:--:-- --:--:--   920

@m_opzet_api:---- end web data ------------------------------------------------------------------------
lua: /home/pi/domoticz/scripts/lua/JSON.lua:808: HTML passed to JSON:decode(): <html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

stack traceback:
        [C]: in function 'assert'
        /home/pi/domoticz/scripts/lua/JSON.lua:808: in function 'onDecodeOfHTMLError'
        /home/pi/domoticz/scripts/lua/JSON.lua:1172: in function 'decode'
        .../pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua:65: in function 'Perform_Update'
        .../pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua:146: in main chunk
        [C]: in ?
 cat ~/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua
-----------------------------------------------------------------------------
-- garbagecalendarconfig.lua
-----------------------------------------------------------------------------
-- Specify your information here as needed for your needs
myGarbageDevice = 'Container'      -- The Text devicename in Domoticz
ShowNextEvents = 3                 -- indicate the next x events to show in the TEXT Sensor in Domoticz
Zipcode = '1234AB'                       -- Your zipcode
Housenr = '00'                       -- Your housnr
Housenrsuf = ''                    -- Your housnr suffix                    (Optional: a/b/c  etc)
Street=''                          -- Street name                           Only needed for: m_ophaalkalender-be
Hostname = 'afvalkalender.meerlanden.nl'                      -- Specify the hostname of your website. Only needed for: m_opzet ; m_opzet_api ;
                                   -- OR Specify the companycode for the m_ximmio.lua module. See m_ximmio.lua on how to find this code.
website change to inzamelkalender.meerlanden.nl

Code: Select all

2020-05-25 16:09:00.361 Status: LUA: @GarbageCal(m_opzet_api): #### Mon May 25 16:09:00 2020 ### Start garbagecalendar script v20200415-1630
2020-05-25 16:09:00.361 Status: LUA: @GarbageCal(m_opzet_api): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2020-05-25 16:09:00.361 Status: LUA: @GarbageCal(m_opzet_api): #### please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2020-05-25 16:09:00.361 Status: LUA: @GarbageCal(m_opzet_api): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2020-05-25 16:09:00.361 Status: LUA: @GarbageCal(m_opzet_api): datafilepath: /var/tmp/
2020-05-25 16:09:00.362 Status: LUA: @GarbageCal(m_opzet_api): scriptpath: /home/pi/domoticz/scripts/lua/
2020-05-25 16:09:00.362 Status: LUA: @GarbageCal(m_opzet_api): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2020-05-25 16:09:00.365 Status: LUA: @GarbageCal(m_opzet_api): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
2020-05-25 16:09:00.365 Status: LUA: @GarbageCal(m_opzet_api): Start checking garbagetype_cfg table:
2020-05-25 16:09:00.365 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:19:22 Garbagetype:gft
2020-05-25 16:09:00.365 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:2:31 Garbagetype:dummy1
2020-05-25 16:09:00.365 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:19:22 Garbagetype:papier
2020-05-25 16:09:00.366 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:2:30 Garbagetype:reloaddata
2020-05-25 16:09:00.366 Status: LUA: @GarbageCal(m_opzet_api): -> NotificationTime:19:22 Garbagetype:pmd
2020-05-25 16:09:00.366 Status: LUA: @GarbageCal(m_opzet_api): Start update for text device:
2020-05-25 16:09:00.366 Status: LUA: !!! table.load error:cannot open /var/tmp/garbagecalendar_m_opzet_api.data: No such file or directory
2020-05-25 16:09:00.366 Status: LUA: !!! unable to read Data from /var/tmp/garbagecalendar_m_opzet_api.data
2020-05-25 16:09:00.366 Status: LUA: @GarbageCal(m_opzet_api): ### Warning: Datafile not found:/var/tmp/garbagecalendar_m_opzet_api.data . Start webupdate now.
2020-05-25 16:09:00.366 Status: LUA: @GarbageCal(m_opzet_api): start foreground webupdate for module m_opzet_api of file /var/tmp/garbagecalendar_m_opzet_api.data
2020-05-25 16:09:00.660 Status: LUA: @GarbageCal(m_opzet_api): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua "/home/pi/domoticz/scripts/lua/" "1234AB" "00" "" "/var/tmp/garbagecalendar_m_opzet_api.data" "/var/tmp/garbagecalendar_web_m_opzet_api.log" "inzamelkalender.meerlanden.nl" ""
2020-05-25 16:09:00.660 Status: LUA: !!! table.load error:cannot open /var/tmp/garbagecalendar_m_opzet_api.data: No such file or directory
2020-05-25 16:09:00.660 Status: LUA: !!! unable to read Data from /var/tmp/garbagecalendar_m_opzet_api.data
2020-05-25 16:09:00.660 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
2020-05-25 16:09:00.660 Status: LUA: @GarbageCal(m_opzet_api): ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_opzet_api.data
2020-05-25 16:09:00.660 Status: LUA: @GarbageCal(m_opzet_api): ### Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_opzet_api.log and /var/tmp/garbagecalendar_run_m_opzet_api.log
2020-05-25 16:09:00.660 Status: LUA: @GarbageCal(m_opzet_api): - End -----------------
2020-05-25 16:09:00.660 Status: LUA: @GarbageCal(m_opzet_api): ==> found schedule:
2020-05-25 16:09:00.660 Status: LUA: @GarbageCal(m_opzet_api): Update device from:
2020-05-25 16:09:00.660 0
2020-05-25 16:09:00.660 replace with:
2020-05-25 16:09:00.660
2020-05-25 16:09:00.661 Status: LUA: @GarbageCal(m_opzet_api): #### 16:09:00 End garbagecalendar script v20200415-1630
2020-05-25 16:09:00.666 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_time_garbagecalendar.lua

garbagecalendar_run_m_opzet_api.log

@GarbageCal(m_opzet_api): #### Mon May 25 16:10:00 2020 ### Start garbagecalendar script v20200415-1630
@GarbageCal(m_opzet_api): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
@GarbageCal(m_opzet_api): ####    please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
@GarbageCal(m_opzet_api): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_opzet_api): datafilepath: /var/tmp/
@GarbageCal(m_opzet_api): scriptpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_opzet_api): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
@GarbageCal(m_opzet_api): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
@GarbageCal(m_opzet_api): Start checking garbagetype_cfg table:
@GarbageCal(m_opzet_api): -> NotificationTime:19:22  Garbagetype:pmd
@GarbageCal(m_opzet_api): -> NotificationTime:2:30  Garbagetype:reloaddata
@GarbageCal(m_opzet_api): -> NotificationTime:2:31  Garbagetype:dummy1
@GarbageCal(m_opzet_api): -> NotificationTime:19:22  Garbagetype:papier
@GarbageCal(m_opzet_api): -> NotificationTime:19:22  Garbagetype:gft
@GarbageCal(m_opzet_api): Start update for text device:
@GarbageCal(m_opzet_api): ### Warning: Datafile not found:/var/tmp/garbagecalendar_m_opzet_api.data . Start webupdate now.
@GarbageCal(m_opzet_api): start foreground webupdate for module m_opzet_api of file /var/tmp/garbagecalendar_m_opzet_api.data
@GarbageCal(m_opzet_api): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua "/home/pi/domoticz/scripts/lua/" "1234AB" "00" "" "/var/tmp/garbagecalendar_m_opzet_api.data" "/var/tmp/garbagecalendar_web_m_opzet_api.log" "inzamelkalender.meerlanden.nl" ""
@GarbageCal(m_opzet_api):  Unable to load the data. please check your setup and runlogfile :/var/tmp/garbagecalendar_run_m_opzet_api.log
@GarbageCal(m_opzet_api): ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_opzet_api.data
@GarbageCal(m_opzet_api): ###          Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_opzet_api.log and /var/tmp/garbagecalendar_run_m_opzet_api.log
@GarbageCal(m_opzet_api): - End  -----------------
@GarbageCal(m_opzet_api): ==> found schedule:
@GarbageCal(m_opzet_api): Update device from:
0
 replace with:

@GarbageCal(m_opzet_api): #### 16:10:00 End garbagecalendar script v20200415-1630

garbagecalendar_run_update_m_opzet_api.log

@GarbageCal(m_opzet_api): #### Mon May 25 16:12:00 2020 ### Start garbagecalendar script v20200415-1630
@GarbageCal(m_opzet_api): #### Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
@GarbageCal(m_opzet_api): ####    please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
@GarbageCal(m_opzet_api): domoticzjsonpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_opzet_api): datafilepath: /var/tmp/
@GarbageCal(m_opzet_api): scriptpath: /home/pi/domoticz/scripts/lua/
@GarbageCal(m_opzet_api): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
@GarbageCal(m_opzet_api): Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua.
@GarbageCal(m_opzet_api): Start checking garbagetype_cfg table:
@GarbageCal(m_opzet_api): -> NotificationTime:2:31  Garbagetype:dummy1
@GarbageCal(m_opzet_api): -> NotificationTime:19:22  Garbagetype:gft
@GarbageCal(m_opzet_api): -> NotificationTime:19:22  Garbagetype:pmd
@GarbageCal(m_opzet_api): -> NotificationTime:2:30  Garbagetype:reloaddata
@GarbageCal(m_opzet_api): -> NotificationTime:19:22  Garbagetype:papier
@GarbageCal(m_opzet_api): Start update for text device:
@GarbageCal(m_opzet_api): ### Warning: Datafile not found:/var/tmp/garbagecalendar_m_opzet_api.data . Start webupdate now.
@GarbageCal(m_opzet_api): start foreground webupdate for module m_opzet_api of file /var/tmp/garbagecalendar_m_opzet_api.data
@GarbageCal(m_opzet_api): lua /home/pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua "/home/pi/domoticz/scripts/lua/" "1234AB" "00" "" "/var/tmp/garbagecalendar_m_opzet_api.data" "/var/tmp/garbagecalendar_web_m_opzet_api.log" "inzamelkalender.meerlanden.nl" ""
@GarbageCal(m_opzet_api):  Unable to load the data. please check your setup and runlogfile :/var/tmp/garbagecalendar_run_m_opzet_api.log
@GarbageCal(m_opzet_api): ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_opzet_api.data
@GarbageCal(m_opzet_api): ###          Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_opzet_api.log and /var/tmp/garbagecalendar_run_m_opzet_api.log
@GarbageCal(m_opzet_api): - End  -----------------
@GarbageCal(m_opzet_api): ==> found schedule:
@GarbageCal(m_opzet_api): Update device from:
0
 replace with:

garbagecalendar_web_m_opzet_api.log

@m_opzet_api:#### Mon May 25 16:13:00 2020 ### Start garbagekalerder module m_opzet_api (v20200410-1300)
@m_opzet_api:Loaded JSON.lua.
@m_opzet_api:!!! perform background update to /var/tmp/garbagecalendar_m_opzet_api.data for Zipcode 1234AB - 00  (optional) Hostname:inzamelkalender.meerlanden.nl
@m_opzet_api:---- web update ----------------------------------------------------------------------------
[b]@m_opzet_api:sQuery=curl "https://inzamelkalender.meerlanden.nl/rest/adressen/1234AB-00" 2>/var/tmp/garbagecalendar_web_err_m_opzet_api.log
@m_opzet_api:---- web data ----------------------------------------------------------------------------
@m_opzet_api:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>404 - File or directory not found.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
 <div class="content-container"><fieldset>
  <h2>404 - File or directory not found.</h2>
  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
 </fieldset></div>
</div>
</body>
</html>[/b]

@m_opzet_api:---- web err ------------------------------------------------------------------------
@m_opzet_api:Web_Err=  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1245  100  1245    0     0   7545      0 --:--:-- --:--:-- --:--:--  7591

@m_opzet_api:---- end web data ------------------------------------------------------------------------
lua: /home/pi/domoticz/scripts/lua/JSON.lua:808: HTML passed to JSON:decode(): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>404 - File or directory not found.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
 <div class="content-container"><fieldset>
  <h2>404 - File or directory not found.</h2>
  <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
 </fieldset></div>
</div>
</body>
</html>

stack traceback:
        [C]: in function 'assert'
        /home/pi/domoticz/scripts/lua/JSON.lua:808: in function 'onDecodeOfHTMLError'
        /home/pi/domoticz/scripts/lua/JSON.lua:1172: in function 'decode'
        .../pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua:65: in function 'Perform_Update'
        .../pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua:146: in main chunk
        [C]: in ?


So again problems with the website :(

I changed the config to suit the needs for ximmio and this works without a hitch (just don't like their 'Green/Grey' naming for the bins :(

Re: GarbageCalendar (new version) lua scripts

Posted: Monday 25 May 2020 16:37
by jvdz
Pantagruel wrote: Monday 25 May 2020 16:25 So again problems with the website :(
I changed the config to suit the needs for ximmio and this works without a hitch (just don't like their 'Green/Grey' naming for the bins :(
They probably changed provider when it now works with XIMMIO. (I have had others with the same issue that were using meerlanden).
What exactly is your issue with the text? Can't you change it in the Table?

Jos

Re: GarbageCalendar (new version) lua scripts

Posted: Monday 25 May 2020 21:38
by Pantagruel
jvdz wrote: Monday 25 May 2020 16:37
Pantagruel wrote: Monday 25 May 2020 16:25 So again problems with the website :(
I changed the config to suit the needs for ximmio and this works without a hitch (just don't like their 'Green/Grey' naming for the bins :(
They probably changed provider when it now works with XIMMIO. (I have had others with the same issue that were using meerlanden).
What exactly is your issue with the text? Can't you change it in the Table?

Jos
You mean the garbagetype_cfg tabel in the garbagecalendarconfig.lua file?

I added/changed some labels/text

garbagetype_cfg = {
-- Add any missing records below this line
-- ["pmd"] ={hour=19,min=22,daysbefore=1,reminder=0,text="pmd"},
-- ["gft"] ={hour=19,min=22,daysbefore=1,reminder=0,text="gft"},
["GREY"] ={hour=19,min=22,daysbefore=1,reminder=0,text="PMD bak"},
["GREEN"] ={hour=19,min=22,daysbefore=1,reminder=0,text="GFT bak"},

and played with the textformat (textformat = "tdesc: wd dd mmm") and get output to my liking, thanks.

Re: GarbageCalendar (new version) lua scripts

Posted: Monday 25 May 2020 22:18
by jvdz
Pantagruel wrote: Monday 25 May 2020 21:38 and played with the textformat (textformat = "tdesc: wd dd mmm") and get output to my liking, thanks.
Great, just wanted to understand whether there was anything that isn't configurable yet. 8-)

Jos

Re: GarbageCalendar (new version) lua scripts

Posted: Tuesday 26 May 2020 21:24
by Pantagruel
jvdz wrote: Monday 25 May 2020 22:18
Pantagruel wrote: Monday 25 May 2020 21:38 and played with the textformat (textformat = "tdesc: wd dd mmm") and get output to my liking, thanks.
Great, just wanted to understand whether there was anything that isn't configurable yet. 8-)

Jos
Haha :lol:

It was more of a search to find where the annoying "GREEN/GREY" came from as they had no apparent mapping to "PMD/GFT" in the config file. In the old version and before Meerlanden switched site/hoster/backend, the table text matched with the bin colour and was displayed as such in the text container. Once I figured out how to replace the "GREEN/GREY" with something more useful it was plain sailing.

Re: GarbageCalendar (new version) lua scripts

Posted: Friday 05 June 2020 13:10
by sammyke007
Reneb wrote: Friday 08 May 2020 8:48 Trying to get the script running on my Synology. garbagecalendar_web_m_deafvalapp.log is showing "sh: lua: command not found". Also directly through Putty getting the same result? Any suggestions?
This new script is not working on a Synology NAS as LUA isn't available. You have to use the old script, but that also stopped working as of last week. I contacted Jos about this and will keep you updated.

Re: GarbageCalendar (new version) lua scripts

Posted: Friday 05 June 2020 21:28
by jvdz
Reneb wrote: Friday 08 May 2020 8:48 Trying to get the script running on my Synology. garbagecalendar_web_m_deafvalapp.log is showing "sh: lua: command not found". Also directly through Putty getting the same result? Any suggestions?
I guess I missed this post. :oops:
sammyke007 wrote: Friday 05 June 2020 13:10 This new script is not working on a Synology NAS as LUA isn't available. You have to use the old script, but that also stopped working as of last week. I contacted Jos about this and will keep you updated.
So the original works because it is shelled by the internal Domoticz LUA interpreter and the WebUpdate module fails to shell because the requires the separate LUA interpreter?
We could make it fully run from within Domoticz as Option, but the downside is that the WebUpdate will be run by the Event system. (Like to old version).
Would that be an option?
Jos