Re: GarbageCalendar (new version) lua scripts
Posted: Monday 14 September 2020 21:31
Ok we gonna try!
Open source Home Automation System
https://forum.domoticz.com/
That will be a better solution! Now i had to change the paths in the config and create a dummy file (org m_mijnafvalwijzer.lua) where i commit out the 'web update' section.jvdz wrote: Wednesday 16 September 2020 9:33 What about when I write a generic module that wil take a CSV file as input that contains GarbageDate en GarbageType? This way the CSV file can contain the whole years data and the nightly "Web update" will then read it and convert it into de required DATA file.
Code: Select all
websitemodule = "m_dummy"
-- Switch on mydebug in case of issues and initially and check the domoticz log for any issues or missing
mydebug = false -- (true/false)
testdataload = false -- (true/false)
-- Specify the appropriate directories (Raspberry Pi example)
datafilepath = '/home/pi/domoticz/scripts/lua' -- specify the directory where the garbagecalendar.data & garbagecalendar.log will be stored
scriptpath = '/home/pi/domoticz/scripts/lua' -- specify the directory for the main "script_time_garbagecalendar.lua" script
domoticzjsonpath = '/home/pi/domoticz/scripts/lua' -- specify the path to domoticz where the JSON.lua file can be found
Code: Select all
ver="20200916-1600"
websitemodule="m_csv_file"
--[[
This module requires an inputfile defined by this variable in the configfile:
input_csv_file = "garbagecalendar/garbage_input.csv"
--With the following format:--
garbagedate;garbagetype
20-8-2020;papier
23-8-2020;GFT
1-9-2020;Rest
10-9-2020;papier
21-9-2020;GFT
30-9-2020;Rest
3-10-2020;papier
4-10-2020;GFT
5-10-2020;Rest
--]]Thnx, I have set is all up, tomorrow the first notification will be triggered.
I'll have a look later this week to see what is needed to make it work.martin82 wrote: Saturday 19 September 2020 16:22 wauw , can you make it work for OMRIN also?
in leeuwarden works only OMRIN i think
Curious, did you get it to work? And did you populate all dates manually in the csv?
Yes i did, but i had made a error in my csv file so i mist the test dayHann1BaL wrote: Friday 25 September 2020 12:19Curious, did you get it to work? And did you populate all dates manually in the csv?Xenomes wrote: Sunday 20 September 2020 9:34 Thnx, I have set is all up, tomorrow the first notification will be triggered.
Since its broken I realize why I made it work in the first place! I really rely on the light in my room to tell me to put the bin out and which bin that day..
Also, what is the best way to update the script? Just download and write over the files?
This is something you need to do in Domoticz yourself with custom ico's.Rolandet wrote: Sunday 27 September 2020 18:46 Only thing I can't get to work, is the icon. It still gives me the default 'text'
any thoughts on that?
ok thanks. I'll try figure it out. Thanks for the scriptjvdz wrote: Sunday 27 September 2020 18:55This is something you need to do in Domoticz yourself with custom ico's.Rolandet wrote: Sunday 27 September 2020 18:46 Only thing I can't get to work, is the icon. It still gives me the default 'text'
any thoughts on that?
I haven't played with custom icon myself as I am not working much with the webinterface so didn't bother.
Jos