Code: Select all
blocks[alarmmeldingen'] = {
timeformat: 'dd HH:MM'
}
https://momentjscom.readthedocs.io/en/l ... 01-format/
Moderators: leecollings, htilburgs, robgeerts
Code: Select all
blocks[alarmmeldingen'] = {
timeformat: 'dd HH:MM'
}
Have you tried with a capital h -> Hoofddorp ?
Yes, this seems to help, however all minutes are not displayed correctly too and all on 05 minutes?PietjePuck wrote: Tuesday 28 April 2020 15:36 There is a small error in the default timeformat in the alarmeldingen.js.
The default time format should be this in order to show two digits :
timeformat: 'ddd D MMM HH:MM'
Instead of
timeformat: 'ddd d MMM HH:MM'
Today it shows apr. 2 time alarmmelding
Code: Select all
blocks['alarmmeldingen'] = {
title: '112 meldingen Doetinchem',
rss: 'https://alarmeringen.nl/feeds/city/doetinchem.rss',
show_lastupdate: true,
width: 12,
refresh: 300, //refresh rate in seconds
results: 5, //number of recent results to show
image: '../custom/img/112meldingen.png'
}No, I've changed it in between... it is the same now.Lokonli wrote: Saturday 20 June 2020 10:19 The title in the actual result ('P2000 brandweer meldingen') is not the same as in the block definition ('112 meldingen Doetinchem')
Can it be related to that? (do you maybe redefine the block somewhere?)
Code: Select all
function dataAlarmInfo(me, data) {
console.log(data);
var alarmobject = me.block;
var html = '';Code: Select all
var alarmmeldingen = {
rss: 'https://alarmeringen.nl/feeds/region/brabant-noord.rss',
city: 'Oss,Heesch,Berghem,Traumaheli',
show_lastupdate:true,
width:12,
interval: 180,
results: 5}
No need to copy alarms.js I would say.Larsoss wrote: Wednesday 16 September 2020 18:59 thanks for your script. I'm playing around with it, and it works ... but not as desired .. I live in berghem, village in the municipality of oss ...
But I get to see everything from the RSS feed?
I copied the alarms.js into my .js folder as said, and created the block neatlyCode: Select all
var alarmmeldingen = { rss: 'https://alarmeringen.nl/feeds/region/brabant-noord.rss', city: 'Oss,Heesch,Berghem,Traumaheli', show_lastupdate:true, width:12, interval: 180, results: 5}
columns[2]['blocks'] = [buttons.buienradar,calendars.f1,'alarmmeldingen','garbage'];
i see the block.
so what did i wrong?
Code: Select all
blocks['alarmmeldingen'] = {
rss: 'https://alarmeringen.nl/feeds/region/brabant-noord.rss',
city: 'Oss,Heesch,Berghem,Traumaheli',
show_lastupdate:true,
width:12,
interval: 180,
results: 5
}
columns[2]['blocks'] = [buttons.buienradar,calendars.f1,'alarmmeldingen','garbage'];
Code: Select all
var alarmmeldingen = {
rss: 'https://alarmeringen.nl/feeds/region/brabant-noord.rss',
city: 'Oss,Heesch,Berghem,Traumaheli',
show_lastupdate:true,
width:12,
interval: 180,
results: 5
}
columns[2]['blocks'] = [buttons.buienradar,calendars.f1, alarmmeldingen,'garbage'];
The parameter 'city' has been renamed to 'filter' to better reflect it's purpose.Larsoss wrote: Thursday 17 September 2020 21:10 ok i took the top one because it is the best way according to you. No problem we will continue with that.
unfortunately, if I use this then I also get other places .. And that is not the intention .. Where does it go wrong?
Users browsing this forum: Google [Bot] and 1 guest