Dashticz - Module - Longfonds / luchtkwaliteit (Dutch only)

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

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

Dashticz - Module - Longfonds / luchtkwaliteit (Dutch only)

Post by robgeerts »

Show air quality from longfonds.nl

Available in latest BETA!
Install the beta and add this to config.js:

Settings:

Code: Select all

config['longfonds_zipcode'] = '5654SB';
config['longfonds_housenumber'] = '3';
Width of the block (not required)

Code: Select all

blocks['longfonds'] = {};
blocks['longfonds']['width'] = 4;
Add block to a column like:

Code: Select all

columns[1] = {};
columns[1]['blocks'] = ['longfonds']
columns[1]['width'] = 5;
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 - Longfonds / luchtkwaliteit (Dutch only)

Post by EdwinK »

Thanks. Now to find out what those numbers mean ;)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
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 - Longfonds / luchtkwaliteit (Dutch only)

Post by robgeerts »

0 = good, 11 is very bad ;)
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 - Longfonds / luchtkwaliteit (Dutch only)

Post by EdwinK »

:)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
freakshock
Posts: 64
Joined: Friday 14 April 2017 13:39
Target OS: NAS (Synology & others)
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Longfonds / luchtkwaliteit (Dutch only)

Post by freakshock »

Cool feature Rob, thanks !
joostnl
Posts: 68
Joined: Wednesday 03 February 2016 19:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Longfonds / luchtkwaliteit (Dutch only)

Post by joostnl »

Works great! Could it be that width is not adjustable?

I tried:
blocks['longfonds']['width'] = 4;

(I think this also not work on bitcoin addin)
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 - Longfonds / luchtkwaliteit (Dutch only)

Post by robgeerts »

Just tested in latest beta and works like a charm here...

Code: Select all

blocks['longfonds'] = {};
blocks['longfonds']['width'] = 12;
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Longfonds / luchtkwaliteit (Dutch only)

Post by Derik »

Thanks From my kids...
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
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 - Longfonds / luchtkwaliteit (Dutch only)

Post by EdwinK »

Would be nice if those numbers would represent a colour. So, with 11 the cloud will be a deep-red, and at '0' it will be a nice green.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Longfonds / luchtkwaliteit (Dutch only)

Post by HansieNL »

Hello Rob,
I tried to change the cloud image using blocks['longfonds']['image'] = 'cust_lungs.png'; , but without succes. Is it a fixed image? If so, will it be possible to change it to use our own image? I've created a lungs image as you can see...
Image
Last edited by HansieNL on Tuesday 28 August 2018 23:55, edited 4 times in total.
Blah blah blah
User avatar
Herman-H
Posts: 32
Joined: Saturday 05 April 2014 22:10
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Longfonds / luchtkwaliteit (Dutch only)

Post by Herman-H »

Nice feature, longfonds. I have only one question. Where can i change "Luchtkwaliteit" in "Luchtkwaliteit: 0 - goed, 11 - zeer slecht"

Update: Found it.
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 - Longfonds / luchtkwaliteit (Dutch only)

Post by EdwinK »

Looks like this isn't working anymore. Only got an empty tile. When I go to longfonds.nl, data takes forever to show
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Longfonds / luchtkwaliteit (Dutch only)

Post by HansieNL »

EdwinK wrote: Tuesday 11 June 2019 22:32 Looks like this isn't working anymore. Only got an empty tile. When I go to longfonds.nl, data takes forever to show
Still working here. I just tried with their own address: https://www.longfonds.nl/gezondelucht/a ... Number=127
Blah blah blah
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 - Longfonds / luchtkwaliteit (Dutch only)

Post by EdwinK »

That seems to work, yet I don't get any results on my Dashticz installation.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
EastXIII
Posts: 29
Joined: Monday 08 October 2018 13:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Dashticz - Module - Longfonds / luchtkwaliteit (Dutch only)

Post by EastXIII »

