Coder Social home page Coder Social logo

andrelion / wait4disney Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gtt116/wait4disney

0.0 2.0 0.0 999 KB

Shanghai Disney Waiting Queue Statistics 上海迪士尼排队情况

Home Page: http://s.gaott.info/disney/

License: Apache License 2.0

Python 59.24% Shell 0.46% HTML 40.30%

wait4disney's Introduction

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
$ 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

wait4disney's People

Contributors

gtt116 avatar xuyanhong avatar

Watchers

Andre avatar James Cloos 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.