Giter Club home page Giter Club logo

ossphilippines / covid19-tracker-cli Goto Github PK

View Code? Open in Web Editor NEW
279.0 17.0 46.0 8.64 MB

A console-oriented COVID-19 tracker with real-time updates for your favorite terminal. ๐Ÿ’ป๐ŸŒ๐Ÿ˜ท

Home Page: https://covid19-cli.wareneutron.com

License: GNU General Public License v3.0

JavaScript 4.60% TypeScript 95.40%
coronavirus coronavirus-tracking coronavirus-real-time coronavirus-info covid19 covid19-data curl cli corona coronavirus-tracker-cli covid19-tracker coronavirus-tracker command-line-tool command-line-interface real-time cmd terminal termux windows hacktoberfest

covid19-tracker-cli's Introduction

COVID-19 Tracker CLI mentioned in awesome coronavirus

Warning: This project is now under Open Source Software Philippines, this means that the URL of the project will change. Please update your links to the new URL: covid19-cli.ossph.org. Aside from that, the project will be put into maintenance mode. No new features will be added and only bug fixes will be accepted. Thank you!

by maintainer sponsors release star license

Banner

COVID-19 Tracker & CLI is an open-source NodeJS application for command line interface to track COVID-19 cases around the world. An optimized NodeJS application and a simple tracker with real-time updates from reliable data source. It Supports terminal for linux and macos, command prompt for windows, and termux for android.

๐Ÿ˜Ž Demo

Let's see it in action!

asciicast

๐Ÿ“– Documentation

The complete documentation can be found here:

docs

๐ŸŽฏ Contributing

Contributions are welcome, create a pull request to this repo and we will review your code. Please consider to submit your pull request to the dev branch. Thank you!

Read the project's contributing guide for more info.

๐Ÿ’ฌ Discussions

For any questions, suggestions, ideas, or simply you want to share your experience in using this project, feel free to share and discuss it to the community!

๐Ÿ› Issues

Please report any issues and bugs by creating a new issue here, also make sure you're reporting an issue that doesn't exist. Any help to improve the project would be appreciated. Thanks! ๐Ÿ™โœจ

๐Ÿ€ Sponsors and Supporters

Love what we do? Send us some coffees! โ˜•โ˜•โ˜•

Your coffee donation and support will us to continue working on open-source projects like this. ๐Ÿ™๐Ÿ˜‡

๐Ÿ“‹ Code of Conduct

Read the project's code of conduct.

๐Ÿ“ƒ License

COVID-19 Tracker & CLI is licensed under GNU General Public License v3.0.

๐Ÿ“ Author

COVID-19 Tracker & CLI is created by Waren Gonzaga, developed and maintained by OSS Philippines with the help of awesome contributors.

contributors


๐Ÿ’ป Made with ๐Ÿ’– and โ˜• by OSSPH

covid19-tracker-cli's People

Contributors

aesycos avatar alaasaadabdo avatar crudson avatar dependabot[bot] avatar fossabot avatar ianvizarra avatar jcads avatar jkga avatar mmixx avatar spmfox avatar tanuck avatar warengonzaga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

covid19-tracker-cli's Issues

Broken Images

Details

Some images are not showing in Readme.md. Please Refer to the screenshot below

image

Get Global History

Currently the /history/:country endpoint returns a great graph of a country's history, but I don't see a way to get the history graph for the entire world.

If this is possible I'd like to see how in the documentation.

If not, I suggest you default the /history endpoint to the global results.

the website is down

curl: (60) SSL: no alternative certificate subject name matches target host name 'covid19tracker.xyz'
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

please fix. I enjoy the service.

Revamp README

I'm going to revamp the README so it will look good for users.

Adding an indicator for short-term development

It would be good to have the percentage change relative to last week. That can tell if a country is on the right path.

Maybe a line like:

ฮ”% - last week X% - two weeks ago Y% - a month ago Z%

