{"id":23167642,"url":"https://github.com/weareblahs/covidcases","last_synced_at":"2025-04-04T22:15:00.481Z","repository":{"id":37371003,"uuid":"460860284","full_name":"weareblahs/covidcases","owner":"weareblahs","description":"Straightforward page that shows only the COVID-19 cases.","archived":false,"fork":false,"pushed_at":"2024-10-29T12:21:28.000Z","size":10235742,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T14:50:01.591Z","etag":null,"topics":["covid-19","covid-19-cases","covid-19-data","tracker","website"],"latest_commit_sha":null,"homepage":"https://weareblahs.github.io/covidcases","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weareblahs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-18T13:17:46.000Z","updated_at":"2024-10-29T12:21:32.000Z","dependencies_parsed_at":"2023-12-24T06:52:35.344Z","dependency_job_id":"59f75078-9a3b-49da-86d0-aa0fab5145fc","html_url":"https://github.com/weareblahs/covidcases","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weareblahs%2Fcovidcases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weareblahs%2Fcovidcases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weareblahs%2Fcovidcases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weareblahs%2Fcovidcases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weareblahs","download_url":"https://codeload.github.com/weareblahs/covidcases/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256108,"owners_count":20909240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["covid-19","covid-19-cases","covid-19-data","tracker","website"],"created_at":"2024-12-18T02:31:34.546Z","updated_at":"2025-04-04T22:15:00.456Z","avatar_url":"https://github.com/weareblahs.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!TIP]\r\n\u003e _(Please note that if you see this on https://weareblahs.github.io/covidcases, that means that the website isn't ready yet. Refresh in a minute.)_\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eSee the screenshot of the website by expanding this\u003c/summary\u003e\r\n\u003cbr\u003e\r\n\u003cimg src=\"https://github.com/weareblahs/covidcases/assets/37889443/6eab78b3-5af9-4076-88c0-411b6aeb126d\"\u003e\r\n\r\n\u003ch1\u003e\u003ccenter\u003eYes. This is how the website looks like. Nothing more, nothing less. Just the numbers.\u003c/center\u003e\u003c/h1\u003e\r\n\u003c/details\u003e\r\n\r\n# What's This?\r\n\r\nThis is a no-nonsense, straight-to-the-point page which shows only the new cases of COVID-19 in Malaysia.\r\n\r\n## Data included\r\n\r\n- COVID-19 Cases\r\n\r\n- COVID-19 Deaths\r\n  \r\n## Technical specs?\r\n  \r\nUses GitHub actions for all the processing with the batch scripts, which replaces the `No data` string (and date string) in the HTML file to the latest cases.\r\n  \r\n# Other projects / stuffs used in this project\r\n\r\n- [samleong123/COVID-19-Malaysia-API](https://github.com/samleong123/COVID-19-Malaysia-API) ([API](https://covid-19.samsam123.name.my/api/cases?date=latest) / [API documentation](https://covid-19.samsam123.name.my/api.html)) (Main source for data)\r\n  \r\n  - Data source based on MoH-Malaysia/covid19-public\r\n\r\n- [jq](https://github.com/stedolan/jq) (used to parse JSON data)\r\n\r\n- sed (used to find and replace placeholders)\r\n\r\n- ImageMagick (used to generate images)\r\n\r\n- Helvetica Neue (used to generate images / website default font) ([Version used](https://github.com/ifvictr/helvetica-neue))\r\n\r\n- [add-to-homescreen](https://github.com/cubiq/add-to-homescreen) (used for PWA \"add to home screen\" bottom pop-up when visiting website)\r\n\r\n- [tweepy](https://github.com/tweepy/tweepy) (used for Twitter bot updating)\r\n\r\n# App icon / Favicon\r\n\r\nCredits to [clipartpng.com](https://clipartpng.com/?3346,blue-face-mask-clipart-png-image) for the original icon. Modified to mask the icon.\r\n\r\n# Website versions\r\n\r\nThere are 2 versions of this website:\r\n\r\n- Static version. This version contains a HTML file that auto-updates through GitHub Actions every 12 hours. Visit it [here](https://weareblahs.github.io/covidcases). (Available for both nationwide and states)\r\n\r\n- Realtime version. Your browser will contact the API every visit and use it to update the status. Refresh it to get new information. Visit it [here](https://weareblahs.github.io/covidcases/dynamic). (Available for both nationwide and states)\r\n\r\n## Additional versions\r\n\r\n- Twitter version, which is available on [@MYCovidCasesBot](https://twitter.com/MYCOVIDCasesBot). Tweets the latest cases, along with images as a thread. Runs everyday 10am (MYT).\r\n\r\n- Mastodon version, which is available on [@myccbot](https://botsin.space/@myccbot) via botsin.space. Posts the latest cases, along with images as posts. Runs everyday 10am (MYT).\r\n\r\n## Data types\r\n\r\n- Nationwide\r\n\r\n- States\r\n  \r\n  - A list of states can be triggered by clicking / tapping the \"More statistics\" page.\r\n\r\n### Data availability\r\n\r\n| Data type  | Cases | Deaths |\r\n| ---------- | ----- | ------ |\r\n| Nationwide | Yes   | Yes    |\r\n| State      | Yes   | Yes    |\r\n\r\n### Data sources\r\n\r\n| Data type  | Source                                                                                                                                                                           |\r\n| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\r\n| Nationwide | [samleong123/COVID-19-Malaysia-API](https://github.com/samleong123/COVID-19-Malaysia-API) (hosted by @samleong123, [documentation](https://covid-19.samsam123.name.my/api.html)) |\r\n| States     | [samleong123/COVID-19-Malaysia-API](https://github.com/samleong123/COVID-19-Malaysia-API) (hosted by @samleong123, [documentation](https://covid-19.samsam123.name.my/api.html)) |\r\n\r\n# Save as image\r\n\r\nAfter generating HTML pages, it will generate images with the current cases / deaths numbers through ImageMagick, which are also used for social media integration. To save it, go to the website, then click / tap on \"Save as image\".\r\n\r\n## Social Media Integration\r\n\r\nAn image of cases should be popped up if you share this website on Facebook or Twitter when you put this URL (`https://weareblahs.github.io/covidcases` ).\r\n\r\n- Same thing as the Deaths one, but only when you put `https://weareblahs.github.io/covidcases/deaths`  as URL.\r\n\r\n# Dark mode\r\n\r\nIf you enabled dark theme on systemwide settings, then you should get dark mode when visiting this page on your device. Should be working on most modern browsers (Tested browsers including Chronium-based ones and Safari).\r\n\r\n# Automation (updating cases)\r\n\r\n This page will update every hour.\r\n\r\n## Run with GitHub Actions under your own repository\r\n\r\nFork it, then run the \"Update cases\" workflow under Actions.\r\n\r\n### Run locally (for Linux-based computers)\r\nFirst, **make a copy or clone the repository** if you haven't did that yet.\r\n\r\n#### Before you run\r\nMake sure you have the presiqutes installed.\r\n\r\n```bash\r\nsudo apt-get install jq imagemagick\r\n```\r\n#### Start updating\r\nFirst, update the cases:\r\n```bash\r\nchmod +x update.sh\r\n./update.sh\r\n```\r\nThen, update the state cases:\r\n```bash\r\nchmod +x updatestate.sh\r\n./updatestate.sh\r\n```\r\n\r\n#### After you run?\r\nPlease note that if you want to host this in your web server, do note that the root directory of this repository is the root directory of the website itself. If you want to visit locally, you can just directly open `index.html`.\r\n\r\n# Future plans\r\n\r\n(currently no plans)\r\n\r\n# Incorrect data or \"No Data\"?\r\n\r\nCreate an issue describing your problem.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweareblahs%2Fcovidcases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweareblahs%2Fcovidcases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweareblahs%2Fcovidcases/lists"}