Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

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

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

Enz0jacco wrote: Friday 20 November 2020 0:35 okay number 1 is fixed by just inserting a new image in the img/garbage folder with the new color.
still looking to get rid of the colon:P
For the colon:

In latest beta there is a new garbage block parameter to configure the date separator.

Code: Select all

block['garbage'] = {
  date_separator: ' => '	//change it to any text you like	
 }
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL »

Spoiler: show
Lokonli wrote: Monday 23 November 2020 18:09 Check latest beta:

Code: Select all

/* This will give the block a red border if trash collection is collected for today */
.trash.trashtoday {
    border-color: red 
}

/* This will give the block a green border if trash collection is collected for tomorrow*/
.trash.trashtomorrow {
    border-color: green 
}

/* This will reduce the opacity in case no trash is scheduled for today or tomorrow */
.trash:not(.trashtoday):not(.trashtomorrow) .dt_state {
    opacity: 0.2 !important;
}

/* This will increase the font of the trash row that is scheduled for today */
.dt_state .trashtoday {
    font-size: 20px
}

Thanks for this option. I'll see tomorrow if the garbage icon and info changes.

Edit: works great!
Last edited by HansieNL on Tuesday 24 November 2020 6:55, edited 1 time in total.
Blah blah blah
Enz0jacco
Posts: 45
Joined: Tuesday 03 March 2020 8:15
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Enz0jacco »

working like a charm! thanx Lokonli
User avatar
madpatrick
Posts: 639
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by madpatrick »

Lokonli wrote: Monday 23 November 2020 21:23
Enz0jacco wrote: Friday 20 November 2020 0:35 okay number 1 is fixed by just inserting a new image in the img/garbage folder with the new color.
still looking to get rid of the colon:P
For the colon:

In latest beta there is a new garbage block parameter to configure the date separator.

Code: Select all

block['garbage'] = {
  date_separator: ' => '	//change it to any text you like	
 }
Lokonli

Is it possible to line the seperator after the text ?
Image
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

madpatrick wrote:
Lokonli wrote: Monday 23 November 2020 21:23
Enz0jacco wrote: Friday 20 November 2020 0:35 okay number 1 is fixed by just inserting a new image in the img/garbage folder with the new color.
still looking to get rid of the colon:P
For the colon:

In latest beta there is a new garbage block parameter to configure the date separator.

Code: Select all

block['garbage'] = {
  date_separator: ' => '	//change it to any text you like	
 }
Lokonli

Is it possible to line the seperator after the text ?
Image
Check beta 3.6.8 :)

Sent from my SM-A320FL using Tapatalk

User avatar
madpatrick
Posts: 639
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by madpatrick »

Lokonli wrote: Friday 27 November 2020 23:42
Lokonli
Check beta 3.6.8 :)

Sent from my SM-A320FL using Tapatalk
Great !!
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by HansieNL »

With the latest garbage update the text is to long to fit the block on iPad in portret mode.
Image
@lokonli Is it possible to disable the new table layout?
Blah blah blah
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

HansieNL wrote: Saturday 28 November 2020 14:40 With the latest garbage update the text is to long to fit the block on iPad in portret mode.
Image
@lokonli Is it possible to disable the new table layout?
How did it look before?
I can remove the table formatting but then the line 'restafval: 9-12-2020' still won't fit.

Was the font smaller in the previous release?
User avatar
madpatrick
Posts: 639
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by madpatrick »

Somehow it changed the font settings and also the image to an icon

Image
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

madpatrick wrote: Saturday 28 November 2020 18:55 Somehow it changed the font settings and also the image to an icon

Image
I've added the block parameter 'layout' to the garbage block.

To use the previous plain text layout use:

Code: Select all

    layout: 0
 
The new table layout is default, and can be set with:

Code: Select all

   layout: 1
 
fvdp80
Posts: 69
Joined: Tuesday 14 August 2018 8:22
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10303
Contact:

Re: Dashticz - Module - Garbage collector

Post by fvdp80 »

Does someone know why the collection dates from Mijnafvalwijzer are messed up?
garbage.jpg
garbage.jpg (15.2 KiB) Viewed 1282 times
config.js
Spoiler: show

