blob: db4e0c6f7b3714c1097179489d0aaf9e1ad05ea9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
* PTV Timetable tool
:PROPERTIES:
:UPDATED: [2023-06-17 Sat 16:06]
:END:
Usage:
#+begin_src sh
python server.py
#+end_src
The server will be available at port 8052.
Alternatively, to run it as a daemon, try a sample systemd service:
#+begin_src conf
[Unit]
Description=PTV server
After=network.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/python3 /opt/ptvtt/server.py
[Install]
WantedBy=multi-user.target
#+end_src
Note that you will need a PTV Timetable Service Dev ID and API key, see
<https://www.ptv.vic.gov.au/footer/data-and-reporting/datasets/ptv-timetable-api/ptv-timetable-api-faqs/>
on how to get one.
|