Skip to content

BUG: Devices with many active sensors a large number of max_trips become unavailable #26

@deconstructionalism

Description

@deconstructionalism

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.

Demo

Screen.Recording.2025-06-26.at.4.36.28.PM.mov

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions