Use Broadastify API to see if feed is online, use for stream handoffs during outages for multi-site nodes?

hruskacha

Member
Premium Subscriber
Joined
Nov 9, 2020
Messages
291
Location
Muskegon
I want to expand my scanner to another location / PC. My primary scanner PC uses SDRTrunk and I thought it would be cool if there was a way for streaming programs to see if a feed is being fed, and have the ability to allow a seamless transition to another scanner that has the feed info and credentials provided during the event of an outage.

I monitor two sites with heavy traffic on MPSCS, Muskegon county and Ottawa County, and If I set up another remote node, I would want to have the ability for the second node to drop the Ottawa Site and start streaming Muskegon immediately if it sees the stream went offline...
 

lynchy135

Member
Feed Provider
Joined
Jul 31, 2019
Messages
156
I want to expand my scanner to another location / PC. My primary scanner PC uses SDRTrunk and I thought it would be cool if there was a way for streaming programs to see if a feed is being fed, and have the ability to allow a seamless transition to another scanner that has the feed info and credentials provided during the event of an outage.

I monitor two sites with heavy traffic on MPSCS, Muskegon county and Ottawa County, and If I set up another remote node, I would want to have the ability for the second node to drop the Ottawa Site and start streaming Muskegon immediately if it sees the stream went offline...
It’s a bit of a work around, but you could use Tailscale or Zerotier to set up a VPN between the two nodes. Not sure how much you like to code, but Tailscale has python client that you can query if the other node is online. This will only tell you if the node is up. You may be able to query SDRTrunk’s log file to see if its feeding correctly and then decide to failover.

The other option is screen scraping the html for the the value of your feed’s status in the table.
 
Top