Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post by EdwinK »

Custom.css
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
DvD
Posts: 18
Joined: Wednesday 22 January 2014 13:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by DvD »

Is it possible to add reinis to the garbage collector ? thnx in advance

http://www.reinis.nl/postcodecheck/

Daniel
h143
Posts: 27
Joined: Tuesday 28 October 2014 22:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by h143 »

robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts »

Swifty wrote:
robgeerts wrote:
Swifty wrote:@robgeerts - Any luck with adding iCal support for the garbage module?
I'm not hassling - just been away for a week or so, and trying to catch up on the board, so wondering if I missed it as i can't see it in the first post :)
No sorry... didnt have much time in the last couple of days... could you send me an example ical? (Or did you already?)
No problem, as I say - not hassling just wasn't sure if I'd missed it :)

I already sent a PM with ical link (sent 12th May) let me know if you need it again.
Could you try latest beta?
You dont need to add the colors in de description, will fetch the right colored icon based on name.
It only shows the collection dates in the upcoming month.
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Swifty »

robgeerts wrote:
Swifty wrote:
robgeerts wrote: No sorry... didnt have much time in the last couple of days... could you send me an example ical? (Or did you already?)
No problem, as I say - not hassling just wasn't sure if I'd missed it :)

I already sent a PM with ical link (sent 12th May) let me know if you need it again.
Could you try latest beta?
You dont need to add the colors in de description, will fetch the right colored icon based on name.
It only shows the collection dates in the upcoming month.
Thanks, I'll give it a try when I get home tonight and report back :)
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Swifty »

robgeerts wrote: Could you try latest beta?
You dont need to add the colors in de description, will fetch the right colored icon based on name.
It only shows the collection dates in the upcoming month.
Swifty wrote: Thanks, I'll give it a try when I get home tonight and report back :)
So I've just had chance to check it out, slightly later than planned due to being greeted by sick children when I got home ;)

It all seems to work great, but for some reason the weekday names are showing up in dutch - eg. next collection is thursday, but the block shows donderdag instead.
I have the locale set to en_US in the dashticz config, so not sure where it's grabbing that from?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post by EdwinK »

It's a plot from us Dutch people to take over the world.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
krizzz
Posts: 200
Joined: Wednesday 20 November 2013 20:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by krizzz »

So, question. I am a novice with dashticz :) so please be gentle.

I added the trashcan "device"

Code: Select all

var trashcan = {}
trashcan.hvc = { maxitems: 10, trashapp: 'hvc', width:6, zipcode:'XXXXxx', housenumber:'X'  }

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

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

Then added it to columns

Code: Select all

columns[1] = {}
columns[1]['blocks'] = [
'clock',
'currentweather',
buttons.buienradar,
trashcan.hvc]
columns[1]['width'] = 2;
closed the CONFIG.js and my dashtica gave the following error:

Image


Pretty strange, because line 165 in the CONFIG.js is a line with the // at the beginning so it should be non working code. Also in Dashtica you can see the "garbage bin" loading but not coming through. Any ideas?
h143
Posts: 27
Joined: Tuesday 28 October 2014 22:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by h143 »

can someone help me so i can do it myself?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts »

krizzz wrote:So, question. I am a novice with dashticz :) so please be gentle.

I added the trashcan "device"

Code: Select all

var trashcan = {}
trashcan.hvc = { maxitems: 10, trashapp: 'hvc', width:6, zipcode:'XXXXxx', housenumber:'X'  }

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

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

Then added it to columns

Code: Select all

columns[1] = {}
columns[1]['blocks'] = [
'clock',
'currentweather',
buttons.buienradar,
trashcan.hvc]
columns[1]['width'] = 2;
closed the CONFIG.js and my dashtica gave the following error:

Image


Pretty strange, because line 165 in the CONFIG.js is a line with the // at the beginning so it should be non working code. Also in Dashtica you can see the "garbage bin" loading but not coming through. Any ideas?
Could you test latest beta?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post by EdwinK »

Yeah... a new beta :)

*does git pull*
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Trigun
Posts: 390
Joined: Wednesday 30 November 2016 11:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Dashticz - Module - Garbage collector

Post by Trigun »

Hi Rob,

Is there chance you can add https://www.twentemilieu.nl/borne or perhaps there is a different way? Thnx for your help in advance!


Sent from my iPhone using Tapatalk
krizzz
Posts: 200
Joined: Wednesday 20 November 2013 20:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by krizzz »

robgeerts wrote:Could you test latest beta?
Done, no change. Maybe you see some something in my CONFIG.js?

Code: Select all

