- Spoiler: show
Any thoughts, i will also look at the wiki link to try and figure out why gray is not being "groene bak".
Moderator: leecollings
17:14:00 MainScript: ---> Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
17:14:00 MainScript: ---> please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
17:14:00 MainScript: domoticzjsonpath: /home/pi/domoticz/scripts/lua/
17:14:00 MainScript: datafilepath: /var/tmp/
17:14:00 MainScript: scriptpath: /home/pi/domoticz/scripts/lua/
17:14:00 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
17:14:00 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua (v20210330-1836)
17:14:00 MainScript: => Start new foreground WebUpdate for module m_mijnafvalwijzer
17:14:00 MainScript: - Module m_mijnafvalwijzer done. Saved 0 records to data file /var/tmp/garbagecalendar_m_mijnafvalwijzer.data. Look at /var/tmp/garbagecalendar$
17:14:00 MainScript: =< End WebUpdate.
17:14:00 MainScript: => Start checking garbagetype_cfg table whether an action is needed:
17:14:00 MainScript: > NotificationTime=19:22 Garbagetype=pmd
17:14:00 MainScript: > NotificationTime=02:31 Garbagetype=dummy1
17:14:00 MainScript: > NotificationTime=19:22 Garbagetype=papier
17:14:00 MainScript: > NotificationTime=19:22 Garbagetype=gft
17:14:00 MainScript: > NotificationTime=02:30 Garbagetype=reloaddata
17:14:00 MainScript: #> Perform update because mydebug=true.
17:14:00 MainScript: => Action starting, First check access to required files:
17:14:00 MainScript: Run command:
ls -l /var/tmp/garbagecal*m_mijnafvalwijzer*:
-rw-r----- 1 root root 83 apr 4 17:14 /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
-rw-r----- 1 root root 1998 apr 4 17:14 /var/tmp/garbagecalendar_run_m_mijnafvalwijzer.log
-rw-r----- 1 root root 3360 apr 4 17:13 /var/tmp/garbagecalendar_run_update_m_mijnafvalwijzer.log
-rw-r----- 1 root root 2146 apr 4 17:14 /var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log
17:14:00 MainScript: Access OK: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
17:14:00 MainScript: Access OK: /var/tmp/garbagecalendar_run_m_mijnafvalwijzer.log
17:14:00 MainScript: Access OK: /var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log
17:14:00 MainScript: => Start update for text device:
17:14:00 MainScript: 0 data records loaded, updated at Sun Apr 4 17:14:00 2021 from datafile:/var/tmp/garbagecalendar_m_mijnafvalwijzer.data
17:14:00 MainScript: -> Start looping through data to find the first 3 events to show:
17:14:00 MainScript: ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
17:14:00 MainScript: ### Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_mijnafvalwijzer.log and /var/tmp/garbagecalen$
17:14:00 MainScript: -< End data loop
17:14:00 MainScript: ==> found schedule:
17:14:00 MainScript: Update device from:
0
Other module17:17:00 _runmodule: #2 scriptpath /home/pi/domoticz/scripts/lua/
17:17:00 _runmodule: --> Start -- foreground _runmodule.lua (v20210330-1836) for garbage module m_mijnafvalwijzer
17:17:00 m_mijnafvalwijzer: #### Sun Apr 4 17:17:00 2021 ### Start garbagecalendar module m_mijnafvalwijzer (v20210312-1700)
17:17:00 m_mijnafvalwijzer: !!! perform background update to /var/tmp/garbagecalendar_m_mijnafvalwijzer.data for Zipcode 8231BX - 30 (optional) Hostname:inzamelkalen$
17:17:00 m_mijnafvalwijzer: ---- web update ----------------------------------------------------------------------------
17:17:00 m_mijnafvalwijzer: sQuery=curl -k "https://www.mijnafvalwijzer.nl/nl/8******/**" 2>/var/tmp/garbagecalendar_web_err_m_mijnafvalwijzer.log
17:17:00 m_mijnafvalwijzer: ---- web data ----------------------------------------------------------------------------
17:17:00 m_mijnafvalwijzer:
17:17:00 m_mijnafvalwijzer: ---- web err ------------------------------------------------------------------------
17:17:00 m_mijnafvalwijzer: Web_Err= % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M 0 $
17:17:00 m_mijnafvalwijzer: ---- end web data ------------------------------------------------------------------------
17:17:00 m_mijnafvalwijzer: ### Error: Empty result from curl command
17:17:00 m_mijnafvalwijzer: Error Web_Data is empty.
17:17:00 m_mijnafvalwijzer: => Write data to /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
17:17:00 m_mijnafvalwijzer: ==> Data is saved, file contains 0 records.
17:17:00 _runmodule: - Module m_mijnafvalwijzer done. Saved 0 records to data file /var/tmp/garbagecalendar_m_mijnafvalwijzer.data. Look at /var/tmp/garbagecalendar$
17:17:00 _runmodule: --< End module m_mijnafvalwijzer.lua (v20210312-1700)
Looks fine to me.
Sounds logical that it doesn't work as you get the above error when retrieving the data and.....arnaudarduino wrote: ↑Sunday 04 April 2021 16:2817:17:00 _runmodule: #2 scriptpath /home/pi/domoticz/scripts/lua/
17:17:00 m_mijnafvalwijzer: ---- web data ----------------------------------------------------------------------------
17:17:00 m_mijnafvalwijzer:
17:17:00 m_mijnafvalwijzer: ---- web err ------------------------------------------------------------------------
17:17:00 m_mijnafvalwijzer: Web_Err= % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M 0 $
17:17:00 m_mijnafvalwijzer: ---- end web data ------------------------------------------------------------------------
17:17:00 m_mijnafvalwijzer: ### Error: Empty result from curl command
17:17:00 m_mijnafvalwijzer: Error Web_Data is empty.
17:17:00 m_mijnafvalwijzer: => Write data to /var/tmp/garbagecalendar_m_mijnafvalwijzer.data
17:17:00 m_mijnafvalwijzer: ==> Data is saved, file contains 0 records.
HVC Flevoland
....I think HVC uses OPZET, so guess you need module m_opzet_api in stead of m_mijnafvalwijzer with the correct hostname inzamelkalender.hvcgroep.nl.arnaudarduino wrote: ↑Sunday 04 April 2021 16:28 HVC Flevoland
- snip-
17:14:00 MainScript: - Module m_mijnafvalwijzer done. Saved 0 records to data file /var/tmp/garbagecalendar_m_mijnafvalwijzer.data. Look at /var/tmp/garbagecalendar$
Code: Select all
####################
data records loaded, updated at Wed Apr 21 15:00:03 2021 from datafile:/var/tmp/garbagecalendar_m_opzet_api.data
### Warning: No valid records found in the datafile:
####################
Code: Select all
2021-04-27 11:27:00.329 Status: LUA: 11:27:00 MainScript: ### Start garbagecalendar script v20210330-1836 Tue Apr 27 11:27:00 2021
2021-04-27 11:27:00.329 Status: LUA: 11:27:00 MainScript: ---> Debuging dataload each cycle in the foreground because "testdataload=true" in garbagecalendarconfig.lua
2021-04-27 11:27:00.329 Status: LUA: 11:27:00 MainScript: ---> please change it back to "testdataload=false" when done testing to avoid growing a big domoticz log and slowing down the event system.
2021-04-27 11:27:00.329 Status: LUA: 11:27:00 MainScript: ---> Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2021-04-27 11:27:00.330 Status: LUA: 11:27:00 MainScript: ---> please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2021-04-27 11:27:00.330 Status: LUA: 11:27:00 MainScript: domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2021-04-27 11:27:00.330 Status: LUA: 11:27:00 MainScript: datafilepath: /var/tmp/
2021-04-27 11:27:00.330 Status: LUA: 11:27:00 MainScript: scriptpath: /home/pi/domoticz/scripts/lua/
2021-04-27 11:27:00.330 Status: LUA: 11:27:00 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2021-04-27 11:27:00.332 Status: LUA: 11:27:00 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua (v20210330-1836)
2021-04-27 11:27:00.332 Status: LUA: 11:27:00 MainScript: => Start new foreground WebUpdate for module m_opzet_api
2021-04-27 11:27:00.333 Status: LUA: 11:27:00 _runmodule: #2 scriptpath /home/pi/domoticz/scripts/lua/
2021-04-27 11:27:00.333 Status: LUA: 11:27:00 _runmodule: --> Start -- foreground _runmodule.lua (v20210330-1836) for garbage module m_opzet_api
2021-04-27 11:27:00.497 Status: LUA: 11:27:00 _runmodule: !! Module m_opzet_api had hard error. check log:/var/tmp/garbagecalendar_web_m_opzet_api.log
2021-04-27 11:27:00.497 /home/pi/domoticz/scripts/lua/JSON.lua:808: HTML passed to JSON:decode(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
2021-04-27 11:27:00.497 <html><head>
2021-04-27 11:27:00.497 <title>301 Moved Permanently</title>
2021-04-27 11:27:00.497 </head><body>
2021-04-27 11:27:00.497 <h1>Moved Permanently</h1>
2021-04-27 11:27:00.497 <p>The document has moved <a href="https://www.stadswerk072.nl/rest/adressen/1486MK-45">here</a>.</p>
2021-04-27 11:27:00.497 <hr>
2021-04-27 11:27:00.497 <address>Apache/2.4.29 (Ubuntu) Server at inzamelkalender.stadswerk072.nl Port 443</address>
2021-04-27 11:27:00.497 </body></html>
2021-04-27 11:27:00.497
2021-04-27 11:27:00.497 stack traceback:
2021-04-27 11:27:00.497 ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:10: in function 'errhandler'
2021-04-27 11:27:00.497 [C]: in function 'assert'
2021-04-27 11:27:00.497 /home/pi/domoticz/scripts/lua/JSON.lua:808: in method 'onDecodeOfHTMLError'
2021-04-27 11:27:00.497 /home/pi/domoticz/scripts/lua/JSON.lua:1172: in method 'decode'
2021-04-27 11:27:00.497 .../pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua:66: in function 'Perform_Update'
2021-04-27 11:27:00.497 .../pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua:164: in main chunk
2021-04-27 11:27:00.497 [C]: in function 'dofile'
2021-04-27 11:27:00.497 ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:78: in function 'RunWebModule'
2021-04-27 11:27:00.497 [C]: in function 'xpcall'
2021-04-27 11:27:00.497 ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:96: in main chunk
2021-04-27 11:27:00.497 [C]: in function 'dofile'
2021-04-27 11:27:00.497 .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:194: in function 'GetWebData'
2021-04-27 11:27:00.497 .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:543: in main chunk
2021-04-27 11:27:00.497 Status: LUA: 11:27:00 _runmodule: /var/tmp/garbagecalendar_web_m_opzet_api.log
2021-04-27 11:27:00.497 Status: LUA: 11:27:00 _runmodule:
2021-04-27 11:27:00.497 %%%%% LUA Hardcrash log %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2021-04-27 11:27:00.497 Status: LUA: 11:27:00 _runmodule: nil
2021-04-27 11:27:00.498 Status: LUA: 11:27:00 _runmodule: stack traceback:
2021-04-27 11:27:00.498 ...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:105: in main chunk
2021-04-27 11:27:00.498 [C]: in function 'dofile'
2021-04-27 11:27:00.498 .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:194: in function 'GetWebData'
2021-04-27 11:27:00.498 .../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:543: in main chunk
2021-04-27 11:27:00.498 Status: LUA: 11:27:00 _runmodule: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2021-04-27 11:27:00.498 Status: LUA: 11:27:00 _runmodule: --< End module m_opzet_api.lua (v20210421-2000)
2021-04-27 11:27:00.498 Status: LUA: 11:27:00 MainScript: =< End WebUpdate.
2021-04-27 11:27:00.498 Status: LUA: 11:27:00 MainScript: => Start checking garbagetype_cfg table whether an action is needed:
2021-04-27 11:27:00.498 Status: LUA: 11:27:00 MainScript: > NotificationTime=02:30 Garbagetype=reloaddata
2021-04-27 11:27:00.498 Status: LUA: 11:27:00 MainScript: > NotificationTime=11:16 Garbagetype=gft
2021-04-27 11:27:00.498 Status: LUA: 11:27:00 MainScript: > NotificationTime=02:31 Garbagetype=dummy1
2021-04-27 11:27:00.498 Status: LUA: 11:27:00 MainScript: > NotificationTime=11:16 Garbagetype=pmd
2021-04-27 11:27:00.499 Status: LUA: 11:27:00 MainScript: > NotificationTime=11:16 Garbagetype=papier
2021-04-27 11:27:00.499 Status: LUA: 11:27:00 MainScript: #> Perform update because mydebug=true.
2021-04-27 11:27:00.499 Status: LUA: 11:27:00 MainScript: => Action starting, First check access to required files:
2021-04-27 11:27:00.499 Status: LUA: 11:27:00 MainScript: Run command:
2021-04-27 11:27:00.499 ls -l /var/tmp/garbagecal*m_opzet_api*:
2021-04-27 11:27:00.518 Status: LUA: -rw-r----- 1 root root 143229 Apr 12 02:30 /var/tmp/garbagecalendar_m_opzet_api.data
2021-04-27 11:27:00.518 -rw-r----- 1 root root 1772 Apr 27 11:27 /var/tmp/garbagecalendar_run_m_opzet_api.log
2021-04-27 11:27:00.518 -rw-r----- 1 root root 3874 Apr 27 11:26 /var/tmp/garbagecalendar_run_update_m_opzet_api.log
2021-04-27 11:27:00.518 -rw-r----- 1 root root 4030 Apr 27 11:27 /var/tmp/garbagecalendar_web_m_opzet_api.log
2021-04-27 11:27:00.519 Status: LUA: 11:27:00 MainScript: Access OK: /var/tmp/garbagecalendar_m_opzet_api.data
2021-04-27 11:27:00.519 Status: LUA: 11:27:00 MainScript: Access OK: /var/tmp/garbagecalendar_run_m_opzet_api.log
2021-04-27 11:27:00.519 Status: LUA: 11:27:00 MainScript: Access OK: /var/tmp/garbagecalendar_web_m_opzet_api.log
2021-04-27 11:27:00.519 Status: LUA: 11:27:00 MainScript: => Start update for text device:
2021-04-27 11:27:00.525 Status: LUA: 11:27:00 MainScript: 22 data records loaded, updated at from datafile:/var/tmp/garbagecalendar_m_opzet_api.data
2021-04-27 11:27:00.525 Status: LUA: 11:27:00 MainScript: -> Start looping through data to find the first 3 events to show:
2021-04-27 11:27:00.525 Status: LUA: ==> GarbageDate:2021-4-29 GarbageType:plastic, blik & drinkpakken; Calc Days Diff=2; *** Notify skipped because there is no record in garbagetype_cfg[]!
2021-04-27 11:27:00.526 Status: LUA: ==> GarbageDate:2021-5-7 GarbageType:papier en karton; Calc Days Diff=10; *** Notify skipped because there is no record in garbagetype_cfg[]!
2021-04-27 11:27:00.526 Status: LUA: 11:27:00 MainScript: -< End data loop
2021-04-27 11:27:00.526 Status: LUA: 11:27:00 MainScript: #!# Warning: These records are missing in your garbagecalendarconfig.lua file, so no notifications will be send!
2021-04-27 11:27:00.526 Status: LUA: 11:27:00 MainScript: #!# -- start -- Add these records into the garbagetype_cfg table and adapt the schedule and text info to your needs :
2021-04-27 11:27:00.526 Status: LUA: ["restafval"] ={hour=19,min=02,daysbefore=1,reminder=0,text="restafval"},
2021-04-27 11:27:00.526 ["gft & etensresten"] ={hour=19,min=02,daysbefore=1,reminder=0,text="gft & etensresten"},
2021-04-27 11:27:00.526 ["plastic, blik & drinkpakken"] ={hour=19,min=02,daysbefore=1,reminder=0,text="plastic, blik & drinkpakken"},
2021-04-27 11:27:00.526 ["papier en karton"] ={hour=19,min=02,daysbefore=1,reminder=0,text="papier en karton"},
2021-04-27 11:27:00.526
2021-04-27 11:27:00.527 Status: LUA: 11:27:00 MainScript: #!# -- end ----------------------------
2021-04-27 11:27:00.527 Status: LUA: 11:27:00 MainScript: ==> found schedule:plastic, blik & drinkpakken: 29-4-21 ; papier en karton: 7-5-21 ;
2021-04-27 11:27:00.527 Status: LUA: 11:27:00 MainScript: No updated text for TxtDevice.
2021-04-27 11:27:00.527 Status: LUA: 11:27:00 MainScript: ==< End garbagecalendar script v20210330-1836
2021-04-27 11:27:00.537 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_time_garbagecalendar.lua
jvdz wrote: ↑Thursday 22 April 2021 13:17 I have pushed an update for m_opzet_api to Github which fixes the new API data format for this module.
gft & etensresten: woe 28 apr ; plastic, blik & drinkpakken: don 29 apr ; papier en karton: vri 7 mei ;
I am running version ver = '20210421-2000' of m_opzet_api.lua. That versionumber is also found in the debug info.jvdz wrote: ↑Tuesday 27 April 2021 11:41jvdz wrote: ↑Thursday 22 April 2021 13:17 I have pushed an update for m_opzet_api to Github which fixes the new API data format for this module.
You aren't running that version yet.
Jos
edit: This is what I get:gft & etensresten: woe 28 apr ; plastic, blik & drinkpakken: don 29 apr ; papier en karton: vri 7 mei ;
Code: Select all
17:07:00 MainScript: ### Start garbagecalendar script v20210330-1836 Tue Apr 27 17:07:00 2021
17:07:00 MainScript: ---> Debuging dataload each cycle in the foreground because "testdataload=true" in garbagecalendarconfig.lua
17:07:00 MainScript: ---> please change it back to "testdataload=false" when done testing to avoid growing a big domoticz log and slowing down the event system.
17:07:00 MainScript: ---> Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
17:07:00 MainScript: ---> please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
17:07:00 MainScript: domoticzjsonpath: /home/pi/domoticz/scripts/lua/
17:07:00 MainScript: datafilepath: /var/tmp/
17:07:00 MainScript: scriptpath: /home/pi/domoticz/scripts/lua/
17:07:00 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
17:07:00 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua (v20210330-1836)
17:07:00 MainScript: => Start new foreground WebUpdate for module m_opzet_api
17:07:00 MainScript: =< End WebUpdate.
17:07:00 MainScript: => Start checking garbagetype_cfg table whether an action is needed:
17:07:00 MainScript: > NotificationTime=02:30 Garbagetype=reloaddata
17:07:00 MainScript: > NotificationTime=17:04 Garbagetype=papier
17:07:00 MainScript: > NotificationTime=02:31 Garbagetype=dummy1
17:07:00 MainScript: > NotificationTime=17:04 Garbagetype=pmd
17:07:00 MainScript: > NotificationTime=17:04 Garbagetype=gft
17:07:00 MainScript: #> Perform update because mydebug=true.
17:07:00 MainScript: => Action starting, First check access to required files:
17:07:00 MainScript: Run command:
ls -l /var/tmp/garbagecal*m_opzet_api*:
-rw-r----- 1 root root 1772 Apr 27 17:07 /var/tmp/garbagecalendar_run_m_opzet_api.log
-rw-r----- 1 root root 3135 Apr 27 17:06 /var/tmp/garbagecalendar_run_update_m_opzet_api.log
-rw-r----- 1 root root 3951 Apr 27 17:07 /var/tmp/garbagecalendar_web_m_opzet_api.log
17:07:00 MainScript: File doesn't exists: /var/tmp/garbagecalendar_m_opzet_api.data
17:07:00 MainScript: Access OK: /var/tmp/garbagecalendar_run_m_opzet_api.log
17:07:00 MainScript: Access OK: /var/tmp/garbagecalendar_web_m_opzet_api.log
17:07:00 MainScript: => Start update for text device:
17:07:00 MainScript: ### Warning: Datafile not found:/var/tmp/garbagecalendar_m_opzet_api.data . Start webupdate now.
17:07:00 MainScript: => Start new foreground WebUpdate for module m_opzet_api
17:07:00 MainScript: =< End WebUpdate.
17:07:00 MainScript: Unable to load the data. please check your setup and runlogfile :/var/tmp/garbagecalendar_run_m_opzet_api.log
17:07:00 MainScript: ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_opzet_api.data
17:07:00 MainScript: ### 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
17:07:00 MainScript: -< End data loop
17:07:00 MainScript: ==> found schedule:
17:07:00 MainScript: Update device from:
0
replace with:
Code: Select all
17:09:00 _runmodule: #2 scriptpath /home/pi/domoticz/scripts/lua/
17:09:00 _runmodule: --> Start -- foreground _runmodule.lua (v20210330-1836) for garbage module m_opzet_api
17:09:00 m_opzet_api: #### Tue Apr 27 17:09:00 2021 ### Start garbagecalendar module m_opzet_api (v20210421-2000)
17:09:00 m_opzet_api: Loaded JSON.lua.
17:09:00 m_opzet_api: !!! perform background update to /var/tmp/garbagecalendar_m_opzet_api.data for Zipcode 1486MK - 45 (optional) Hostname:inzamelkalender.stadswerk072.nl
17:09:00 m_opzet_api: ---- web update ----------------------------------------------------------------------------
17:09:00 m_opzet_api: sQuery=curl -k "https://inzamelkalender.stadswerk072.nl/rest/adressen/1486MK-45" 2>/var/tmp/garbagecalendar_web_err_m_opzet_api.log
17:09:00 m_opzet_api: ---- web data ----------------------------------------------------------------------------
17:09:00 m_opzet_api: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://www.stadswerk072.nl/rest/adressen/1486MK-55">here</a>.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at inzamelkalender.stadswerk072.nl Port 443</address>
</body></html>
17:09:00 m_opzet_api: ---- web err ------------------------------------------------------------------------
17:09:00 m_opzet_api: Web_Err= % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M100 357 100 357 0 0 3305 0 --:--:-- --:--:-- --:--:-- 3305
17:09:00 m_opzet_api: ---- end web data ------------------------------------------------------------------------
17:09:00 _runmodule: !! Module m_opzet_api had hard error. check log:/var/tmp/garbagecalendar_web_m_opzet_api.log
/home/pi/domoticz/scripts/lua/JSON.lua:808: HTML passed to JSON:decode(): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://www.stadswerk072.nl/rest/adressen/1486MK-55">here</a>.</p>
<hr>
<address>Apache/2.4.29 (Ubuntu) Server at inzamelkalender.stadswerk072.nl Port 443</address>
</body></html>
stack traceback:
...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:10: in function 'errhandler'
[C]: in function 'assert'
/home/pi/domoticz/scripts/lua/JSON.lua:808: in method 'onDecodeOfHTMLError'
/home/pi/domoticz/scripts/lua/JSON.lua:1172: in method 'decode'
.../pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua:66: in function 'Perform_Update'
.../pi/domoticz/scripts/lua/garbagecalendar/m_opzet_api.lua:164: in main chunk
[C]: in function 'dofile'
...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:78: in function 'RunWebModule'
[C]: in function 'xpcall'
...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:96: in main chunk
[C]: in function 'dofile'
.../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:194: in function 'GetWebData'
.../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:351: in function 'Perform_Data_check'
.../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:620: in main chunk
17:09:00 _runmodule: /var/tmp/garbagecalendar_web_m_opzet_api.log
17:09:00 _runmodule:
%%%%% LUA Hardcrash log %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
17:09:00 _runmodule: nil
17:09:00 _runmodule: stack traceback:
...e/pi/domoticz/scripts/lua/garbagecalendar/_runmodule.lua:105: in main chunk
[C]: in function 'dofile'
.../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:194: in function 'GetWebData'
.../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:351: in function 'Perform_Data_check'
.../pi/domoticz/scripts/lua/script_time_garbagecalendar.lua:620: in main chunk
17:09:00 _runmodule: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
17:09:00 _runmodule: --< End module m_opzet_api.lua (v20210421-2000)
Code: Select all
17:13:00 MainScript: ### Start garbagecalendar script v20210330-1836 Tue Apr 27 17:13:00 2021
17:13:00 MainScript: ---> Debuging dataload each cycle in the foreground because "testdataload=true" in garbagecalendarconfig.lua
17:13:00 MainScript: ---> please change it back to "testdataload=false" when done testing to avoid growing a big domoticz log and slowing down the event system.
17:13:00 MainScript: ---> Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
17:13:00 MainScript: ---> please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
17:13:00 MainScript: domoticzjsonpath: /home/pi/domoticz/scripts/lua/
17:13:00 MainScript: datafilepath: /var/tmp/
17:13:00 MainScript: scriptpath: /home/pi/domoticz/scripts/lua/
17:13:00 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
17:13:00 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua (v20210330-1836)
17:13:00 MainScript: => Start new foreground WebUpdate for module m_opzet_api
17:13:00 MainScript: =< End WebUpdate.
17:13:00 MainScript: => Start checking garbagetype_cfg table whether an action is needed:
17:13:00 MainScript: > NotificationTime=17:04 Garbagetype=papier
17:13:00 MainScript: > NotificationTime=17:04 Garbagetype=pmd
17:13:00 MainScript: > NotificationTime=17:04 Garbagetype=gft
17:13:00 MainScript: > NotificationTime=02:31 Garbagetype=dummy1
17:13:00 MainScript: > NotificationTime=02:30 Garbagetype=reloaddata
17:13:00 MainScript: #> Perform update because mydebug=true.
17:13:00 MainScript: => Action starting, First check access to required files:
17:13:00 MainScript: Run command:
ls -l /var/tmp/garbagecal*m_opzet_api*:
-rw-r----- 1 root root 1772 Apr 27 17:13 /var/tmp/garbagecalendar_run_m_opzet_api.log
-rw-r----- 1 root root 3135 Apr 27 17:12 /var/tmp/garbagecalendar_run_update_m_opzet_api.log
-rw-r----- 1 root root 3951 Apr 27 17:13 /var/tmp/garbagecalendar_web_m_opzet_api.log
17:13:00 MainScript: File doesn't exists: /var/tmp/garbagecalendar_m_opzet_api.data
17:13:00 MainScript: Access OK: /var/tmp/garbagecalendar_run_m_opzet_api.log
17:13:00 MainScript: Access OK: /var/tmp/garbagecalendar_web_m_opzet_api.log
17:13:00 MainScript: => Start update for text device:
17:13:00 MainScript: ### Warning: Datafile not found:/var/tmp/garbagecalendar_m_opzet_api.data . Start webupdate now.
17:13:00 MainScript: => Start new foreground WebUpdate for module m_opzet_api
17:13:00 MainScript: =< End WebUpdate.
17:13:00 MainScript: Unable to load the data. please check your setup and runlogfile :/var/tmp/garbagecalendar_run_m_opzet_api.log
17:13:00 MainScript: ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_opzet_api.data
17:13:00 MainScript: ### 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
17:13:00 MainScript: -< End data loop
17:13:00 MainScript: ==> found schedule:
17:13:00 MainScript: Update device from:
0
replace with:
17:13:00 MainScript: ==< End garbagecalendar script v20210330-1836
Users browsing this forum: No registered users and 1 guest