HansieNL wrote: Wednesday 12 June 2019 13:13
EdwinK wrote: Tuesday 11 June 2019 22:32 Looks like this isn't working anymore. Only got an empty tile. When I go to longfonds.nl, data takes forever to show
Still working here. I just tried with their own address: https://www.longfonds.nl/gezondelucht/a ... houseNumbe
Maybe you should remove this link since you just told the whole wide web where you live... I assume. But then again; assumption is the mother of all f**k ups.
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 - Longfonds / luchtkwaliteit (Dutch only)

Post by EdwinK »

HansieNL used the address from the Longfonds, not his.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
EastXIII
Posts: 29
Joined: Monday 08 October 2018 13:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Dashticz - Module - Longfonds / luchtkwaliteit (Dutch only)

Post by EastXIII »

Should have known... Apologies!
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Dashticz - Module - Longfonds / luchtkwaliteit (Dutch only)

Post by jake »

EdwinK wrote:HansieNL used the address from the Longfonds, not his.
No wonder that it worked well....


... Just kidding
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 - Longfonds / luchtkwaliteit (Dutch only)

Post by EdwinK »

tried again, still not working for me :(
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
BlueMotion
Posts: 10
Joined: Thursday 04 June 2020 15:10
Target OS: NAS (Synology & others)
Domoticz version: 2020.2
Location: Subtropical Scandinavia (Fryslan)
Contact:

Re: Dashticz - Module - Longfonds / luchtkwaliteit (Dutch only)

Post by BlueMotion »

Works like a a charm. Except the coloring part.

Code in config.js

Code: Select all

config['longfonds_zipcode'] = '8888AA';
config['longfonds_housenumber'] = '11';

blocks['longfonds'] = {
  title: 'Longfonds',
  switch: true,
  width: 3,
}
Besides the Longfonds I also have a Co2 Sensor, the PM10 and PM25 sensor.
For those sensors I configured the coloring based on the luchtkwaliteitsindex (air quality index)
https://www.luchtmeetnet.nl/informatie/ ... ndex-(lki)

Code: Select all

// pm25
function getStatus_124(block){
var idx = block.idx;
var device = block.device;
   if(parseFloat(device['Data'])<10){
      block.addClass='kleurStatus1';
   }
   if((parseFloat(device['Data'])>=10) && (parseFloat(device['Data'])<15)){
      block.addClass='kleurStatus2';
   }
      if((parseFloat(device['Data'])>=15) && (parseFloat(device['Data'])<20)){
      block.addClass='kleurStatus3';
   }
      if((parseFloat(device['Data'])>=20) && (parseFloat(device['Data'])<30)){
      block.addClass='kleurStatus4';
   }
      if((parseFloat(device['Data'])>=30) && (parseFloat(device['Data'])<40)){
      block.addClass='kleurStatus5';
   }
      if((parseFloat(device['Data'])>=40) && (parseFloat(device['Data'])<50)){
      block.addClass='kleurStatus6';
   }
      if((parseFloat(device['Data'])>=50) && (parseFloat(device['Data'])<70)){
      block.addClass='kleurStatus7';
   }
      if((parseFloat(device['Data'])>=70) && (parseFloat(device['Data'])<90)){
      block.addClass='kleurStatus8';
   }
      if((parseFloat(device['Data'])>=90) && (parseFloat(device['Data'])<100)){
      block.addClass='kleurStatus9';
   }
   if(parseFloat(device['Data'])>=100)  {
      block.addClass='kleurStatus10';
   }
}
With a link to the coloring in the custom.css

Code: Select all

/* kleuren voor luchtkwaliteit (PM10, PM25, Longfonds) */

.kleurStatus1 {
  color: royalblue !important;
}
.kleurStatus2 {
  color: cornflowerblue !important;
}
.kleurStatus3 {
  color: skyblue !important;
}
.kleurStatus4 {
  color: lightyellow !important;
}
.kleurStatus5 {
  color: khaki !important;
}
.kleurStatus6 {
  color: yellow !important;
}
.kleurStatus7 {
  color: orange !important;
}
.kleurStatus8 {
  color: darkorange !important;
}
.kleurStatus9 {
  color: orangered !important;
}
.kleurStatus10 {
  color: red !important;
}
The problem I have is that the longfonds has no idx number or whatsoever. Does any know how to color the longfonds block based on the 0-11 (great to bad) classes?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest