Dashticz - Module - Garbage collector

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

amauryverschooren
Posts: 8
Joined: Friday 31 August 2018 19:16
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by amauryverschooren » Thursday 06 September 2018 22:51

HansieNL wrote:
Thursday 06 September 2018 22:27
amauryverschooren wrote:
Thursday 06 September 2018 21:59
HansieNL wrote:
Thursday 06 September 2018 21:55

Dear Amaury,
Maybe you can post your config.js as code. You can do that by selecting </>
Here you go.
Spoiler: show

Code: Select all

var config = {}
config['language'] = 'nl_NL'; //or: en_US, de_DE, fr_FR, hu_HU, it_IT, pt_PT, sv_SE
config['domoticz_ip'] = 'http://192.168.0.185:8080';
config['app_title'] = 'Dashboard';
config['domoticz_refresh'] = '0.1';
config['dashticz_refresh'] = '60';
config['default_news_url'] = '';
config['news_scroll_after'] = '7';
config['standby_after'] = 0;
config['auto_swipe_back_to'] = 1;
config['auto_swipe_back_after'] = '10';
config['auto_slide_pages'] = 0;
config['slide_effect'] = 'slide';
config['standard_graph'] = 'hours';
config['language'] = 'nl_NL';
config['timeformat'] = 'DD-MM-YY HH:mm';
config['calendarformat'] = 'dd DD.MM HH:mm';
config['calendarlanguage'] = 'nl_NL';
config['calendarurl'] = 0;
config['boss_stationclock'] = 'RedBoss';
config['gm_api'] = 'XXX';
config['gm_zoomlevel'] = '8';
config['gm_latitude'] = 'XXX';
config['gm_longitude'] = 'XXX';
config['wu_api'] = 'xzxzzxz';
config['wu_city'] = 'Rapenberg';
config['wu_name'] = 'in Bazel';
config['wu_country'] = 'BE';
config['idx_moonpicture'] = 0;
config['switch_horizon'] = 0;
config['host_nzbget'] = 0;
config['spot_clientid'] = 'xzxzx';
config['garbage_company'] = 0;
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = 0;
config['garbage_street'] = 0;
config['garbage_housenumber'] = 0;
config['garbage_maxitems'] = 0;
config['garbage_width'] = 0;
config['selector_instead_of_buttons'] = 0;
config['auto_positioning'] = 0;
config['use_favorites'] = 1;
config['last_update'] = 0;
config['hide_topbar'] = 0;
config['hide_seconds'] = 1;
config['hide_seconds_stationclock'] = 0;
config['use_fahrenheit'] = 0;
config['use_beaufort'] = 0;
config['translate_windspeed'] = 1;
config['static_weathericons'] = 0;
config['hide_mediaplayer'] = 0;

var trashcan = {}
trashcan.ophaalkalender = { trashapp: 'zxx', width:6,street:'zxzx',zxzx:'zxzx', country:'BE' }



var trashnames = {}
trashnames['Rest'] = 'Restafval';
trashnames['Gft'] = 'GFT';
trashnames['Pmd'] = 'Plastic';

var trashcolors = {}
trashcolors['Gft'] = 'Lime';
trashcolors['Pmd'] = 'Orange';

var _HOST_ZIGGO_HORIZON = ''; //e.g. http://192.168.zx/domoticz/switch_horizon.php';
var _APIKEY_WUNDERGROUND = 'xxxxxxxxx';
var _WEATHER_CITY = 'Kruibeke';
var _WEATHER_CITYNAME = ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY = 'BE';
var _USE_AUTO_POSITIONING = false; //don't want to configure positions, use auto positioning
var _USE_FAVORITES = false; //only used when using auto positioning
var _HIDE_SECONDS_IN_CLOCK = false; //do not show the seconds in the clock
var _HIDE_MEDIAPLAYER_WHEN_OFF = false; //when you have a mediaplayer connected, hide it if nothing is playing
var _NEWS_RSSFEED = 'http://www.nu.nl/rss/algemeen';
var _USE_FAHRENHEIT = false;
var _USE_BEAUFORT = false; //Bft instead of m/s
var _TRANSLATE_SPEED = false; //windspeed, north northwest instead of NNW
var _STANDBY_AFTER_MINUTES = false; //enter amount of minutes like: 5 (5 minutes)
var _SCROLL_NEWS_AFTER = 7000; //milliseconds, so 7000 is 7 seconds
var _SHOW_LASTUPDATE = true;
var _LASTUPDATE_FORMAT = 'DD-MM-YY HH:mm';
var _SCREENSLIDER_EFFECT = 'slide'; //'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'

// Online Radio Stream Plugin, Note: you must enable plugin in column section 'streamplayer'
var _STREAMPLAYER_TRACKS = [
{"track":1,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
{"track":2,"name":"Radio 538","file":"http://vip-icecast.538.lw.triple-it.nl/RADIO538_MP3"},
{"track":3,"name":"Arrow Classic Rock","file":"http://www.garnierstreamingmedia.com/as ... stream=205"},
{"track":4,"name":"Radio Veronica","file":"http://live.icecast.kpnstreaming.nl/sky ... GSTR09.mp3"},
{"track":5,"name":"Q-music","file":"http://live.icecast.kpnstreaming.nl/omr ... bantHq.m3u"},
];

var buttons = {}
buttons.webcam1 = { width:6, isimage:true, refresh:5000, image: 'http://sensored/image.jpg', url: 'http://sensored/image.jpg' }
buttons.webcam2 = { width:6, isimage:true, refresh:5000, image: 'sensored' }
buttons.buienradar = {width:4, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=sensored', url: 'http://www.weeronline.nl/Europa/Nederland/Dordrecht/sensored'}
buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'}
buttons.nzbget = {width:12, icon: 'fa-download', title: 'NZBget', url: 'http://sensored:6789'}
buttons.log = {key:'log', width:12, icon:'fa-microchip', title: 'Domoticz Log', log:true, level: 2}


//CUSTOM POSITIONING:
//defining wich blocks to show, de numbers represents the IDX of the device in Domoticz
//only define if you want to use a custom width instead of the default

var blocks = {}

//Groepen & Scenes


//Schakelaars





//Overige


blocks[6] = {}
blocks[6]['width'] = 6;
blocks[6]['title'] = 'Temp. Kamer Amaury:'
blocks[6]['switch'] = true;

blocks[7] = {}
blocks[7]['width'] = 6;
blocks[7]['title'] = 'Temp. Kamer Valerie:'
blocks[7]['switch'] = true;

blocks[8] = {}
blocks[8]['width'] = 6;
blocks[8]['title'] = 'Temp. Woonkamer:'
blocks[8]['switch'] = true;


//Titels
blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Temperatuur sensors';

blocks['blocktitle_2'] = {}
blocks['blocktitle_2']['type'] = 'blocktitle';
blocks['blocktitle_2']['title'] = 'Scenes';

blocks['blocktitle_3'] = {}
blocks['blocktitle_3']['type'] = 'blocktitle';
blocks['blocktitle_3']['title'] = 'Schakelaars';

blocks['blocktitle_4'] = {}
blocks['blocktitle_4']['type'] = 'blocktitle';
blocks['blocktitle_4']['title'] = 'Weer';

blocks['blocktitle_5'] = {}
blocks['blocktitle_5']['type'] = 'blocktitle';
blocks['blocktitle_5']['title'] = 'Radio';






// Kolommen
var columns = {}

columns[1] = {}
columns[1]['blocks'] = ['clock','sunrise', 'currentweather_big']
columns[1]['width'] = 2;

columns[2] = {}
columns[2]['blocks'] = ['blocktitle_1','6','7','8','blocktitle_2']
columns[2]['width'] = 5;

columns[3] = {}
columns[3]['blocks'] = ['blocktitle_3','1','2','5','blocktitle_4','weather']
columns[3]['width'] = 5;

columns[4] = {}
columns[4]['blocks'] = ['currentweather_big']
columns[4]['width'] = 6;

columns[5] = {}
columns[5]['blocks'] = [buttons.buienradar, buttons.radio, buttons.nunl]
columns[5]['width'] = 6;

columns[6] = {}
columns[6]['blocks'] = [trashcan.ophaalkalender]






//if you want to use multiple screens, use the code below:
var screens = {}
screens[1] = {}
screens[1]['background'] = 'bg9.jpg';
screens[1]['background_night'] = 'bg12.jpg';
screens[1]['columns'] = [1,2,3]

screens[2] = {}
screens[2]['background'] = 'bg9.jpg';
screens[2]['background_night'] = 'bg12.jpg';
screens[2]['columns'] = [4,5,6]
These variables are empty
config['garbage_company'] = 0;
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = 0;
config['garbage_street'] = 0;
config['garbage_housenumber'] = 0;
config['garbage_maxitems'] = 0;
config['garbage_width'] = 0;


You can take a look at the wiki https://www.domoticz.com/wiki/Dashticz_ ... _Collector how to do that.
I don't know what version of Dashticz you are using, because variables all have changed. Now it's a mix of very old and new in your config.js.
TIP: Remove personal info from your config.js if you post on a forum.
Do i need to use the icalurl? Don't know what it is and if i should use it. When i fill in the other values, my dashticz won't load

User avatar
HansieNL
Posts: 460
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL » Thursday 06 September 2018 23:28

@amauryverschooren :
These settings are working here with latest stable (master):

Code: Select all

config['garbage_company'] = 'ophaalkalender';
config['garbage_icalurl'] = '';
config['google_api_key'] = '';
config['garbage_calendar_id'] = '';
config['garbage_zipcode'] = '9150';
config['garbage_street'] = 'kerkstraat';
config['garbage_housenumber'] = '';
config['garbage_housenumberadd'] = '';
config['garbage_maxitems'] = '';
config['garbage_width'] = '6';

columns[1] = {}
columns[1]['blocks'] = ['garbage']
columns[1]['width'] = 5;
Blah blah blah

hve22
Posts: 5
Joined: Wednesday 11 October 2017 23:16
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by hve22 » Friday 21 September 2018 18:28

Hi Guys,

After a year of working nicely, this week the garbage collector module isn't working any more.
Somehow it cannot find the desired data.

Is there a change on the provider end???
[I'm using 'HVC' data.]

jdemas
Posts: 8
Joined: Saturday 16 September 2017 9:55
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by jdemas » Saturday 22 September 2018 9:16

hi rob,

i use rd4 garbage collector most is working fine but there are 2 problems when there is snoeiafval it shows as GFT and best-tas isn't showing at all

where do i have to look to solve this problem?

reagrds Jeffrey

jake
Posts: 492
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: Dashticz - Module - Garbage collector

Post by jake » Saturday 22 September 2018 16:42

hve22 wrote:Hi Guys,

After a year of working nicely, this week the garbage collector module isn't working any more.
Somehow it cannot find the desired data.

Is there a change on the provider end???
[I'm using 'HVC' data.]
Same problem, also hvc

The following link gives a solution to the hvc problem:
https://r.tapatalk.com/shareLink?url=ht ... are_type=t

However, for Dashticz, the real work to collect data from HVC is done from the website www.dashticz.nl We therefore can't solve it locally and an update is needed on the server side.

Recky
Posts: 7
Joined: Monday 30 July 2018 7:05
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by Recky » Monday 24 September 2018 8:18

Hi, is it possible to add Reinis?

https://www.reinis.nl/afvalkalender/

Also, i can image its a huge task to add and maintain all these different calendars. Is this actually still being worked on?

jake
Posts: 492
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: Dashticz - Module - Garbage collector

Post by jake » Saturday 29 September 2018 22:57

@robgeerts, can you please have a look at the changed HVC request? Since the old method is offline for some weeks now, I start to realize how much I liked it in the first place!
Thanks in advance.

kiddigital
Posts: 8
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi
Domoticz version: 4.9788
Location: Netherlands
Contact:

Dashticz - Module - Garbage collector

Post by kiddigital » Sunday 30 September 2018 10:06

+1, me and my family already mis it (the HVC data)
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.1.0 for Alexa
One RPi with Pi foundation standard touch screen to display Dashticz

jake
Posts: 492
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: Dashticz - Module - Garbage collector

Post by jake » Sunday 07 October 2018 1:25

For the moment I am back to the old guesswork: put the garbage containter outside with the same color as those from some early neighbours.

Rob, your help to include the changed script into the 'garbage-code' on your server, is more and more welcome every passing day.

User avatar
gielie
Posts: 239
Joined: Tuesday 12 January 2016 12:40
Target OS: Raspberry Pi
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Module - Garbage collector

Post by gielie » Monday 08 October 2018 15:58

I have a strange thing in my garbage layout, it shows a time (@00:00). It worked fine before but i don't know when this changed but it is really annoying with a time label in it.

Does someone know what is going wrong?
- Vision ZU1401 USB Stick
- Aeotec MultiSensor 6
- FIBARO FGS222
- FIBARO FGWPE Wall Plug
- Everspring AN157
- Neo CoolCam Power plug
- Neo CoolCam PIR Sensor
- Popp Smoke Detector
- Toon
- Kodi Media Server

User avatar
HansieNL
Posts: 460
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL » Monday 08 October 2018 16:48

@gielie : If you change in your garbage.js this.displayDate = garbage.date.locale(settings['calendarlanguage']).format(settings['calendarformat']); to this.displayDate = garbage.date.locale(settings['calendarlanguage']).format('l'); you get the old date format.
This issue is already logged in GitHub https://github.com/Dashticz/dashticz_v2/issues/375
Blah blah blah

User avatar
gielie
Posts: 239
Joined: Tuesday 12 January 2016 12:40
Target OS: Raspberry Pi
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Module - Garbage collector

Post by gielie » Friday 12 October 2018 8:34

HansieNL wrote:
Monday 08 October 2018 16:48
@gielie : If you change in your garbage.js this.displayDate = garbage.date.locale(settings['calendarlanguage']).format(settings['calendarformat']); to this.displayDate = garbage.date.locale(settings['calendarlanguage']).format('l'); you get the old date format.
This issue is already logged in GitHub https://github.com/Dashticz/dashticz_v2/issues/375
Yes, youre my hero. I missed it in the github issue list.
- Vision ZU1401 USB Stick
- Aeotec MultiSensor 6
- FIBARO FGS222
- FIBARO FGWPE Wall Plug
- Everspring AN157
- Neo CoolCam Power plug
- Neo CoolCam PIR Sensor
- Popp Smoke Detector
- Toon
- Kodi Media Server

edge
Posts: 10
Joined: Wednesday 02 September 2015 14:04
Target OS: Raspberry Pi
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by edge » Wednesday 24 October 2018 20:17

Somehow I do not get it working. My local garbage collector is using "deafvalapp". So my config.js contains:

Code: Select all

config['garbage_company'] = 'deafvalapp';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '1234AA';
config['garbage_street'] = '';
config['garbage_housenumber'] = '1';
config['garbage_maxitems'] = '12';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage_use_cors_prefix'] = false;
config['garbage'] = {
    gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
    pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
    rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
    papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
    kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
    brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
    black: {kliko: 'black', code: '#000000', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
    milieu: {kliko: 'yellow', code: '#f9e231', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
    kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},

};
When I load my dashticz dashboard and using the 'inspect' within Chrome i see the following error:
jquery.min.js:4 GET https://dashticz.nl/afval/?service=deaf ... AA&nr=1&t= net::ERR_NAME_RESOLUTION_FAILED

I don't get it, why is it querying the (non-existing?) dashticz.nl domain?

Lokonli
Posts: 144
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli » Wednesday 24 October 2018 20:46

edge wrote:
Wednesday 24 October 2018 20:17
Somehow I do not get it working. My local garbage collector is using "deafvalapp". So my config.js contains:

Code: Select all

config['garbage_company'] = 'deafvalapp';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '1234AA';
config['garbage_street'] = '';
config['garbage_housenumber'] = '1';
config['garbage_maxitems'] = '12';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage_use_cors_prefix'] = false;
config['garbage'] = {
    gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
    pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
    rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
    papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
    kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
    brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
    black: {kliko: 'black', code: '#000000', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
    milieu: {kliko: 'yellow', code: '#f9e231', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
    kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},

};
When I load my dashticz dashboard and using the 'inspect' within Chrome i see the following error:
jquery.min.js:4 GET https://dashticz.nl/afval/?service=deaf ... AA&nr=1&t= net::ERR_NAME_RESOLUTION_FAILED

I don't get it, why is it querying the (non-existing?) dashticz.nl domain?
Read this topic: viewtopic.php?f=67&t=24907

edge
Posts: 10
Joined: Wednesday 02 September 2015 14:04
Target OS: Raspberry Pi
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by edge » Thursday 25 October 2018 9:23

Lokonli wrote:
Wednesday 24 October 2018 20:46
edge wrote:
Wednesday 24 October 2018 20:17
Somehow I do not get it working. My local garbage collector is using "deafvalapp". So my config.js contains:

Code: Select all

config['garbage_company'] = 'deafvalapp';
config['garbage_icalurl'] = 0;
config['garbage_zipcode'] = '1234AA';
config['garbage_street'] = '';
config['garbage_housenumber'] = '1';
config['garbage_maxitems'] = '12';
config['garbage_width'] = '12';
config['garbage_hideicon'] = 0;
config['garbage_use_names'] = true;
config['garbage_use_colors'] = true;
config['garbage_icon_use_colors'] = true;
config['garbage_use_cors_prefix'] = false;
config['garbage'] = {
    gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
    pmd: {kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
    rest: {kliko: 'grey', code: '#5e5d5c', name: 'Restafval', icon: 'img/garbage/kliko_grey.png'},
    papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
    kca: {kliko: 'red', code: '#b21807', name: 'Chemisch afval', icon: 'img/garbage/kliko_red.png'},
    brown: {kliko: 'brown', code: '#7c3607', name: 'Bruin', icon: 'img/garbage/kliko_brown.png'},
    black: {kliko: 'black', code: '#000000', name: 'Zwart', icon: 'img/garbage/kliko_black.png'},
    milieu: {kliko: 'yellow', code: '#f9e231', name: 'Geel', icon: 'img/garbage/kliko_yellow.png'},
    kerstboom: {kliko: 'green', code: '#375b23', name: 'Kerstboom', icon: 'img/garbage/tree.png'},

};
When I load my dashticz dashboard and using the 'inspect' within Chrome i see the following error:
jquery.min.js:4 GET https://dashticz.nl/afval/?service=deaf ... AA&nr=1&t= net::ERR_NAME_RESOLUTION_FAILED

I don't get it, why is it querying the (non-existing?) dashticz.nl domain?
Read this topic: viewtopic.php?f=67&t=24907
Oops.. Missed that. Thanks!

edge
Posts: 10
Joined: Wednesday 02 September 2015 14:04
Target OS: Raspberry Pi
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by edge » Tuesday 30 October 2018 23:12

Sorry, another question :)
The garbage module is working for GFT but not for other garbagestreams.
My location uses 'deafvalapp'. If I follow the URL

http://dataservice.deafvalapp.nl/datase ... B&huisnr=X

The output is

Code: Select all

ZAK_BLAUW;21-12-2018;23-11-2018;26-10-2018;28-09-2018;31-08-2018;03-08-2018;06-07-2018;08-06-2018;11-05-2018;13-04-2018;16-03-2018;16-02-2018;19-01-2018;
PBP;28-12-2018;14-12-2018;30-11-2018;16-11-2018;02-11-2018;19-10-2018;05-10-2018;21-09-2018;07-09-2018;24-08-2018;10-08-2018;27-07-2018;13-07-2018;29-06-2018;15-06-2018;01-06-2018;18-05-2018;04-05-2018;20-04-2018;06-04-2018;23-03-2018;09-03-2018;23-02-2018;09-02-2018;26-01-2018;12-01-2018;
GFT;28-12-2018;21-12-2018;14-12-2018;07-12-2018;30-11-2018;23-11-2018;16-11-2018;09-11-2018;02-11-2018;26-10-2018;19-10-2018;12-10-2018;05-10-2018;28-09-2018;21-09-2018;14-09-2018;07-09-2018;31-08-2018;24-08-2018;17-08-2018;10-08-2018;03-08-2018;27-07-2018;20-07-2018;13-07-2018;06-07-2018;29-06-2018;22-06-2018;15-06-2018;08-06-2018;01-06-2018;25-05-2018;18-05-2018;11-05-2018;04-05-2018;28-04-2018;20-04-2018;13-04-2018;06-04-2018;30-03-2018;23-03-2018;16-03-2018;09-03-2018;02-03-2018;23-02-2018;16-02-2018;09-02-2018;02-02-2018;26-01-2018;19-01-2018;12-01-2018;05-01-2018;
So there are 3 streams "ZAK_BLAUW", "PBP" and "GFT". In my config I am using the following lines:

Code: Select all

	
config['garbage'] = {
		"gft": 	{kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
		"pbp": 		{kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
		"zak_blauw": 	{kliko: 'blue', code: '#153477', name: 'ZAK', icon: 'img/garbage/kliko_blue.png'},

But somehow only the "gft" is working. PBD & zak_blauw aren't working... What can I do to make it work?

Lokonli
Posts: 144
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli » Wednesday 31 October 2018 1:14

edge wrote:
Tuesday 30 October 2018 23:12
Sorry, another question :)
The garbage module is working for GFT but not for other garbagestreams.
My location uses 'deafvalapp'. If I follow the URL

http://dataservice.deafvalapp.nl/datase ... B&huisnr=X

The output is

Code: Select all

ZAK_BLAUW;21-12-2018;23-11-2018;26-10-2018;28-09-2018;31-08-2018;03-08-2018;06-07-2018;08-06-2018;11-05-2018;13-04-2018;16-03-2018;16-02-2018;19-01-2018;
PBP;28-12-2018;14-12-2018;30-11-2018;16-11-2018;02-11-2018;19-10-2018;05-10-2018;21-09-2018;07-09-2018;24-08-2018;10-08-2018;27-07-2018;13-07-2018;29-06-2018;15-06-2018;01-06-2018;18-05-2018;04-05-2018;20-04-2018;06-04-2018;23-03-2018;09-03-2018;23-02-2018;09-02-2018;26-01-2018;12-01-2018;
GFT;28-12-2018;21-12-2018;14-12-2018;07-12-2018;30-11-2018;23-11-2018;16-11-2018;09-11-2018;02-11-2018;26-10-2018;19-10-2018;12-10-2018;05-10-2018;28-09-2018;21-09-2018;14-09-2018;07-09-2018;31-08-2018;24-08-2018;17-08-2018;10-08-2018;03-08-2018;27-07-2018;20-07-2018;13-07-2018;06-07-2018;29-06-2018;22-06-2018;15-06-2018;08-06-2018;01-06-2018;25-05-2018;18-05-2018;11-05-2018;04-05-2018;28-04-2018;20-04-2018;13-04-2018;06-04-2018;30-03-2018;23-03-2018;16-03-2018;09-03-2018;02-03-2018;23-02-2018;16-02-2018;09-02-2018;02-02-2018;26-01-2018;19-01-2018;12-01-2018;05-01-2018;
So there are 3 streams "ZAK_BLAUW", "PBP" and "GFT". In my config I am using the following lines:

Code: Select all

	
config['garbage'] = {
		"gft": 	{kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
		"pbp": 		{kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
		"zak_blauw": 	{kliko: 'blue', code: '#153477', name: 'ZAK', icon: 'img/garbage/kliko_blue.png'},

But somehow only the "gft" is working. PBD & zak_blauw aren't working... What can I do to make it work?
The garbage module uses an additional step in the name mapping, which is by default initialized as follows:

Code: Select all

config['garbage_mapping'] = {
      gft: ['gft', 'tuin', 'refuse bin', 'green', 'groen', 'Biodégradables', 'snoei'],
      pmd: ['plastic', 'pmd', 'verpakking', 'kunststof', 'valorlux'],
      rest: ['restafval'],
      papier: ['papier', 'blauw', 'blue', 'recycling bin collection'],
      kca: ['chemisch', 'kca','kga'],
      brown: ['brown', 'verre'],
      black: ['black', 'zwart'],
      milieu: ['milieu'],
      kerstboom: ['kerst'],
  };
 
In your case it should work with something like the following settings: (I did not test)

Code: Select all

config['garbage'] = {
		"gft": 	{kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
		"pmd": 	{kliko: 'orange', code: '#db5518', name: 'PMD', icon: 'img/garbage/kliko_orange.png'},
		"rest": 	{kliko: 'blue', code: '#153477', name: 'ZAK', icon: 'img/garbage/kliko_blue.png'}
};

config['garbage_mapping'] = {
      gft: ['gft'],
      pmd: ['pbp'],
      rest: ['blauw'],
  };

edge
Posts: 10
Joined: Wednesday 02 September 2015 14:04
Target OS: Raspberry Pi
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by edge » Thursday 01 November 2018 19:46

Many thanks! Got it working.

Code: Select all

		config['garbage_mapping'] = {
		gft:['gft'], 
		pmd:['pbp'],
		zak_blauw:['zak']
		}

NicoLP
Posts: 5
Joined: Wednesday 26 April 2017 22:37
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by NicoLP » Friday 23 November 2018 0:32

ia het mogelijk om deze garbage plaats ook in te lezen
deze lijkt erg op de zuidhorn koppeling

https://afval.katwijk.nl/nc/afvalkalender/

bv postcode 2221sb nummer 19

Lokonli
Posts: 144
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli » Friday 23 November 2018 22:20

NicoLP wrote:
Friday 23 November 2018 0:32
ia het mogelijk om deze garbage plaats ook in te lezen
deze lijkt erg op de zuidhorn koppeling

https://afval.katwijk.nl/nc/afvalkalender/

bv postcode 2221sb nummer 19
Yes, I think so. I've created a PR. Wait until Rob merges it into a new beta release.

Post Reply

Who is online

Users browsing this forum: nosehook and 3 guests