Skip to content

zdavatz/covid2019_ch_map

Repository files navigation

covid2019 MAP of Switzerland

Create a map of Switzerland and plot the COVID19 data on the map.

Use Cases

  1. Use the data from daenuprobst. He parses that data from the BAG Twitter feed.
  2. Show the increase in % by Canton
  3. Generate a png file.
  4. Use Twitter API to post the generated PNG on your timeline.
  5. Configure Twitter API so you can add some static text/hashtag to every tweet.
  6. Tweet is being posted if there is new data from daenuprobst.
  7. Use t to create credentials.

Configuration

  • Create ".env" file with Twitter App credentials, you can get it from here:
TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_CONSUMER_TOKEN_KEY=
TWITTER_CONSUMER_TOKEN_SECRET=

Running Modes

Switch between Development and Production mode with simple switch in "main.js". Production mode to publish the tweet to twitter.

    App.isProduction = true;

Run

$ npm i
$ node main.js

Software used to build the svg images

https://github.com/interactivethings/swiss-maps

License

GPLv3.0

Resources

About

Create a map of Switzerland and plot the COVID19 data on the map.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published