I think that's really helpful. The history graph is nice eye candy, but too coarse to draw conclusions.

security issues

I really appreciate the work you did, many thx.

Ofc as a terminal dev I cannot avoid to do some blaming as well. Here is the problem:

Never ever encourage ppl to input downloaded stuff unchecked in the terminal!

I am sure you did this with good intentions and your data is free of malicious actions, but plz lets not spread a bad habit. We all better ban any command combination in the form curl -L ... or curl ... | bash from our memory. It opens the door for trojans and viruses (thus it is in a weird way ontopic).

How should this be done instead?
Well, write a tiny data parser (maybe JSON), that can actually validate the content before putting it onto the terminal. This still can be driven by a simple curl command, but is actually safe if the parser does the proper checks: curl .... | tiny_parser

In the meantime - stay safe, and to anyone who already got infected - get well soon!

Strange problem under windows 10

It displays nearly perfectly under windows 10 if you run the tracker as follows:

chcp 65001
curl -s -L covid19.trackercli.com/history/us>tth.txt
type tth.txt

tth

You see some funny/garbage characters causing the frames to become uneven. I have spent a couple of hours looking at the escape sequences produced by your website but I do not see anything wrong. Any ideas?

Option for hiding irrelevant info to the actual stats

Consider adding an option for hiding support etc info, similar to chubin/wttr.in's superquiet format.

At the moment, the output of a basic curl gets an "advert" about the third of the length of the whole output at the end.

Formatting on Windows CMD

When I tried running the command I was getting this issue.
The command works fine on Linux.

Nice project!

image

wget example

To be similar with curl and httpie example, i.e. no intermediate file but stdout, replace

wget -i https://covid19.trackercli.com && cat index.html

with the following (asking to use stdout as output file)

wget -i -O - https://covid19.trackercli.com

Best regards.

Quiet Mode Feature

This is to reference #47 to remove unnecessary information this gives the user the ability to focus on what they really need.

Note: The donation URL will not be removed as it help us to continue work on other projects under Wareneutron.

If you want to remove the advert or the donation part please send us a message to our Discord server we will give you a dedicated URL to use for your project or for your own purposes.

Extract and Encapsulate Reusable Labels

To avoid the duplicate declaration of these labels extract and encapsulate them to be reusable across the project.

    header          =   '`COVID19-TRACKER-CLI (v'+pkg.version+')`',
    tagline         =   '*A curl-based command line tracker for Novel Coronavirus or COVID-19 pandemic.*',
    source          =   'Source: https://www.worldometers.info/coronavirus/',
    repo            =   'Code: https://github.com/warengonzaga/covid19-tracker-cli',
    bmcurl          =   'warengonza.ga/coffee4dev',
    twitterhandle   =   '@warengonzaga',
    twitterhashtag  =   '#covid19trackercli',
    gcashNum        =   '+639176462753',
    ansiBMC         =   '`(Buy Me A Coffee)` '+bmcurl,
    ansiTwitter     =   twitterhandle+space+twitterhashtag,
    ansiGCash       =   '(GCash) '+gcashNum

user based timezone response

Issue:
The system returns the time zone of the hosting server instead of the user

Reproduce:
1.

$ curl -L covid19.trackercli.com/us

It is currently 2:32pm where I am though receive this:
image

created as requested here

jest for testing

We've discussed that we are possible to use Jest as our testing framework. This decision is not final, just want to add here. If you have an idea or experience in working with Jest just mention my name instead.

History not working

Hello
Using the /history feature get this:
The connection to the origin web server was made, but the origin web server timed out before responding. The likely cause is an overloaded background task, database or application, stressing the resources on your web server. To resolve, please work with your hosting provider or web development team to free up resources for your database or overloaded application

"https://support.cloudflare.com/hc/en-us/articles/200171926-Error-524"
Additional troubleshooting information here.

Update Old URLs

There are few URLs that is no longer working or basically outdated. Hit me if you want to work on this issue.

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.