Read the statement by Michael Teeuw here.
-
@Alvinger Everything is working great now! Thank you for the fast response to my issue! I’ll use this module a lot from now on :smiling_face_with_open_mouth:
-
@Alvinger i added that config to another module with the comment and got what was expected. 1 route structure in an array
-
-
@Zapman You’re welcome. Do let me know if you see anything you want to add/change.
-
@Alvinger Thank You for a brilliant module that works like a charm.
Do You have a simple fix for limiting updates?
I want frequent updates for my bus stop when present, and none when I’m not present…
I have a PIR sensor hooked up. Possible to use that? Suspend module?
OR a simple schedule as proposed by Trafiklab:
https://www.trafiklab.se/docs/using-trafiklab-data/best-practices/limiting-requests/Not a high prio request…
Cheers
/Sven -
@SvenT I would post an issue to the module GitHub issues page to engage the author
-
@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
-
-
@Alvinger I see.
My local bus station has departures every 3 minutes almost all day. :-(
I’ll tinker with the change profile module to see if I can pause the Reslust module.Cheers
/Sven -
@SvenT I think that if you just hide the module it will stop updating (but I’m not sure). Try it.
-
Has anyone gotten ResRobot v2.1 to work?
If so how does your config look like?I’m trying {from: “740000260”, to: “740000120”}, the rest is default except apiKey of course.