var _LANGUAGE = 'nl_NL'; //or: en_US, fr_FR, hu_HU
var _HOST_DOMOTICZ = 'http://192.168.X.XXX:8080';
var _DOMOTICZ_REFRESH = 5; //in seconds
var _APIKEY_WUNDERGROUND = 'xxxxxxxxxxxxxxxx';
var _WEATHER_CITY = 'xxxxx';
var _WEATHER_CITYNAME = ''; //show a different city name, leave empty if same as _WEATHER_CITY
var _WEATHER_COUNTRY = 'NL';
var _USE_AUTO_POSITIONING = true; //don't want to configure positions, use auto positioning
var _USE_FAVORITES = true; //only used when using auto positioning
var _HIDE_SECONDS_IN_CLOCK = false; //do not show the seconds in the clock
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 = false;
var _LASTUPDATE_FORMAT = 'DD-MM-YY HH:mm';

var _APIKEY_MAPS = '';
var _MAPS_LATITUDE = '';
var _MAPS_LONGITUDE = '';


//Buttons or images to open webpages in an iframe, like a news website or weather forecast
var buttons = {}
buttons.buienradar = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=XXX&h=XXX', url: 'http://www.weeronline.nl/Europa/Nederland/xxxxxx/xxxxx'}

// http://fontawesome.io/cheatsheet/ 

var screens = {}
screens[1] = {}
screens[1]['background'] = 'toscane.jpg';
screens[1]['columns'] = [1,2,3]

var trashcan = {}
trashcan.hvc = { maxitems: 10, trashapp: 'hvc', width:6, zipcode:'XXXXxx', housenumber:'3X  }

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

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

var blocks = {}

// WEER

// WOONKAMER

// KEUKEN

// SLAAPKAMER

// MEDIA

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

blocks['blocktitle_1b'] = {}
blocks['blocktitle_1b']['type'] = 'blocktitle';
blocks['blocktitle_1b']['title'] = 'Temperatuur';

blocks['blocktitle_1c'] = {}
blocks['blocktitle_1c']['type'] = 'blocktitle';
blocks['blocktitle_1c']['title'] = 'Divers';

blocks['news_1'] = {} 
blocks['news_1']['feed'] = 'https://crossorigin.me/http://www.nu.nl/rss/Algemeen';

blocks['news_2'] = {} 
blocks['news_2']['feed'] = 'https://crossorigin.me/http://www.nu.nl/rss/Sport';

var columns = {}

columns[1] = {}
columns[1]['blocks'] = [
'clock',
'currentweather',
buttons.buienradar,
trashcan.hvc]
columns[1]['width'] = 2;

columns[2] = {}
columns[2]['blocks'] = [
'weather',
'traffic',
'train',
'news_1',
'news_2']
columns[2]['width'] = 5; 

columns[3] = {}
columns[3]['blocks'] = [
'blocktitle_1a',
61,
'blocktitle_1b',
'blocktitle_1c',
]
columns[3]['width'] = 5;

columns[4] = {}
columns[4]['blocks'] = [

]
columns[4]['width'] = 5;

columns[5] = {}
columns[5]['blocks'] = [

]
columns[5]['width'] = 5;

columns[6] = {}
columns[6]['blocks'] = [

]
columns[6]['width'] = 2;

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

Re: Dashticz - Module - Garbage collector

Post by EdwinK »

Could it be because you have set the 'USE_AUTO_POSTIONING' and 'USE_FAVORITES' to 'TRUE'.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
krizzz
Posts: 200
Joined: Wednesday 20 November 2013 20:36
Target OS: Linux
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by krizzz »

EdKo66 wrote:Could it be because you have set the 'USE_AUTO_POSTIONING' and 'USE_FAVORITES' to 'TRUE'.
Thanks for the help, i adjusted the 'USE_FAVORITES' to FALSE. But no changes....
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Swifty »

@robgeerts

Any thoughts on the lack of localisation for pickup day text?

I had a look at some of the code to try and understand - it looks like today and tomorrow are localised, but anything else is hardcoded to NL ? (Trash.js line 335)
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Dashticz - Module - Garbage collector

Post by jake »

I updated to the latest beta and I lost the custom names and colors of the garbage types. Also the different font sizes is gone. Settings are still there in config.js and custom.css
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts »

krizzz wrote: var trashcan = {}
trashcan.hvc = { maxitems: 10, trashapp: 'hvc', width:6, zipcode:'XXXXxx', housenumber:'3X }
You are missing a ' ??
(After 3X)
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts »

jake wrote:I updated to the latest beta and I lost the custom names and colors of the garbage types. Also the different font sizes is gone. Settings are still there in config.js and custom.css
Try latest beta version...
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts »

Guys, I'm trying to support more cities but the ones I dont support yet doesnt have a right data-source (JSON) available...
(Or havent found yet..)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest