Page 15 of 24
Re: GarbageCalendar (new version) lua scripts
Posted: Sunday 14 March 2021 14:25
by Thuis
Almost correct, i changed the text values in the garbageconfig but only 2 are shown correct.
- Spoiler: show
- garbagetype_cfg = {
-- Add any missing records below this line
['gray'] = {hour = 18, min = 00, daysbefore = 1, reminder = 0, text = 'groene bak'}, --was pmd
['green'] = {hour = 18, min = 00, daysbefore = 1, reminder = 0, text = 'bruine bak'}, --was gft
['paper'] = {hour = 18, min = 00, daysbefore = 1, reminder = 0, text = 'blauwe bak'}, --was papier
Any thoughts, i will also look at the wiki link to try and figure out why gray is not being "groene bak".
Re: GarbageCalendar (new version) lua scripts
Posted: Sunday 14 March 2021 14:29
by jvdz
mmm typo and computers don't think, just execute!
...so guess "gray" in the table should be changed to "grey".

Re: GarbageCalendar (new version) lua scripts
Posted: Sunday 14 March 2021 14:36
by Thuis
LOL typo on the website haha. Good thing you are so "uplettend" i read over it ... Its perfect now, thanks again
Gray and grey are the same, but gray is the US style of grijs and grey is the UK style of grijs. pffff
Re: GarbageCalendar (new version) lua scripts
Posted: Sunday 04 April 2021 16:28
by arnaudarduino
Hello
I have update my pi now is script mijnafvalwijzer-master not working anymore.
Downloaded your newest script. GarbageCalendar
https://github.com/jvanderzande/GarbageCalendar
Can't get it working .
I did change the debug into true.
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
17: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)
Other module
18:26:00 MainScript: ### Start garbagecalendar script v20210330-1836 Sun Apr 4 18:26:00 2021
18:26:00 MainScript: domoticzjsonpath: /home/pi/domoticz/scripts/lua/
18:26:00 MainScript: datafilepath: /var/tmp/
18:26:00 MainScript: scriptpath: /home/pi/domoticz/scripts/lua/
18:26:00 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
18:26:00 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua (v20210330-1836)
18:26:00 MainScript: => Start checking garbagetype_cfg table whether an action is needed:
18:26:00 MainScript: > NotificationTime=19:22 Garbagetype=pmd
18:26:00 MainScript: > NotificationTime=19:22 Garbagetype=gft
18:26:00 MainScript: > NotificationTime=02:30 Garbagetype=reloaddata
18:26:00 MainScript: > NotificationTime=02:31 Garbagetype=dummy1
18:26:00 MainScript: > NotificationTime=19:22 Garbagetype=papier
18:26:00 MainScript: Scheduled time(s) not reached yet, so nothing to do!
18:26:00 MainScript: ==< End garbagecalendar script v20210330-1836
HVC Flevoland
Re: GarbageCalendar (new version) lua scripts
Posted: Sunday 04 April 2021 16:47
by HansieNL
Did you download the right script? The correct link is:
https://github.com/jvanderzande/GarbageCalendar
Re: GarbageCalendar (new version) lua scripts
Posted: Sunday 04 April 2021 19:48
by jvdz
HansieNL wrote: ↑Sunday 04 April 2021 16:47
Did you download the right script?
Looks fine to me.
arnaudarduino wrote: ↑Sunday 04 April 2021 16:28
17: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
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: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$
....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.
I need your zipcode/housenr when you want me to test.
Jos
Re: GarbageCalendar (new version) lua scripts
Posted: Sunday 04 April 2021 21:24
by arnaudarduino
Txs
That was the websitemodule = "m_opzet_api" not without api
Now it is working again.
Re: GarbageCalendar (new version) lua scripts
Posted: Thursday 15 April 2021 19:37
by smaus
Do domoticz run on my synology in docker, is it also possible to have the gabage calendar work here?
alvast bedankt
Re: GarbageCalendar (new version) lua scripts
Posted: Thursday 15 April 2021 19:53
by jvdz
It requires Curl ( and optionally external LUA), but I have no idea whether that is part of the Docker container build.
Jos
Re: GarbageCalendar (new version) lua scripts
Posted: Wednesday 21 April 2021 15:09
by rebuma
Dear ALL
Did anybody succeed to get data from huisvuilkalender.denhaag.nl.
I have entered the my details. and there is data stored in the data file but not loaded / displayed in text box..
Notice when editing the file vi says garbagecalendar_m_opzet_api.data => Incomplete last line [/b][/b]
# Garbage script log say
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:
####################
Excerpt from garbagecalendar_m_opzet_api.data
- Spoiler: show
Code: Select all
###########################################################
return {
-- Table: {1}
{
{2},
{3},
{4},
{5},
{6},
["Garbage_LastUpdate"]="Tue Apr 20 08:56:00 2021",
},
-- Table: {2}
{
["tags"]="",
["slug"]="",
["page_title"]="GFT",
["icon_data"]="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE1LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGFhZ18xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9Ijg1LjA0cHgiIGhlaWdodD0iODUuMDRweCIgdmlld0JveD0iMCAwIDg1LjA0IDg1LjA0IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA4NS4wNCA4NS4wNDsiIHhtbDpzcGFjZT0icHJlc2VydmUiDQoJPg0KPHBhdGggc3R5bGU9ImZpbGw6I0ZGRkZGRjtzdHJva2U6IzIzMUYyNDtzdHJva2Utd2lkdGg6MS40MTczOyIgZD0iTTYzLjQ3Niw1NS44NjdjLTEuNjI2LTAuMjUyLTcuMTc4LTEuNTI3LTkuOTY1LTcuNDI2DQoJYy0zLjI4OC02Ljk1Ni0wLjY2NS0xMi4yNzMtMC42NjUtMTIuMjczcy02Ljc2Mi0wLjg2LTkuNjMtNi45M2MtMi4yOTktNC44NjctMS45ODItOC44NjYtMS43NjYtMTAuMjY1DQoJYzEuNzI4LDAuMDI4LDMuMDQ0LDAuNDMsMy4wNDQsMC40M3MxLjE2Ni0zLjI0MSwzLjQyMi02LjIzNWMtNC44MDQtMS45My0xMi4yNDMtMC45OTEtMjAuNDE0LDMuNzI3DQoJYy04LjE2OSw0LjcxNi0xMi40MjEsMTAuMTQ3LTEzLjQyMSwxNi4wMDZjMi42NjMsMC4zODUsNi45NTQsMS44NjMsNi45NTQsMS44NjNzMC41NzctMi4wNjQsMi4yMzYtMy44OTNsMC4xMDQsMC4zNQ0KCWMyLjI1LTAuMjYyLDUuOTY4LDEuNzE0LDguMTM3LDYuNDE4YzMuMjIyLDYuOTg1LDAuNTQ0LDEyLjI4LDAuNTQ0LDEyLjI4czcuNTA3LDIuMTg2LDEwLjMxOCw4LjI3OQ0KCWMyLjA3Niw0LjUwNCwxLjkzOCw4LjI1MSwxLjcyNSw5LjkwNGMtMS42MTEtMC4wNTUtMi44MTQtMC40MjMtMi44MTQtMC40MjNjLTAuMTE2LDAuMzU1LTIuMDUyLDMuNjA0LTMuMzUxLDUuMTUxDQoJYzQuMTM2LDMuMTkyLDEyLjE3LDIuMDc2LDIwLjM0LTIuNjQzYzguMTcxLTQuNzE4LDEyLjQ2My0xMS44ODgsMTIuNDM5LTE1Ljk4NGMtMy41ODQsMC4xNzYtNi40ODMtMC42MjEtNi40ODMtMC42MjENCglTNjQuMDY2LDU0LjYxMyw2My40NzYsNTUuODY3eiIvPg0KPHBhdGggc3R5bGU9ImZpbGw6I0ExQzQwMDtzdHJva2U6IzIzMUYyNDtzdHJva2Utd2lkdGg6MS40MTczOyIgZD0iTTU4LjI3Miw3MC4xODljOC4xNzEtNC43MTgsMTIuNDYzLTExLjg4OCwxMi40MzktMTUuOTg0DQoJYy0zLjU4NSwwLjE3Ni02LjQ4My0wLjYyMS02LjQ4My0wLjYyMXMtMC41NzcsMy43NTItMy42NDgsNS42NzZjLTMuMDc1LDEuOTIyLTcuMzc1LDIuMDY0LTcuMzc1LDIuMDY0cy0xLjUxOCw0LjE4OS00LjcyMSw1Ljg5MQ0KCWMtMy4yMDIsMS42OTctNy4yMDEsMC40NjYtNy4yMDEsMC40NjZjLTAuMTE2LDAuMzU1LTIuMDUyLDMuNjA0LTMuMzUxLDUuMTUxQzQyLjA2OCw3Ni4wMjQsNTAuMTAzLDc0LjkwOCw1OC4yNzIsNzAuMTg5eiIvPg0KPHBhdGggc3R5bGU9ImZpbGw6I0ExQzQwMDtzdHJva2U6IzIzMUYyNDtzdHJva2Utd2lkdGg6MS40MTczOyIgZD0iTTI3LjUwMiwxNi44OTVjOC4xNy00LjcxOCwxNS42MS01LjY1NywyMC40MTQtMy43MjcNCgljLTIuMjU3LDIuOTk0LTMuNDIyLDYuMjM1LTMuNDIyLDYuMjM1cy00LTEuMjMzLTcuMjAzLDAuNDY3Yy0zLjIwMywxLjctNS4zMTksNy42OTgtNS4zMTksNy42OThzLTMuODIyLTAuMTQ5LTYuODk2LDEuNzc0DQoJYy0zLjA3MSwxLjkyMy00LjA0MSw1LjQyMi00LjA0MSw1LjQyMnMtNC4yOS0xLjQ4LTYuOTU0LTEuODYzQzE1LjA4MiwyNy4wNDIsMTkuMzMzLDIxLjYxMSwyNy41MDIsMTYuODk1eiIvPg0KPHBhdGggc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzIzMUYyNDtzdHJva2Utd2lkdGg6MS40MTczOyIgZD0iTTI5LjExLDIwLjczOGMtMy43NTMtNi41MDEtNy45OS05LjQzNi0xMS40ODItMTEuNjA0Ii8+DQo8cGF0aCBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMjMxRjI0O3N0cm9rZS13aWR0aDoxLjQxNzM7IiBkPSJNNDEuNTUyLDE4LjQzOGMwLDAtMS4yMDQsNC43MzIsMS42NjQsMTAuOA0KCWMyLjg2OCw2LjA3LDkuNjMsNi45Myw5LjYzLDYuOTNzLTIuNjIzLDUuMzE3LDAuNjY2LDEyLjI3M2MzLjI4NSw2Ljk1OCwxMC40MjQsNy40ODQsMTAuNDI0LDcuNDg0Ii8+DQo8cGF0aCBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojMjMxRjI0O3N0cm9rZS13aWR0aDoxLjQxNzM7IiBkPSJNNDMuOTM4LDY5LjAxNmMwLDAsMS4yNDYtNC43MjEtMS41NjUtMTAuODE2DQoJYy0yLjgxMS02LjA5NC0xMC4zMTgtOC4yNzktMTAuMzE4LTguMjc5czIuNjc4LTUuMjk1LTAuNTQ0LTEyLjI4Yy0yLjE2OC00LjcwNS01Ljg4Ny02LjY4LTguMTM3LTYuNDE4Ii8+DQo8L3N2Zz4NCg==",
["id"]="1",
["content"]="<p>GFT</p>",
["ophaaldatum"]="2021-04-20",
["icon"]="appel-gft",
["parent_id"]="0",
["title"]="GFT",
["menu_title"]="GFT",
- Spoiler: show
Code: Select all
2021-04-21 15:00:00.996 Status: LUA: 15:00:00 MainScript: ### Start garbagecalendar script v20210330-1836 Wed Apr 21 15:00:00 2021
2021-04-21 15:00:01.001 Status: LUA: 15:00:01 MainScript: ---> Debuging dataload each cycle in the foreground because "testdataload=true" in garbagecalendarconfig.lua
2021-04-21 15:00:01.012 Status: LUA: 15:00:01 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-21 15:00:01.013 Status: LUA: 15:00:01 MainScript: ---> Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2021-04-21 15:00:01.014 Status: LUA: 15:00:01 MainScript: ---> please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2021-04-21 15:00:01.015 Status: LUA: 15:00:01 MainScript: domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2021-04-21 15:00:01.016 Status: LUA: 15:00:01 MainScript: datafilepath: /var/tmp/
2021-04-21 15:00:01.017 Status: LUA: 15:00:01 MainScript: scriptpath: /home/pi/domoticz/scripts/lua/
2021-04-21 15:00:01.017 Status: LUA: 15:00:01 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2021-04-21 15:00:01.090 Status: LUA: 15:00:01 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua (v20210330-1836)
2021-04-21 15:00:01.095 Status: LUA: 15:00:01 MainScript: => Start new foreground WebUpdate for module m_opzet_api
2021-04-21 15:00:01.104 Status: LUA: 15:00:01 _runmodule: #2 scriptpath /home/pi/domoticz/scripts/lua/
2021-04-21 15:00:01.108 Status: LUA: 15:00:01 _runmodule: --> Start -- foreground _runmodule.lua (v20210330-1836) for garbage module m_opzet_api
2021-04-21 15:00:03.397 Status: LUA: 15:00:03 _runmodule: - Module m_opzet_api done. Saved 5 records to data file /var/tmp/garbagecalendar_m_opzet_api.data. Look at /var/tmp/garbagecalendar_web_m_opzet_api.log for process details.
2021-04-21 15:00:03.404 Status: LUA: 15:00:03 MainScript: - Module m_opzet_api done. Saved 5 records to data file /var/tmp/garbagecalendar_m_opzet_api.data. Look at /var/tmp/garbagecalendar_web_m_opzet_api.log for process details.
2021-04-21 15:00:03.406 Status: LUA: 15:00:03 _runmodule: --< End module m_opzet_api.lua (v20210312-1700)
2021-04-21 15:00:03.406 Status: LUA: 15:00:03 MainScript: =< End WebUpdate.
2021-04-21 15:00:03.407 Status: LUA: 15:00:03 MainScript: => Start checking garbagetype_cfg table whether an action is needed:
2021-04-21 15:00:03.408 Status: LUA: 15:00:03 MainScript: Pmd change to pmd
2021-04-21 15:00:03.412 Status: LUA: 15:00:03 MainScript: Gft change to gft
2021-04-21 15:00:03.413 Status: LUA: 15:00:03 MainScript: Papier change to papier
2021-04-21 15:00:03.414 Status: LUA: 15:00:03 MainScript: > NotificationTime=19:22 Garbagetype=pmd
2021-04-21 15:00:03.416 Status: LUA: 15:00:03 MainScript: > NotificationTime=02:31 Garbagetype=dummy1
2021-04-21 15:00:03.425 Status: LUA: 15:00:03 MainScript: > NotificationTime=02:30 Garbagetype=reloaddata
2021-04-21 15:00:03.426 Status: LUA: 15:00:03 MainScript: > NotificationTime=19:22 Garbagetype=papier
2021-04-21 15:00:03.443 Status: LUA: 15:00:03 MainScript: > NotificationTime=19:22 Garbagetype=Rest
2021-04-21 15:00:03.444 Status: LUA: 15:00:03 MainScript: > NotificationTime=19:22 Garbagetype=gft
2021-04-21 15:00:03.445 Status: LUA: 15:00:03 MainScript: #> Perform update because mydebug=true.
2021-04-21 15:00:03.446 Status: LUA: 15:00:03 MainScript: => Action starting, First check access to required files:
2021-04-21 15:00:03.464 Status: LUA: 15:00:03 MainScript: Run command:
2021-04-21 15:00:03.464 ls -l /var/tmp/garbagecal*m_opzet_api*:
2021-04-21 15:00:03.557 Status: LUA: -rw-r--r-- 1 pi pi 18984 Apr 21 15:00 /var/tmp/garbagecalendar_m_opzet_api.data
2021-04-21 15:00:03.557 -rw-r--r-- 1 pi pi 2157 Apr 21 15:00 /var/tmp/garbagecalendar_run_m_opzet_api.log
2021-04-21 15:00:03.557 -rw-r--r-- 1 pi pi 3482 Apr 21 14:59 /var/tmp/garbagecalendar_run_update_m_opzet_api.log
2021-04-21 15:00:03.557 -rw-r--r-- 1 pi pi 22845 Apr 21 15:00 /var/tmp/garbagecalendar_web_m_opzet_api.log
2021-04-21 15:00:03.566 Status: LUA: 15:00:03 MainScript: Access OK: /var/tmp/garbagecalendar_m_opzet_api.data
2021-04-21 15:00:03.567 Status: LUA: 15:00:03 MainScript: Access OK: /var/tmp/garbagecalendar_run_m_opzet_api.log
2021-04-21 15:00:03.575 Status: LUA: 15:00:03 MainScript: Access OK: /var/tmp/garbagecalendar_web_m_opzet_api.log
2021-04-21 15:00:03.576 Status: LUA: 15:00:03 MainScript: => Start update for text device:
2021-04-21 15:00:03.587 Status: LUA: 15:00:03 MainScript: 5 data records loaded, updated at Wed Apr 21 15:00:03 2021 from datafile:/var/tmp/garbagecalendar_m_opzet_api.data
2021-04-21 15:00:03.587 Status: LUA: 15:00:03 MainScript: -> Start looping through data to find the first 3 events to show:
2021-04-21 15:00:03.598 Status: LUA: 15:00:03 MainScript: ### Warning: No valid records found in the datafile: /var/tmp/garbagecalendar_m_opzet_api.data
2021-04-21 15:00:03.599 Status: LUA: 15:00:03 MainScript: ### Please check the garbagecalendar log files for issues : /var/tmp/garbagecalendar_web_m_opzet_api.log and
Re: GarbageCalendar (new version) lua scripts
Posted: Wednesday 21 April 2021 17:11
by jvdz
Looks like the datafile is only filled with some "JSON respons data" which is obviously wrong .
Could you PM me your config info (Zipcode/Housenr etc) so I test to see what is happening and fix this?
Jos
Re: GarbageCalendar (new version) lua scripts
Posted: Wednesday 21 April 2021 17:37
by rebuma
Hi Jos
LOL: Ouch PM: is not yet enabled
We are sorry, but you are not authorised to use this feature. You may have just registered here and may need to participate more in discussions to be able to use this feature.
Thanks for your quick help..
https://huisvuilkalender.denhaag.nl/res ... n/2498AA-2
You can use PC 2498AA-2
it's not my address but the data is the same.
I hope this reply helps my rating.
added the data file
Cheers
Rene
Re: GarbageCalendar (new version) lua scripts
Posted: Wednesday 21 April 2021 19:13
by jvdz
It looks like they have totally changed the data in their API again so I need to have a look at that as none of the m_opzet_api work anymore.
I see that the m_opzet module also is not working for denhaag.
Jos
Re: GarbageCalendar (new version) lua scripts
Posted: Wednesday 21 April 2021 20:07
by jvdz
@Rene,
Could you Email me on my Github email address so I can reply with an Email with an test version of the modified m_opzet.api.lua attached, so you can try it for me?
Cheers,
Jos
Re: GarbageCalendar (new version) lua scripts
Posted: Thursday 22 April 2021 11:11
by rebuma
done
Re: GarbageCalendar (new version) lua scripts
Posted: Thursday 22 April 2021 13:17
by jvdz
Thanks for testing!
I have pushed an
update for m_opzet_api to Github which fixes the new API data format for this module.
Jos
Re: GarbageCalendar (new version) lua scripts
Posted: Thursday 22 April 2021 14:16
by rebuma
Thanks Jos,
For quickly fixing m_opzet_api.lua to match the changes in huisvuilkalender.denhaag.nl
It's working like charm.
regards
Rene
Re: GarbageCalendar (new version) lua scripts
Posted: Tuesday 27 April 2021 11:29
by mikeoo
I see that now info is grab anymore from m_opzet_api.
I just update to the last version becasue of update of m_opzet_api
When i check
https://www.stadswerk072.nl/wanneer (Postcode: 1486 MK number 55 for testing) i can see that
GFT is collected
28-4-2021.
When i run the script it is only getting the info from 29-4-2021 (
Plastic) and 7-5-2021 (
Papier)
So domoticz only show 2 lines and missing the first line.
It was working fine until last week i think.
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
Re: GarbageCalendar (new version) lua scripts
Posted: Tuesday 27 April 2021 11:41
by jvdz
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 ;
Re: GarbageCalendar (new version) lua scripts
Posted: Tuesday 27 April 2021 16:53
by mikeoo
jvdz wrote: ↑Tuesday 27 April 2021 11:41
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 ;
I am running version ver = '20210421-2000' of m_opzet_api.lua. That versionumber is also found in the debug info.
Download all files including the fix file 5 day ago of m_opzet_api.lua and replaced them all with the new ones.
Reboot Domoticz just te be sure but still nog getting the GFT info
So what can i do more
Try to change MinProtocol = TLSv1.0 but still same error.
I it missing garbagecalendar_m_opzet_api.data in /var/tmp and i removed all files there so the be sure it is using new files.
garbagecalendar_run_update_m_opzet_api.log
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:
garbagecalendar_web_m_opzet_api.log
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)
garbagecalendar_run_m_opzet_api.log
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