Polling Home Front Command

1 view
Skip to first unread message

Daniel Szmulewicz

unread,
Oct 11, 2023, 9:17:23 AM10/11/23
to Clojure Israel
Hello everyone,

The Home Front Command (Pikud Haoref) is providing an app for Android and iOS that will send alerts such as incoming missiles or intrusion of hostile aircraft. That app does everything most people need, nonetheless unofficial clients have sprung up to to provide alternative ways to present the data. For example, the website Tzeva Adom will display the alerts on a map.
If you are a developer, you might want to poll the endpoint yourself for specific needs. The one thing to note is that the endpoint doesn't provide streaming data: you need to poll it. Polling in Clojure can be done with core.async in a rather elegant way. I made a gist that shows how to do just that.

Stay safe, 

Daniel

Reply all
Reply to author
Forward
0 new messages