This is a Twitter bot tracking pollution in Israel and posting when its values are abnormal.
Upon operation, the code queries svivaaqm.net
's API all stations in Israel
for levels of
- NO2
- SO2
- Benzene
as detailed in conf.py
and checks if the last hour's average is below what's
recommended by law.
If an abnormality is found, an image is rendered using placid.app
service
and posted to the Twitter account via Twitter's API.
- Post sequential reports as reply tweets.