New version of kumoRail, the back-end software for kumoRail WeChat public account.
We aims to provide more convenience for passengers, with schedule & status history & EMU type and so on.
It is based on Python tornado and Mariadb.
Chinese Version of README.MD: https://github.com/Kumo-YZX/kumoRailT/blob/master/readme-cn.md
Unaccessable Currently!!!!! We feel sorry for that
-
Send Train Number to the account directly, you will get the basic info.
-
Send Train Number and one of the arrival station, you will get the arrival history.
Run deploy.sh and follow the steps to deploy the code. (Under construction)
The code contains 4 parts:
-
Database interface.
- There are 9 database models divided into 6 parts.
- The dbmaria2 module contains the base class of database interface and provides generic functions for upper modules to access to the database.
- The staInfo module defines the table that holds data of stations.
- The depot module holds depots' names. "Seq" means sequence, all trains in an operation cycle.
- Train table contains the actual number & operation number & train class of a train. Train Code is a 12-bytes string used by the online ticket system to label the train uniquely.
- Arrival table contains each station in a train's schedule.
- The "actArr" & "subArr" table is used to record actual arrival time of trains.
-
Server progress and Message handler.
- We are using Python tornado frame to handle base web requests. They are in server.py.
- "Parse" module in parse/ will handle the message passed by server.py and classify them, then call "hlsearch" module to execute the query and generate an answer.
- The format and encrypt module is provided by WeChat.
-
Data Collecter.
- They are called "hook". There are 4 hooks here.
-
Other Tools. (Under Construction)
(Under Construction)