Giter Club home page Giter Club logo

pandemieende's Introduction

Pandemieende Schweiz und Liechtenstein

Der Quelltext der Webseite Pandemieende Schweiz und Liechtenstein.

Technologie

Zum Einsatz kommen ausschliesslich HTML, CSS und JavaScript. Es handelt sich um eine statische Webseite, die keine serverseitigen Komponenten benötigt.

Änderungen

Alle Änderungen nach der Erstveröffentlichung auf GitHub werden in einem separaten Änderungsprotokoll dokumentiert.

pandemieende's People

Contributors

mcpringle avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pandemieende's Issues

Including other countries?

Hi there,

I was wondering if I could implement / customize this repo to have it in my own country and deploy it to a github page or a domain?
My approach would be a bit different though, instead of manually (? that's actually an assumption, that you manually update now the data) updating the vaccination data, I want to create a github action, that would run every day to get the covid data from an external service, and populate it to data.json , somehow similarly:

const request = require('request');
const Papa = require('papaparse');
const fs = require('fs');
const HUN_POPULATION = 9772756

request.get('https://covid.ourworldindata.org/data/owid-covid-data.csv', function (error, response, body) {
    if (!error && response.statusCode == 200) {
        const hunOwidData = Papa.parse(body, {
            header: true,
        })
            .data.filter(data => data.iso_code === 'HUN');

        const hunData = {
            lastUpdate: '2021-04-09',
            history: hunOwidData.map(owid => ({
                statusDate: owid.date,
                vaccinationRate: (+owid.total_vaccinations / HUN_POPULATION) * 100,
                vaccinatedPersons: +owid.new_vaccinations,
                administeredVaccineDoses: +owid.total_vaccinations,
            })).slice(Math.max(hunOwidData.length - 15, 1)),
        };
        fs.writeFileSync('data.json', JSON.stringify(hunData, null, 2))
        console.log('data written');
    }
});

I could also introduce this at this repo, so no manual (again, just an assumption) updates would be necessary.

Edit: the code example above is just a sketch to demonstrate how I would update the data.

pandemieende.de is out-of-date

Moin,
for the last few days, pandemieende.de is always showing 155 days as the time until 70% immunization in Germany.
This is probably because the used /germany_vaccinations_timeseries_v2.tsv-file only includes data until 2021-04-16.
How is this file kept up-to-date? If this is done manually, I would suggested just loading the data straight from https://impfdashboard.de/static/data/germany_vaccinations_timeseries_v2.tsv.
I'm sorry if I'm in the wrong place for the .de page, is there a seperate repository for that?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/add-to-project.yml
  • actions/add-to-project v1.0.2

  • Check this box to trigger a request for Renovate to run again on this repository

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.