-
Notifications
You must be signed in to change notification settings - Fork 1
Description
When I set up a device to track between 2 stations (on a Trip basis) and max_trips set to 7, the sensors periodically become unavailable.
Config
- Newtonville to South Station
- arrive: Newtonville
- depart: South Station
- max trips: 7
- South Station to Newtonville
- arrive: South Station
- depart: Newtonville
- max trips: 7
I am currently have these sensors active:
- from
- to
- train
- alerts
- departure time
- departure delay
- arrival time
- arrival delay
- status
- alerts
Issue
The sensors start the day receiving data but then eventually, the number of indicies in the Next attribute for various sensors goes down towards 0, or the sensors themselves become unavailable. Eventually, either the main sensor comes on the next day, or late in the evening, and sometimes more of the Next entries also come back.
My hunch is that this is due to the polling rate which would be:
I'm being very rough with this, assuming one request per sensor per train
2 devices * 10 sensors / device * 8 requests / sensor * 3 requests / minute = 480 requests / minute
However, this is well under the 1000/min X-API rate limit so I may be off about this.