ARCHIVED JANUARY 2022
Move do_check_data() definition up.
v0.3.1
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
.
config.json
(example) is a JSON file with the following data.
alert_suburbs
is a list of suburbsalert_buses
is a list of bus route numbersalert_trains
is a list of train linesalert_trams
is a list of tram route numberspushcut_url
is a string containing the Pushcut Webhook URLpushcut_devices
is an optional list of device names to receive alerts; if this is missing or blank, all devices on your account will receive alertsCreate 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 is from the Victorian Department of Health and licenced under the Creative Commons Attribution 4.0 International licence (CC-BY-4.0).
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/.