COVID-19 Norge
https://twitter.com/covid19norge
Twitter bot for tracking live COVID-19 statistics in Norway.
The bot autoposts live updates with a Twitter developer account:
twitter:
auth:
consumer_key: <CONSUMER_KEY>
consumer_secret: <CONSUMER_SECRET>
access_token: <ACCESS_TOKEN>
access_token_secret: <ACCESS_SECRET>
https://github.com/frefrik/covid19norge-data (accessed through covid19norge.no/api)
- Live updates
- Tested
- Confirmed cases
- Deaths
- Admissions
- Respiratory
- Vaccine doses
- Smittestopp
- Graphs
- Tested
- Confirmed cases
- Dead
- Hospitalized
- Vaccine doses
- Smittestopp
- RSS
- News from FHI (Folkehelseinstituttet)
- News from the goverment (Regjeringen)
version: '3.8'
services:
bot:
container_name: covid19norge-twitter
image: frefrik/covid19norge-twitter:latest
restart: unless-stopped
environment:
- TZ=Europe/Oslo
volumes:
- ./config:/app/bot/config
- ./data:/app/bot/data
$ mkdir -p config \
&& wget https://raw.githubusercontent.com/frefrik/covid19norge-twitter/main/config/config.dist.yml -O config/config.yml
$ docker-compose up -d
$ git clone https://github.com/frefrik/covid19norge-twitter.git
$ cd covid19norge-twitter/
$ cp config/config.dist.yml config/config.yml
$ docker-compose up -d
$ pip install -r requirements.txt
$ cp config/config.dist.yml config/config.yml
$ screen -dmS covid19norge-twitter python clock.py
$ screen -r covid19norge-twitter
If config.yaml
is updated while bot is running, the container must be restarted to use the updated config.
$ docker restart covid19norge-twitter
Use docker logs -f covid19norge-twitter
to show informational logs.