Dashticz - Module - Garbage collector

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: htilburgs, robgeerts

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Wednesday 08 November 2017 10:40

Good NEWS!
In latest Beta, the Rova-calendar should work, try these settings in config.js:

Code: Select all

config['garbage_company'] = 'rova';
config['garbage_icalurl'] = '';
config['garbage_zipcode'] = '7731ZT';
config['garbage_street'] = '';
config['garbage_housenumber'] = '84';
config['garbage_maxitems'] = 5;
config['garbage_width'] = '12';
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
EdwinK
Posts: 921
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post by EdwinK » Wednesday 08 November 2017 12:46

Yeah... there is a new beta :)
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

marxkemp
Posts: 10
Joined: Sunday 17 January 2016 14:22
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by marxkemp » Wednesday 08 November 2017 17:47

robgeerts wrote:
Wednesday 08 November 2017 10:40
Good NEWS!
In latest Beta, the Rova-calendar should work, try these settings in config.js:

Code: Select all

config['garbage_company'] = 'rova';
config['garbage_icalurl'] = '';
config['garbage_zipcode'] = '7731ZT';
config['garbage_street'] = '';
config['garbage_housenumber'] = '84';
config['garbage_maxitems'] = 5;
config['garbage_width'] = '12';


I did a fresh beta clone into another folder

Code: Select all

git clone https://github.com/robgeerts/dashticz_v2 --branch beta dashboard
The above config gives me a garbage block with "Loading"
New beta not released yet?

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Wednesday 08 November 2017 19:22

Weird, could you check console if it gives any error?
Or search in the network-tab to an url wich contains the string 'rova', click it and show me what you see ;)
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

marxkemp
Posts: 10
Joined: Sunday 17 January 2016 14:22
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by marxkemp » Wednesday 08 November 2017 22:08

I did another git pull, it updated garbage js and its working with my own zipcode. thank you

Gerald
Posts: 2
Joined: Monday 30 October 2017 13:59
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Gerald » Tuesday 14 November 2017 16:23

@Rob: You are truly a master sir!
It works like a charm!

pvm
Posts: 924
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by pvm » Wednesday 22 November 2017 23:27

Is it possible to mention the short names in the opening post like for 'Afval App' in the config you have to use 'deafvalapp'
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

pvm
Posts: 924
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by pvm » Wednesday 22 November 2017 23:32

I've found an issue with housenumbers with an additional letter, can you integrate the change below?
Code has been tested for Afval App and working correctly

I've fixed this by:
Adding an extra config parameter in config.js

Code: Select all

config['garbage_housenumberadd'] = 'a';
Reading this new parameter in the top of garbage.js with (naming kept similar)

Code: Select all

var homenumberadd = settings['garbage_housenumberadd'];
And adding this parameter to the services who can use this (like afvalapp in this example), in the old code the parameter was not filled

Code: Select all

'&toevoeging=' + homenumberadd, function(data){
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Thursday 23 November 2017 10:09

Added in latest beta, could you test this?
If you get a blank page, please reply in the Bug report-topic.
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

pvm
Posts: 924
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by pvm » Thursday 23 November 2017 21:47

Hi Rob, tested latest beta, thnx, working fine
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Friday 24 November 2017 0:01

Nice :)
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

PeJeWe
Posts: 7
Joined: Monday 28 November 2016 21:52
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by PeJeWe » Monday 27 November 2017 22:08

I can't get it running the "HVC Groep" afval programma.

my settings in the CONFIG.js

config['garbage_company'] = 'HVC groep';
config['garbage_icalurl'] = 'http://inzamelkalender.hvcgroep.nl/maand';
config['garbage_zipcode'] = 'my zipcode';
config['garbage_street'] = 'my street';
config['garbage_housenumber'] = '17';
config['garbage_maxitems'] = 5;
config['garbage_width'] = '12';


//Afval programma
var trashcan = {}
trashcan.hvc = { maxitems: 10, trashapp: 'hvc groep', width:12, zipcode:'******', housenumber:'17' }

var trashnames = {}
trashnames['Rest'] = 'Grijze bak';
trashnames['Gft'] = 'Groene bak';
trashnames['Pmd'] = 'Plastic';
trashnames['Papier'] = 'Blauwe bak';

var trashcolors = {}
trashcolors['Rest'] = 'Grey';
trashcolors['Gft'] = 'Green';
trashcolors['Pmd'] = 'Orange';
trashcolors['Papier'] = 'Blue';

when i push the button i get the "Domoticz offline" message

do i have to install something in domoticz?
I have done a git pull "beta" without succes.

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Tuesday 28 November 2017 0:16

When you push the button? Wich button?
Could you PM me your zipcode?
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

aiolos
Posts: 74
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos » Tuesday 28 November 2017 0:18

for hvc you can just use config['garbage_company'] = 'hvc';
With zipcode and housenumber you should get the calendar. The ical url is not necessary.
Contributor to Dashticz
More on my Github profile

aiolos
Posts: 74
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos » Tuesday 28 November 2017 18:07

A PR for changes in the garbage collection module has been created, so this will be merged soon. There are some changes related to the colouring and naming.
The following config options are new (and trashnames/trashcolors config is gone)

Code: Select all

config['garbage'] = {
    gft: {kliko: 'green', code: '#375b23', name: 'GFT'},
    pmd: {kliko: 'orange', code: '#db5518', name: 'PMD'},
    rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval'},
    papier: {kliko: 'blue', code: '#153477', name: 'Papier'},
    kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval'},
    brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin'},
    black: {kliko: 'black', code: '#000000', name: 'Zwart'},
};
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
Within this config you can change the kliko color and color code of the lines in the block (color code only used if you enable the 'garbage_use_colors' config option). The name property is used if the 'garbage_use_names' option is enabled, otherwise the information from your garbage company will be used.

All various garbage company handling has slightly changed (but the outcome should not be different).
All garbage collection information that was fetched through an ical calender is now loaded directly through javascript (without the need of a php script, which was loaded externally).

A new option for google calendars is also added. The google calendar API can be used with a calendar id and api key (for creating an api key, see https://docs.simplecalendar.io/google-api-key/)
The new config options for google calendars:

Code: Select all

config['garbage_company'] = 'googlecalendar';
config['google_api_key'] = 'YourOwnApiKey';
config['garbage_calendar_id'] = '[email protected]';
If anyone experiences any weird behaviour after the update, let me know. (preferably with information like your garbage config settings)
Contributor to Dashticz
More on my Github profile

User avatar
EdwinK
Posts: 921
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post by EdwinK » Tuesday 28 November 2017 20:26

Nice. Of course this means changing stuff again
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

aiolos
Posts: 74
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Module - Garbage collector

Post by aiolos » Tuesday 28 November 2017 20:45

Yeah, unfortunately. Especially if you have specific colouring. The garbage_company and address settings haven't changed, so for most people it should just work.
Contributor to Dashticz
More on my Github profile

User avatar
EdwinK
Posts: 921
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post by EdwinK » Tuesday 28 November 2017 20:50

Trying to figure things out is not that bad. Already preparing :)
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Tuesday 28 November 2017 23:26

Merged and tested!
@aiolos, sent you a few beers via PayPal!
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
EdwinK
Posts: 921
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post by EdwinK » Wednesday 29 November 2017 0:12

Thanks. Was just getting ready to go to bed, when I noticed the update. So, quickly pulled it, and running ;)
Running latest BETA on a Pi-3 | Toon Thermostat | RFxcom | Dashticz V2 |

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests