Code Monkey home page Code Monkey 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-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

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.

Formatting on Windows CMD

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

Nice project!

image

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.

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.

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

Revamp README

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

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!

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.

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.

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

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.

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?

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.

Broken Images

Details

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

image

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.

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.

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.