GarbageCalendar (new version) lua scripts
Moderator: leecollings
-
- Posts: 497
- Joined: Friday 22 May 2015 12:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.11083
- Location: Asten NB Nederland
- Contact:
Re: GarbageCalendar (new version) lua scripts
thanx for the help again!!
Your mind is like a parachute,
It only works when it is opened!
RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
It only works when it is opened!
RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
- Thuis
- Posts: 271
- Joined: Tuesday 11 September 2018 11:36
- Target OS: Linux
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
Trying to make it work, but there are so many things i get this in log:
The permissions on the directory /garbagecalendar and /temp are 760.
Both log files are written to the temp dir, but there is no data. What am i doing wrong ?
- Spoiler: show
The permissions on the directory /garbagecalendar and /temp are 760.
Both log files are written to the temp dir, but there is no data. What am i doing wrong ?
I Love Domoticz ! And the community around it :-)
- jvdz
- Posts: 2328
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
The logfile is large but now contains every step that happens which makes debugging much easier.Thuis wrote: ↑Friday 14 February 2020 11:56 Trying to make it work, but there are so many things i get this in log:
I get the error in the other log file--> sh: 1: lua: not found
The permissions on the directory /garbagecalendar and /temp are 760.
Both log files are written to the temp dir, but there is no data. What am i doing wrong ?

Are you sure the setting for the data file is correct:
Code: Select all
datafilepath = '/home/onshuis/Domotica/domoticz/scripts/lua/garbagecalendar/temp/' -- specify the directory where the afval.data & afval.log will be stored
If that is correct I need to see the file "garbagecalendar_web_m_goeree-overflakkee.log" as that contains the LOG of the module that gets the data from the website.
PS: I get this for your info:
Code: Select all
@GarbageCalendar(m_goeree-overflakkee): ==> found schedule:Groente-, fruit- en tuinafval: Maa 17 feb ; Restafval: Maa 24 feb ; Groente-, fruit- en tuinafval: Maa 2 maa ;
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
- Thuis
- Posts: 271
- Joined: Tuesday 11 September 2018 11:36
- Target OS: Linux
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
yes the destination is correct : /home/onshuis/Domotica/domoticz/scripts/lua/garbagecalendar/temp/
in this destination i have only 2 log files, and no .data file.
the file "garbagecalendar_web_m_goeree-overflakkee.log contains : --> sh: 1: lua: not found
in this destination i have only 2 log files, and no .data file.
the file "garbagecalendar_web_m_goeree-overflakkee.log contains : --> sh: 1: lua: not found
- Spoiler: show
Last edited by Thuis on Friday 14 February 2020 12:40, edited 1 time in total.
I Love Domoticz ! And the community around it :-)
- jvdz
- Posts: 2328
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
That would mean that lua isn't in the standard search path?
What happens when you go to the command prompt and just run: lua -v
EDIT: Also try these commands when the first one doesn't work:
lua52 -v
lua53 -v
Jos
Last edited by jvdz on Friday 14 February 2020 12:42, edited 1 time in total.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
- Thuis
- Posts: 271
- Joined: Tuesday 11 September 2018 11:36
- Target OS: Linux
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
onshuis@onshuis-pc:~$ lua -v
Command 'lua' not found, but can be installed with:
sudo apt install lua5.1
sudo apt install lua5.2
sudo apt install lua50
sudo apt install tarantool
Command 'lua' not found, but can be installed with:
sudo apt install lua5.1
sudo apt install lua5.2
sudo apt install lua50
sudo apt install tarantool
I Love Domoticz ! And the community around it :-)
- Thuis
- Posts: 271
- Joined: Tuesday 11 September 2018 11:36
- Target OS: Linux
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
So i have to install lua ? what version 5.2 ?
I Love Domoticz ! And the community around it :-)
- jvdz
- Posts: 2328
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
ah, so you haven't lua installed at all yet and just use lua within domoticz.
Please install lua5.2 which should fix the issue.
Jos
Please install lua5.2 which should fix the issue.
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
- Thuis
- Posts: 271
- Joined: Tuesday 11 September 2018 11:36
- Target OS: Linux
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
onshuis@onshuis-pc:~$ lua -v
Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio
Let's see again . . . Working !!! Now try to find out why the paper blue bin is not between the dates. It is brown, green, brown instead of brown, green, blue. Perhaps some setting somewhere ? But hey the rest is working perfectly
Thanks !!!
Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio
Let's see again . . . Working !!! Now try to find out why the paper blue bin is not between the dates. It is brown, green, brown instead of brown, green, blue. Perhaps some setting somewhere ? But hey the rest is working perfectly

