Coder Social home page Coder Social logo

krishx / world-cup-2018-cli-dashboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cedricblondeau/world-cup-2018-cli-dashboard

0.0 2.0 0.0 683 KB

โšฝ๐Ÿ†A World Cup 2018 CLI dashboard โ€“ Watch matches in your terminal

Home Page: https://www.npmjs.com/package/world-cup-cli-dashboard

License: MIT License

JavaScript 100.00%

world-cup-2018-cli-dashboard's Introduction

screenshot

World Cup 2018 CLI Dashboard Build Status

forthebadge forthebadge forthebadge

Run it in docker ๐Ÿณ

docker pull cedricbl/world-cup-2018-cli-dashboard && \
docker run -ti -e TZ=America/Toronto -e WITH_EMOJIS=0 cedricbl/world-cup-2018-cli-dashboard

Replace America/Toronto with your actual timezone. Set WITH_EMOJIS to 1 to enable emojis.

Install using npm or yarn

NPM:

npm install -g world-cup-cli-dashboard

Yarn:

yarn global add world-cup-cli-dashboard

Requires NodeJS 6+.

Usage

WITH_EMOJIS=0 POST_NOTIFICATIONS=0 wc2018
  • Use โฌ…๏ธ and โžก๏ธ keys to navigate through different different matches.
  • Set WITH_EMOJIS to 1 to enable emojis.
  • Set POST_NOTIFICATIONS to 1 to enable OS notifications when receiving new match events such as goals, cards or substitutions (won't work in Docker).

How does it work?

Data is sourced from the awesome worldcup.sfg.io. Matches get updated each 30 seconds. Groups get updated each 2 minutes.

Terminal interface built with react-blessed.

FAQ

Q: Emojis are not rendering correctly and/or the layout looks broken, what I can do?

Some terminal configurations may not be able to render flag emojis and emojis can cause alignment issues. This is a known problem.

For now, if you can live without emojis (I cannot), you can use WITH_EMOJIS=0.

Q: Data is not showing up?

If an API call fail, we log a debug message. Press F12 to see the debug console, some helpful messages may show up (a 503 or a 429 HTTP code for instance).

Development

git clone https://github.com/cedricblondeau/world-cup-2018-cli-dashboard
cd world-cup-2018-cli-dashboard
yarn install
WITH_EMOJIS=1 USE_FIXTURES=1 yarn start

Set USE_FIXTURES to 0 to use the actual API in dev and WITH_EMOJIS to disable emojis.

Contributions are very welcome.

LICENSE

MIT

world-cup-2018-cli-dashboard's People

Contributors

cedricblondeau avatar gaumala avatar pedromazala 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.