Dashticz - Module - 112 Meldingen (Dutch) Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

PietjePuck
Posts: 20
Joined: Monday 16 March 2020 15:51
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by PietjePuck »

Change

columns[1]['blocks'] = ['alarmmeldingen']

To

columns[1]['blocks'] = [alarmmeldingen]
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by Lokonli »

Define your block as follows:

Code: Select all

blocks['alarmmeldingen'] = {
  rss: 'https://www.alarmeringen.nl/feeds/region/rotterdam-rijnmond.rss',
  filter: 'Poortugaal,Rhoon,Hoogvliet,Traumaheli,Pernis',
  show_lastupdate:true,
  width:12,
  interval: 180,
  results: 5}
(or as what PietjePuck is proposing)

city has been renamed to filter
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by HansieNL »

Don't know what changed, but in the latest beta it's working :D
Blah blah blah
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by Lokonli »

That's what I like to hear :)
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by HansieNL »

Lokonli wrote: Thursday 19 March 2020 19:49 If you want to remove the icon, add the following to your block definition:

Code: Select all

	icon: '',  //This are two tick-marks
Just found out that you can change the icon to your own image :D :D :

Code: Select all

    image: '../custom/img/siren.png',
Blah blah blah
Alfagek
Posts: 26
Joined: Sunday 09 February 2020 15:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Leeuwarden
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by Alfagek »

Thanks PietjePuk and Lokonli. Running nice over here :D
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by HansieNL »

Is it possible to remove the seconds from the time? Or can I do that with css?
Blah blah blah
PietjePuck
Posts: 20
Joined: Monday 16 March 2020 15:51
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by PietjePuck »

I need to change the code for this
PietjePuck
Posts: 20
Joined: Monday 16 March 2020 15:51
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by PietjePuck »

:lol: I am a very punctual guy
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by HansieNL »

I’m punctual on the minute ;)
All other blocks are using hh:mm. Than they’ll be in line with the rest then.
Maybe show seconds optional?
Blah blah blah
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by qwerk »

Hi, I am running dashticz of a synology webserveer. php 7.3 and apache 2.4 ( tried all combinations (php 5.6, 7.2 and apache 2.2)
I copies the same block as you provide

blocks['alarmmeldingen'] = {
rss: 'http://www.alarmeringen.nl/feeds/region ... jnmond.rss',
filter: 'Poortugaal,Rhoon,Hoogvliet,Traumaheli,Pernis',
show_lastupdate: true,
width:12,
icon: 'fas fa-bullhorn',
interval: 180,
results: 5,
}

this is my line

columns[3]['blocks'] = [buttons.buienradar,maps.a50,'garbage',buttons.webcamoprit,buttons.webcamtuin,buttons.webcamterras,'alarmmeldingen'];

In a browser the rss url works on the webserver. so no resolving issues orso.

on my dashticz web I only get:
Aantekening 2020-03-22 095610.jpg
Aantekening 2020-03-22 095610.jpg (6.56 KiB) Viewed 1470 times
and the error:

Aantekening 2020-03-22 095528.jpg
Aantekening 2020-03-22 095528.jpg (4.42 KiB) Viewed 1470 times
please advice
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 - 112 Meldingen (Dutch)

Post by EdwinK »

In your blocks, change

Code: Select all

columns[3]['blocks'] = [buttons.buienradar,maps.a50,'garbage',buttons.webcamoprit,buttons.webcamtuin,buttons.webcamterras,'alarmmeldingen'];
to

Code: Select all

columns[3]['blocks'] = [buttons.buienradar,maps.a50,'garbage',buttons.webcamoprit,buttons.webcamtuin,buttons.webcamterras,alarmmeldingen];
Remove the '
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by qwerk »

When I remove both the '
The whole column disappears.
When using var instead of blocks you are correct.
I tried both the var and the blocks option.

it has to be something stupid.
I added the alarmmeldingen.js
I added the line in dashticz.js
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by Lokonli »

qwerk wrote: Sunday 22 March 2020 10:11 When I remove both the '
The whole column disappears.
When using var instead of blocks you are correct.
I tried both the var and the blocks option.

it has to be something stupid.
I added the alarmmeldingen.js
I added the line in dashticz.js
I would advice to update to the latest beta, and follow the instructions in the manual:
https://dashticz.readthedocs.io/en/beta ... ingen.html
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by qwerk »

@lokonli I used "git fetch" but that does not update to the latests.
I removed dashticz, did a "git clone" beta. And copied my CONFIG.js

same error.
I installed dashticz on my domoticz server. and alarmmeldingen works !!!! ( I now have other issues)
So the problem is with my synology webserver.
I will search there
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by Lokonli »

qwerk wrote: Sunday 22 March 2020 11:31 @lokonli I used "git fetch" but that does not update to the latests.
I removed dashticz, did a "git clone" beta. And copied my CONFIG.js

same error.
I installed dashticz on my domoticz server. and alarmmeldingen works !!!! ( I now have other issues)
So the problem is with my synology webserver.
I will search there
git fetch doesn't update. Try git pull.

alarmeringen requires a working CORS proxy.

Did you configure PHP for Dashticz on your Synology correctly?

You can try using a public CORS server:

Code: Select all

config['default_cors_url'] = 'https://cors-anywhere.herokuapp.com/';
However, this server is not always running, so it would be better to use the internal CORS server.
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by qwerk »

I found my issue. In the php settings openssl was not activated.
I have a working alarmmeldingen.


thanks for your help and the git explanation
PietjePuck
Posts: 20
Joined: Monday 16 March 2020 15:51
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by PietjePuck »

HansieNL wrote: Friday 20 March 2020 18:36 Is it possible to remove the seconds from the time? Or can I do that with css?
I just changed the code to fulfill your request wait a bit until @lokonli will merge it in the beta.
112-sec.PNG
112-sec.PNG (118.9 KiB) Viewed 1446 times
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by Lokonli »

Done
toro
Posts: 47
Joined: Wednesday 09 August 2017 23:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - 112 Meldingen (Dutch)

Post by toro »

This is realy great, I like it a lot.
Thank you very much PietjePuck. And Lokonli for adding it to the beta.

Just a small request though. Is it possible to add the day in front of the time?
If you live in a town where not every day alerts are given, it is a little bit hard to track what happend when.
It is just a simple addition, I made it for myself. But would be nice to get this implemented in the release.
Alarmmeldingen with day.png
Alarmmeldingen with day.png (9.82 KiB) Viewed 1345 times
And realy great would be if it is possible to show it in the locale language.
As this only works in the Netherlands, that would be in Dutch ;-)

I did it like this (just a snippit):
Spoiler: show

Code: Select all

pubDate = pubDate.toString();
	switch(pubDate.split(' ')[0]) {
		case 'Sun':
			newDay = 'Zo';
			break;
		case 'Mon':
			newDay = 'Ma';
			break;
		case 'Tue':
			newDay = 'Di';
			break;
		case 'Wed':
			newDay = 'Wo';
			break;
		case 'Thu':
			newDay = 'Do';
			break;
		case 'Fri':
			newDay = 'Vr';
			break;
		case 'Sat':
			newDay = 'Za';
			break
	}
pubDate = pubDate.split(' ')[4];
pubDate = newDay + ' ' + pubDate.split(':')[0] + ':' + pubDate.split(':')[1];
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest