Replies: 3 comments 2 replies
-
Exactly what it says: There is a file in directory "garbagecalendar/" called "garbagecalendarconfig_model.lua". Hope that clears it up. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Great, so the script does actually collect the data for your garbage collection:
2021-04-17 16:11:00.607 Status: LUA: 16:11:00 MainScript: ==> found schedule:restafval: woe 21 apr ; gft: vri 23 apr ; papier en karton: woe 28 apr ;
… but I Guess you missed the very first step from the Wiki <https://github.com/jvanderzande/GarbageCalendar/wiki/Setup#domoticz> . :) So did you actually create the Domoticz text device called “vuilnisbak”, as the script isn’t able to retrieve its current content?
. and the below warning is explained here and you simply need to follow the instructions in this warning:
2021-04-17 16:11:00.607 Status: LUA: 16:11:00 MainScript: #!# Warning: These records are missing in your garbagecalendarconfig.lua file, so no notifications will be send!
2021-04-17 16:11:00.607 Status: LUA: 16:11:00 MainScript: #!# -- start -- Add these records into the garbagetype_cfg table and adapt the schedule and text info to your needs :
2021-04-17 16:11:00.607 Status: LUA: ["restafval"] ={hour=19,min=02,daysbefore=1,reminder=0,text="restafval"},
2021-04-17 16:11:00.607 ["papier en karton"] ={hour=19,min=02,daysbefore=1,reminder=0,text="papier en karton"},
2021-04-17 16:11:00.607
2021-04-17 16:11:00.607 Status: LUA: 16:11:00 MainScript: #!# -- end ----------------------------
Cheers,
Jos
Ps. You can also communicate directly to my Github Email address so this doesn’t appear in the public space.
Van: smausje ***@***.***>
Verzonden: zaterdag 17 april 2021 16:14
Aan: jvanderzande/GarbageCalendar ***@***.***>
CC: Jos ***@***.***>; Comment ***@***.***>
Onderwerp: Re: [jvanderzande/GarbageCalendar] setup carbage (#20)
Thanks for the info,
but now i get this error
2021-04-17 16:10:00.605 Error: LUA: 16:10:00 MainScript: ### Error: Couldn't get the current data from Domoticz text device vuilnisbak
2021-04-17 16:11:00.339 Status: LUA: 16:11:00 MainScript: ### Start garbagecalendar script v20210330-1836 Sat Apr 17 16:11:00 2021
2021-04-17 16:11:00.339 Status: LUA: 16:11:00 MainScript: ---> Debuging dataload each cycle in the foreground because "testdataload=true" in garbagecalendarconfig.lua
2021-04-17 16:11:00.339 Status: LUA: 16:11: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-17 16:11:00.339 Status: LUA: 16:11:00 MainScript: ---> Debuging with extra messages because "mydebug=true" in garbagecalendarconfig.lua
2021-04-17 16:11:00.339 Status: LUA: 16:11:00 MainScript: ---> please change it back to "mydebug=false" when done testing to avoid growing a big domoticz log.
2021-04-17 16:11:00.339 Status: LUA: 16:11:00 MainScript: domoticzjsonpath: /home/pi/domoticz/scripts/lua/
2021-04-17 16:11:00.339 Status: LUA: 16:11:00 MainScript: datafilepath: /var/tmp/
2021-04-17 16:11:00.340 Status: LUA: 16:11:00 MainScript: scriptpath: /home/pi/domoticz/scripts/lua/
2021-04-17 16:11:00.340 Status: LUA: 16:11:00 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/garbagecalendarconfig.lua.
2021-04-17 16:11:00.342 Status: LUA: 16:11:00 MainScript: Loaded /home/pi/domoticz/scripts/lua/garbagecalendar/generalfuncs.lua (v20210330-1836)
2021-04-17 16:11:00.342 Status: LUA: 16:11:00 MainScript: => Start new foreground WebUpdate for module m_opzet
2021-04-17 16:11:00.343 Status: LUA: 16:11:00 _runmodule: #2 <#2> scriptpath /home/pi/domoticz/scripts/lua/
2021-04-17 16:11:00.343 Status: LUA: 16:11:00 _runmodule: --> Start -- foreground _runmodule.lua (v20210330-1836) for garbage module m_opzet
2021-04-17 16:11:00.587 Status: LUA: 16:11:00 _runmodule: - Module m_opzet done. Saved 3 records to data file /var/tmp/garbagecalendar_m_opzet.data. Look at /var/tmp/garbagecalendar_web_m_opzet.log for process details.
2021-04-17 16:11:00.588 Status: LUA: 16:11:00 MainScript: - Module m_opzet done. Saved 3 records to data file /var/tmp/garbagecalendar_m_opzet.data. Look at /var/tmp/garbagecalendar_web_m_opzet.log for process details.
2021-04-17 16:11:00.588 Status: LUA: 16:11:00 _runmodule: --< End module m_opzet.lua (v20210312-1700)
2021-04-17 16:11:00.588 Status: LUA: 16:11:00 MainScript: =< End WebUpdate.
2021-04-17 16:11:00.588 Status: LUA: 16:11:00 MainScript: => Start checking garbagetype_cfg table whether an action is needed:
2021-04-17 16:11:00.588 Status: LUA: 16:11:00 MainScript: > NotificationTime=19:22 Garbagetype=gft
2021-04-17 16:11:00.588 Status: LUA: 16:11:00 MainScript: > NotificationTime=19:22 Garbagetype=papier
2021-04-17 16:11:00.588 Status: LUA: 16:11:00 MainScript: > NotificationTime=19:22 Garbagetype=pmd
2021-04-17 16:11:00.588 Status: LUA: 16:11:00 MainScript: > NotificationTime=02:30 Garbagetype=reloaddata
2021-04-17 16:11:00.588 Status: LUA: 16:11:00 MainScript: > NotificationTime=02:31 Garbagetype=dummy1
2021-04-17 16:11:00.588 Status: LUA: 16:11:00 MainScript: #> Perform update because mydebug=true.
2021-04-17 16:11:00.589 Status: LUA: 16:11:00 MainScript: => Action starting, First check access to required files:
2021-04-17 16:11:00.589 Status: LUA: 16:11:00 MainScript: Run command:
2021-04-17 16:11:00.589 ls -l /var/tmp/garbagecalm_opzet:
2021-04-17 16:11:00.604 Status: LUA: -rw-r----- 1 root root 357 apr 17 16:11 /var/tmp/garbagecalendar_m_opzet.data
2021-04-17 16:11:00.604 -rw-r----- 1 root root 1948 apr 17 16:11 /var/tmp/garbagecalendar_run_m_opzet.log
2021-04-17 16:11:00.604 -rw-r----- 1 root root 3969 apr 17 16:10 /var/tmp/garbagecalendar_run_update_m_opzet.log
2021-04-17 16:11:00.604 -rw-r----- 1 root root 21528 apr 17 16:11 /var/tmp/garbagecalendar_web_m_opzet.log
2021-04-17 16:11:00.605 Status: LUA: 16:11:00 MainScript: Access OK: /var/tmp/garbagecalendar_m_opzet.data
2021-04-17 16:11:00.605 Status: LUA: 16:11:00 MainScript: Access OK: /var/tmp/garbagecalendar_run_m_opzet.log
2021-04-17 16:11:00.605 Status: LUA: 16:11:00 MainScript: Access OK: /var/tmp/garbagecalendar_web_m_opzet.log
2021-04-17 16:11:00.605 Status: LUA: 16:11:00 MainScript: => Start update for text device:
2021-04-17 16:11:00.605 Status: LUA: 16:11:00 MainScript: 3 data records loaded, updated at Sat Apr 17 16:11:00 2021 from datafile:/var/tmp/garbagecalendar_m_opzet.data
2021-04-17 16:11:00.605 Status: LUA: 16:11:00 MainScript: -> Start looping through data to find the first 3 events to show:
2021-04-17 16:11:00.606 Status: LUA: ==> GarbageDate:2021-4-21 GarbageType:restafval; Calc Days Diff=4; *** Notify skipped because there is no record in garbagetype_cfg[]!
2021-04-17 16:11:00.606 Status: LUA: ==> GarbageDate:2021-4-23 GarbageType:gft; Notify: Active=on Time=19:22 DaysBefore=1 reminder=0 Calc Days Diff=6
2021-04-17 16:11:00.606 Status: LUA: ==> GarbageDate:2021-4-28 GarbageType:papier en karton; Calc Days Diff=11; *** Notify skipped because there is no record in garbagetype_cfg[]!
2021-04-17 16:11:00.606 Status: LUA: 16:11:00 MainScript: -< End data loop
2021-04-17 16:11:00.607 Status: LUA: 16:11:00 MainScript: #!# Warning: These records are missing in your garbagecalendarconfig.lua file, so no notifications will be send!
2021-04-17 16:11:00.607 Status: LUA: 16:11:00 MainScript: #!# -- start -- Add these records into the garbagetype_cfg table and adapt the schedule and text info to your needs :
2021-04-17 16:11:00.607 Status: LUA: ["restafval"] ={hour=19,min=02,daysbefore=1,reminder=0,text="restafval"},
2021-04-17 16:11:00.607 ["papier en karton"] ={hour=19,min=02,daysbefore=1,reminder=0,text="papier en karton"},
2021-04-17 16:11:00.607
2021-04-17 16:11:00.607 Status: LUA: 16:11:00 MainScript: #!# -- end ----------------------------
2021-04-17 16:11:00.607 Status: LUA: 16:11:00 MainScript: ==> found schedule:restafval: woe 21 apr ; gft: vri 23 apr ; papier en karton: woe 28 apr ;
2021-04-17 16:11:00.608 Status: LUA: 16:11:00 MainScript: ==< End garbagecalendar script v20210330-1836
2021-04-17 16:11:00.607 Error: LUA: 16:11:00 MainScript: ### Error: Couldn't get the current data from Domoticz text device vuilnisbak
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#20 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADJNVCAKPTW3XL23PMIS47LTJGJTJANCNFSM43C3VISQ> . <https://github.com/notifications/beacon/ADJNVCHQ4NFQ6YG63EYHZT3TJGJTJA5CNFSM43C3VIS2YY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAAEYMII.gif>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I would need the logfiles in case you want me to have a look at wat is happening.
Just Email them in a zip to my GitHub email address, which you can find in my profile.
Groet,
Jos
Van: smausje ***@***.***>
Verzonden: zaterdag 17 april 2021 22:58
Aan: jvanderzande/GarbageCalendar ***@***.***>
CC: Jos ***@***.***>; Comment ***@***.***>
Onderwerp: Re: [jvanderzande/GarbageCalendar] setup carbage (#20)
Oke
On my raspberry its working perfect, but on my synology docker it wont work.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#20 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADJNVCELWBI23DIRNTJ4PTTTJHY5HANCNFSM43C3VISQ> . <https://github.com/notifications/beacon/ADJNVCE2NFNLHIVMA63RDWTTJHY5HA5CNFSM43C3VIS2YY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAAEYSSQ.gif>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Go into directory "garbagecalendar/" and copy file "garbagecalendarconfig_model.lua" to "garbagecalendarconfig.lua"
What do you mean by this?
Beta Was this translation helpful? Give feedback.
All reactions