@Populus According to Samtrafikens webpage Kalmar länstrafik is part of their network and should be included. Is there a specific station I could try to look up?
Read the statement by Michael Teeuw here.
Posts made by Alvinger
-
RE: MMM-ResRobot - Public transport information for Sweden
-
RE: MMM-ResRobot - Public transport information for Sweden
@Populus ResRobot covers all of Sweden as far as I know.
-
RE: MMM-ResRobot - Public transport information for Sweden
@noorm91 Please post your entire config for ResRobot (with the secrets masked).
-
RE: MMM-ResRobot - Public transport information for Sweden
@SvenT I think that if you just hide the module it will stop updating (but I’m not sure). Try it.
-
RE: MMM-ResRobot - Public transport information for Sweden
@SvenT I have experimented with a number of algorithms for minimizing updates but ended up with the one implemented. The current algorithm is:
-
If initial request, get updates from Trafiklab
-
If the first item in departure list (per routeId) is “old”, i.e. before cutoff time (now + skipMinutes), clear list (for routeId) and get updates from Trafiklab
What the above means is that updates only occur ON ACTUAL DEPARTURES, e.g. if a bus departs every 15 minutes the module will get updates from Trafiklab every 15 minutes (per routeId). In rush hour this often means that the module get updates every minute but at night it might only update once per 60 minutes or longer (per routeId). This behavior has the benefit of automatically adjusting to rush hour and slow hours without user intervention or tweaking.
If only one routeId is configured, the number of Trafiklab updates is usually way below the Trafiklab suggestions.
/j
-
-
RE: mess calendar module (solved for me)
@hango said in mess calendar module (solved for me):
with absolute time format you can play for relative dates on urgency, but for all time relative at line 366 in calendar.js instead
timeWrapper.innerHTML = this.capFirst(moment(event.startDate, "x").calendar());
must be
timeWrapper.innerHTML = this.capFirst(moment(event.startDate, "x").fromNow());
see the diference between first and third picture
Agreed, I spotted the same when I looked at your pictures. Changing calendar() to fromNow() will solve your issue. I will create a PR for this fix but will also try to improve other things that this discussion has brought on.
-
RE: CalendarEXT2 and Calendar (default)
@ankonaskiff17 In most cases the default values are set so that you do not need to change more than a few values to adjust to your needs. It makes no sense copying the entire config just to set the values to the default ones. That said, yes, you can copy the default block and change it to “config”, just remember to set the other module options appropriately.
@sdetweil has put significant effort into the calendar module and done a great job of fixing all the quirks so expect the default calendar module to be really great in the next MM version! Just be sure to move all your config stuff to config.js so you can upgrade without issues.
-
RE: Default Calendar Module
@ankonaskiff17 you can always use the Google holidays calendars. They have country-specific calendars for most countries.
google holidays -
RE: Default Calendar Stopped Showing Recurring Events
@sdetweil Aah, missed that one. But you still have to address the issue with calendarfetcher returning “only” maximumEntries even if broadcastPastEvents is set.
-
RE: Default Calendar Stopped Showing Recurring Events
@sdetweil It fixes the result while also retaining backward compatibility. From my viewpoint the cause is that calendarfetcher.js not only fetches but also filters. It should just fetch and let calendar.js do the filtering. But that would require substantial changes to both files. My “fix” is just a few lines of code.
But I am all for fixing the cause!