Giter Site home page Giter Site logo

lastlocalcase-sg's Introduction

lastlocalcase-sg - Last Local COVID-19 Case in Singapore

A webpage showing the number of days since the last local COVID-19 case in Singapore.

This project is no longer supported as Singapore is no longer aiming for 0 cases.

Why did I make this?

I simply made it because I like streaks and there wasn't a easy place I could find that told me how many days we've had in Singapore since our last COVID-19 case.

How does it work?

Unfortunately MoH doesn't have an API for their daily COVID-19 updates. I simply scrape the data hourly from this site: https://www.moh.gov.sg/covid-19/past-updates

Useful endpoints

I've included some useful endpoints in case you want to use the data yourself.

Basic Text

A text based response with only the number of days since the last case.

URL: https://lastlocalcase.sg/text

Usage:

curl https://lastlocalcase.sg/text
2

Lightweight JSON

A lightweight JSON response with the number of days since the last case and when the last case was detected.

URL: https://lastlocalcase.sg/json

Usage:

curl https://lastlocalcase.sg/json
{
    "streak": 2,
    "streak_start": "01 Apr 2021"
}

Raw data

The raw JSON data used to populate the data on the site.

URL: https://lastlocalcase.sg/cases.json

Usage:

curl https://lastlocalcase.sg/cases.json
{
    "cases": {
        "02 Apr 2021": 0,
        "01 Apr 2021": 0,
...snip...
    "lastupdated": "03 Apr 2021 14:27:49 UTC+8"
}%                      

lastlocalcase-sg's People

Contributors

artagel avatar

Stargazers

 avatar Koon avatar Chee Aun avatar JeremyTCD avatar

Watchers

James Cloos avatar  avatar

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.