Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gtt116/wait4disney
Shanghai Disney Waiting Queue Statistics 上海迪士尼排队情况
https://github.com/gtt116/wait4disney
disneyland grafana heatmap influxdb statistics
Last synced: about 2 months ago
JSON representation
Shanghai Disney Waiting Queue Statistics 上海迪士尼排队情况
- Host: GitHub
- URL: https://github.com/gtt116/wait4disney
- Owner: gtt116
- License: apache-2.0
- Created: 2016-09-07T03:49:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:20:41.000Z (about 2 years ago)
- Last Synced: 2024-08-02T02:14:05.798Z (5 months ago)
- Topics: disneyland, grafana, heatmap, influxdb, statistics
- Language: Python
- Homepage: http://s.gaott.top/disney/
- Size: 982 KB
- Stars: 110
- Watchers: 4
- Forks: 21
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## What is this ?
We all love Shanghai Disneyland, but the long long long waiting queue is going to kill
us. So I need a better place to find which attraction is the lightest.Also I want to find out which season is the best choice to travel to
Disneyland, the statistic will give me the answer.## Installation
1. install influxdb
2. install grafana```bash
$ git clone git://github.com/gtt116/wait4disney
$ cd wait4disney
$ pip install -r requirements.txt
$ pip install -e .
$ disney-fetch # This command will fetch data from disney server and insert into influxdb.
$ disney-publish day # This command will publish daily report.
$ disney-publish year # This command will publish yearly report.
```
All config items like report path, influxdb username locate at `disney/config.py`, please feel
free to change it to meet your environment.You can setup a crontab job to update disney waiting queue every minute.
The grafana dashboard template locates at `wait4disney/doc/grafana.json`, you can
import it to give a try.## Heatmap
To generate heatmap follow these steps:
```
python web.py > disney.json
python -mSimpleHTTPServer
```Then open your favourite web browser to http://127.0.0.1:8000/index.html.
you can also setup a crontab to generate report every day.## Web Snapshot
![wait](https://raw.githubusercontent.com/gtt116/wait4disney/master/doc/snapshot2018.png)