~claudinec/vic-exposure-site-alert

Filtered Victorian Covid-19 exposure site alerts
b9611e8f — Claudine Chionh 3 years ago
ARCHIVED JANUARY 2022
9c381d15 — Claudine Chionh 3 years ago
Move do_check_data() definition up.
db3f4cbb — Claudine Chionh 3 years ago
v0.3.1

clone

read-only
https://git.sr.ht/~claudinec/vic-exposure-site-alert
read/write
git@git.sr.ht:~claudinec/vic-exposure-site-alert

You can also use your local clone with git send-email.

#Filtered Victorian Covid-19 exposure site alerts

ARCHIVED JANUARY 2022 as the Victorian government is no longer updating this list publicly.

Query the Victorian Government Covid-19 exposure site data for chosen suburbs and sends an alert for each new exposure site added via Pushcut for iOS.

This package provides a command exposure-alert that can be run the query once or schedule the query to run at regular intervals until a specified ending time. Alternatively, you can schedule the query to repeat indefinitely by calling exposure-alert once from cron.

#Configuration

config.json (example) is a JSON file with the following data.

  • Suburbs and (optional) public transport to be queried
    • alert_suburbs is a list of suburbs
    • alert_buses is a list of bus route numbers
    • alert_trains is a list of train lines
    • alert_trams is a list of tram route numbers
  • Pushcut settings
    • pushcut_url is a string containing the Pushcut Webhook URL
    • pushcut_devices is an optional list of device names to receive alerts; if this is missing or blank, all devices on your account will receive alerts

#Pushcut

Create a notification and copy the Webhook URL to pushcut_url in config.json. The title and text of the notification will be replaced by details of exposure sites. Add whatever actions you want to the notification -- I have one to open the table of exposure sites.

#Data source

Data is from the Victorian Department of Health and licenced under the Creative Commons Attribution 4.0 International licence (CC-BY-4.0).

#Licence

Copyright (C) 2021 Claudine Chionh

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Do not follow this link