Page 2 of 4

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Thursday 19 March 2020 19:58
by PietjePuck
Change

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

To

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

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Thursday 19 March 2020 19:59
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

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Thursday 19 March 2020 20:28
by HansieNL
Don't know what changed, but in the latest beta it's working :D

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Thursday 19 March 2020 20:29
by Lokonli
That's what I like to hear :)

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Thursday 19 March 2020 21:32
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',

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Friday 20 March 2020 13:01
by Alfagek
Thanks PietjePuk and Lokonli. Running nice over here :D

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Friday 20 March 2020 18:36
by HansieNL
Is it possible to remove the seconds from the time? Or can I do that with css?

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Friday 20 March 2020 19:17
by PietjePuck
I need to change the code for this

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Friday 20 March 2020 19:19
by PietjePuck
:lol: I am a very punctual guy

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Friday 20 March 2020 19:55
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?

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Sunday 22 March 2020 9:57
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 2013 times
and the error:

Aantekening 2020-03-22 095528.jpg
Aantekening 2020-03-22 095528.jpg (4.42 KiB) Viewed 2013 times
please advice

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Sunday 22 March 2020 10:02
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 '

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Sunday 22 March 2020 10:11
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

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Sunday 22 March 2020 10:48
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

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Sunday 22 March 2020 11:31
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

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Sunday 22 March 2020 11:53
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.

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Sunday 22 March 2020 11:58
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

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Sunday 22 March 2020 12:37
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 1989 times

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Sunday 22 March 2020 17:34
by Lokonli
Done

Re: Dashticz - Module - 112 Meldingen (Dutch)

Posted: Tuesday 31 March 2020 18:13
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 1888 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];