Coder Social home page Coder Social logo

zdavatz / covid2019_ch_map Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 3.16 MB

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

License: GNU General Public License v3.0

HTML 21.60% JavaScript 78.40%
covid-2019 switzerland map data twitter api

covid2019_ch_map's Introduction

ypm

ywesee Pharma Monitor

Use Cases

  1. Monitor RSS Feeds in file rss_feeds.txt
  2. Monitor the RSS Feeds based on keywords in file keywords.txt
  3. Make Hash-Tags out of Keywords and make Hash-Tags clickable.
  4. Sort monitored articles by country.
  5. Show article count by country.
  6. Keywords and RSS-Feed-Links must be stored in a DB.

Running the App

meteor npm i
meteor

covid2019_ch_map's People

Contributors

dependabot[bot] avatar hamzamu avatar zdavatz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

covid2019_ch_map's Issues

Proposal: use official data and map

This is a proposal

  1. download official data https://github.com/openZH/covid_19
  2. use the attached KML: set the kanton polygon to the corresponding color value
    kantone_50m.zip
  3. upload the KML to a webspace , keep the URL to the file stable
  4. import it to the official browser http://map.geo.admin.ch/?layers=KML||http://mydomain.com/file.kml
  5. embed share map etc according to https://help.geo.admin.ch/#/?ids=52&lang=en

-everytime you update the kml, map is updated

  • combine info with +800 available layers

If swiss.png is not there it is not being created

If swiss.png is not there it is not being created

~/.software/covid2019_ch_map> node main.js 
fs.js:119
    throw err;
    ^

Error: ENOENT: no such file or directory, open 'swiss.png'
    at Object.openSync (fs.js:448:3)
    at Object.readFileSync (fs.js:348:35)
    at Object.<anonymous> (/home/zeno/.software/covid2019_ch_map/main.js:25:35)
    at Module._compile (internal/modules/cjs/loader.js:799:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
    at Module.load (internal/modules/cjs/loader.js:666:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
    at Function.Module._load (internal/modules/cjs/loader.js:598:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:862:12)
    at internal/main/run_main_module.js:21:11

TypeError: Cannot read property 'length' of undefined

Cleaning data for the sheet
/home/zeno/.software/covid2019_ch_map/main.js:101
      if (key.canton.length === 2) {
                     ^

TypeError: Cannot read property 'length' of undefined
    at /home/zeno/.software/covid2019_ch_map/main.js:101:22
    at arrayMap (/home/zeno/.software/covid2019_ch_map/node_modules/lodash/lodash.js:639:23)
    at Function.map (/home/zeno/.software/covid2019_ch_map/node_modules/lodash/lodash.js:9554:14)
    at Request._callback (/home/zeno/.software/covid2019_ch_map/main.js:100:22)
    at Request.self.callback (/home/zeno/.software/covid2019_ch_map/node_modules/request/request.js:185:22)
    at Request.emit (events.js:315:20)
    at Request.<anonymous> (/home/zeno/.software/covid2019_ch_map/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:315:20)
    at IncomingMessage.<anonymous> (/home/zeno/.software/covid2019_ch_map/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:421:28)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.