I Love Domoticz ! And the community around it :-)
- jvdz
- Posts: 2328
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
Great!
Have a look at the Setup page in the wiki: https://github.com/jvanderzande/Garbage ... wiki/Setup
and read about this setting:ShowSinglePerType and see if that is what you are looking for.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
- Thuis
- Posts: 271
- Joined: Tuesday 11 September 2018 11:36
- Target OS: Linux
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
Left the old script, ........................................................... right the new :

Where is Paper and Carton ?
I have change the single type thing from false to true and back, but i see no difference on the text switch, it's the same. I even restarted domoticz after chnging from false to true and back.
And what is the maximum x events to show in the TEXT Sensor?, i put it on 5, but it still displays 3.

Where is Paper and Carton ?
I have change the single type thing from false to true and back, but i see no difference on the text switch, it's the same. I even restarted domoticz after chnging from false to true and back.
And what is the maximum x events to show in the TEXT Sensor?, i put it on 5, but it still displays 3.
I Love Domoticz ! And the community around it :-)
- Thuis
- Posts: 271
- Joined: Tuesday 11 September 2018 11:36
- Target OS: Linux
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
O wait, the sensor says, last seen on 12:48, so i think i have to wait ? until it shows the new layout ?
I Love Domoticz ! And the community around it :-)
- jvdz
- Posts: 2328
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
Set the "mydebug = true" to update it each minute till all is ok after which you set it back to "mydebug = false".
In normal operation, the text device is only updated at any of the given times in the table.
You want ShowSinglePerType=true when you want the same result as the "old" version.

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
- Thuis
- Posts: 271
- Joined: Tuesday 11 September 2018 11:36
- Target OS: Linux
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts

I Love Domoticz ! And the community around it :-)
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: GarbageCalendar (new version) lua scripts
Hello Jos,
works perfect for me. Just one question. The old garbage script is in the internal editor. Is it with the new scripts also possible?
works perfect for me. Just one question. The old garbage script is in the internal editor. Is it with the new scripts also possible?
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
- jvdz
- Posts: 2328
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
I don't know how that works and I am not using the internal editor at all since I like to have control over the scripts myself.

All it needs to be able to is to call the other 3 files currently located in the GabageCalendar directory:
- garbagecalendarconfig.lua
- m_????????.lua
- table_funcs.lua
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 247
- Joined: Sunday 30 March 2014 15:24
- Target OS: Linux
- Domoticz version: Beta
- Location: Waterland
- Contact:
Re: GarbageCalendar (new version) lua scripts
Hello Jos,
Perhaps I ḿ trying it later on. For now it is working very good. Thanks.
Ronald
Perhaps I ḿ trying it later on. For now it is working very good. Thanks.
Ronald
Rpi, RFXcom, klikaan klikuit switch,thermosmart, z-wave, espeasy, smartevse
-
- Posts: 369
- Joined: Tuesday 31 March 2015 22:06
- Target OS: Linux
- Domoticz version: 2024.3
- Location: east netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
We are getting an notification trough the mail today for the garbage tommorow:
Email sent with text: @DAG@ aan de beurt: De @AFVALTEXT@!
This is not good?
*Edit:
Replaced the dutch @dag@ and @afvaltext@ into english ones, working now.
Email sent with text: @DAG@ aan de beurt: De @AFVALTEXT@!
This is not good?
*Edit:
Replaced the dutch @dag@ and @afvaltext@ into english ones, working now.
- jvdz
- Posts: 2328
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
Barry, not sure I understand what you mean here.
Could you let me know whether there is a error in the script that needs to be fixed or did you have an issue in your config?
Thanks
Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 369
- Joined: Tuesday 31 March 2015 22:06
- Target OS: Linux
- Domoticz version: 2024.3
- Location: east netherlands
- Contact:
Re: GarbageCalendar (new version) lua scripts
hi Jos,
Script was working, but the notification (email) not like it should be..

in my older config there was:
Code: Select all
--### Dutch example
notificationtitle = 'GarbageCalendar: @DAG@ de @AFVALTEXT@ aan de weg zetten!'
notificationtext = '@AFVALTEXT@ wordt @DAG@ opgehaald!'
notificationtoday = 'vandaag'
notificationtomorrow = 'morgen'
notificationlonger = 'over @DAYS@ dagen'
Code: Select all
--### Dutch example
notificationtitle = 'GarbageCalendar: @DAY@ de @GARBAGETEXT@ aan de weg zetten!'
notificationtext = '@GARBAGETEXT@ word @DAY@ opgehaald!'
notificationtoday = 'vandaag'
notificationtomorrow = 'morgen'
notificationlonger = 'in @DAYS@ dagen'
The english version works, dutch doesnt.
I don't know as well where i found this "afvaltext" as it seems not to be in this script?
Weird one, but its working now!

Who is online
Users browsing this forum: Bing [Bot] and 1 guest