Code: Select all

	blocks['mygarbage'] = {
   	 company: 'mijnafvalwijzer',
   	 zipcode: 'xxxX',
   	 street: xxx',
   	 housenumber: xxx,
   	 maxitems: 5,
   	 width: 4,
	 use_names: 1,
	 garbage_mapping: {
		gft: ['gft', 'tuin', 'refuse bin', 'green', 'groen', 'Biodégradables', 'snoei'],
		pmd: ['plastic', 'pmd', 'verpakking', 'kunststof', 'valorlux'],
		papier: ['papier', 'blauw', 'blue', 'recycling bin collection'],
		},
	 garbage: {
		gft: {kliko: 'green', code: '#375b23', name: 'GFT', icon: 'img/garbage/kliko_green.png'},
    		pmd: {kliko: 'orange', code: '#db5518', name: 'Plastic', icon: 'img/garbage/kliko_orange.png'},
    		papier: {kliko: 'blue', code: '#153477', name: 'Papier', icon: 'img/garbage/kliko_blue.png'},
		},
	}
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

Hmm, something goes wrong with the filtering. I'll check.
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

The 2021 data has been added, but wasn't handled correctly.

Fixed in latest beta.
User avatar
madpatrick
Posts: 639
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by madpatrick »

Lokonli wrote: Wednesday 02 December 2020 22:52 I've added the block parameter 'layout' to the garbage block.

To use the previous plain text layout use:

Code: Select all

    layout: 0
 
The new table layout is default, and can be set with:

Code: Select all

   layout: 1
 
Working great !

Image
-= HP server GEN8 Xeon(R) E3-1220L_V2 -=- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.12b on Tab8" =-
poweredge
Posts: 21
Joined: Thursday 05 July 2018 13:54
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by poweredge »

Untitled.png
Untitled.png (109.5 KiB) Viewed 1223 times
I read thru the topic - but could find any pointer. can someone tell me how i can:

1 change the date/time/format ? (my other calenders/home agenda is displayed correctly but not the 'afvalwijzer'/den bosch region)
2 the locale is on nl-NL but i see still as well the english names.

Thanks!
DM2021.1 (pri+sec) VM/RPI4. Dashticz @touchscreen. IT: Dell ESXi cluster, UPS, fiber+4g WAN. Smart: Aeotec/Neo/Qubino/Eurotronic zwave, Philips Hue, P1, rfxom433, OTGW, ITHO WiFi, Shelly shutter/water sens, NEST v3, 9x Alexa
Enz0jacco
Posts: 45
Joined: Tuesday 03 March 2020 8:15
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Enz0jacco »

with the new update my break line between the trash type and date is not working anymore. I tried to put the line break in the date separator but that just gives me a </br>.
any other way to get the trash type on top and the date on the bottom?

thnx!
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

Enz0jacco wrote: Wednesday 09 December 2020 9:00 with the new update my break line between the trash type and date is not working anymore. I tried to put the line break in the date separator but that just gives me a </br>.
any other way to get the trash type on top and the date on the bottom?

thnx!
You should get the 'old' behavior if you add 'layout: 0' to your block definition.
(but then of course you'll loose the table formatting)
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Lokonli »

poweredge wrote: Wednesday 09 December 2020 8:16 Untitled.png

I read thru the topic - but could find any pointer. can someone tell me how i can:

1 change the date/time/format ? (my other calenders/home agenda is displayed correctly but not the 'afvalwijzer'/den bosch region)
2 the locale is on nl-NL but i see still as well the english names.

Thanks!
Did you already try with both config settings:

Code: Select all

config['calendarlanguage'] = 'nl_NL';
config['language'] = 'nl_NL';
poweredge
Posts: 21
Joined: Thursday 05 July 2018 13:54
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by poweredge »

config['calendarlanguage'] = 'nl_NL'; did the trick - date format now correct and language adjusted as well .. already had the datatimeformatting OK but not this one ... appreciated ;-)
DM2021.1 (pri+sec) VM/RPI4. Dashticz @touchscreen. IT: Dell ESXi cluster, UPS, fiber+4g WAN. Smart: Aeotec/Neo/Qubino/Eurotronic zwave, Philips Hue, P1, rfxom433, OTGW, ITHO WiFi, Shelly shutter/water sens, NEST v3, 9x Alexa
Enz0jacco
Posts: 45
Joined: Tuesday 03 March 2020 8:15
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Enz0jacco »

Lokonli wrote:
Enz0jacco wrote: Wednesday 09 December 2020 9:00 with the new update my break line between the trash type and date is not working anymore. I tried to put the line break in the date separator but that just gives me a </br>.
any other way to get the trash type on top and the date on the bottom?

thnx!
You should get the 'old' behavior if you add 'layout: 0' to your block definition.
(but then of course you'll loose the table formatting)
That’s no problem for me! Thnx again!


Sent from my iPad using Tapatalk
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest