80

推荐一款炫酷的 「命令行式」的 2018 俄罗斯足球世界杯信息仪表盘

 5 years ago
source link: http://www.10tiao.com/html/357/201807/2247486069/1.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

World Cup 2018 CLI Dashboard 是一款命令行式的 2018 年俄罗斯足球世界杯比赛结果与赛程信息仪表盘。支持 Emoji,可以在 Docker 里运行,非常炫酷。

World Cup 2018 CLI Dashboard 是基于 NodeJS 开发的,数据来源 worldcup.sfg.io,比赛信息每 30 秒更新一次。

首先我们来看一下炫酷的动画效果吧:



现代足球的实时数据信息系统已经十分发达,几乎在直播画面完成后的当即,数据就完成了推送。

World Cup 2018 CLI Dashboard 可以通过左右方向键来切换已经结束或者正在进行的比赛。每场比赛都会显示详细信息,比如进球、换人、红黄牌等信息,乌龙球也可以显示。

World Cup 2018 CLI Dashboard 可以通过 NPM、Yarn、Docker 多种方式来安装,不过开发者更加建议使用 Docker 的方式安装。

  • 通过 Docker 安装

$ docker pull cedricbl/world-cup-2018-cli-dashboard
$ docker run --rm -ti -e TZ=Asia/Chongqing -e WITH_EMOJIS=1 cedricbl/world-cup-2018-cli-dashboard

运行完成后信息仪表盘就直接显示出来了。如果需要终止,可直接通过 Ctrl + C 来终止运行。

  • 通过 NPM 或者 Yarn 来安装

如果你对 Docker 还不是很了解,也可以使用以下方式进行安装:

1. 通过 NPM 安装

$ npm install -g world-cup-cli-dashboard

2. 通过 Yarn 安装

$ yarn global add world-cup-cli-dashboard

注意: NodeJS 必须是 6.0 以上版本。

3. 运行

# 使用 emojis
$ WITH_EMOJIS=1
$ wc2018

# 不使用 emojis
$ wc2018

快去享受你的世界杯吧,虽然大多传统强队都已经回家了,错过了要再等四年哟!

参考文档

http://www.google.com
http://t.cn/Rr8RwL1
http://t.cn/Rr8skRy


今日思想


人生如棋,只需尽力。


——一禅小和尚




更多精彩热文:





About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK