aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJJ <nicetry@noemail.com>2025-03-20 14:11:14 +0000
committerJJ <nicetry@noemail.com>2025-03-20 14:11:14 +0000
commit670635562388a4a00fa9f45f28b37301c76d976f (patch)
tree91ac8942bc9a180f458208abf7e2a3a653b25339 /README.md
parent1540bc6da31beeed4f4a2c1c97e100c9d8fd9984 (diff)
readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md67
1 files changed, 66 insertions, 1 deletions
diff --git a/README.md b/README.md
index dba56d1..1c876a6 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,68 @@
# Tubestat
-Python CLI tool to see London tube statuses from the command line
+Python CLI tool to see London tube statuses from the command line.
+
+## Installation
+
+```console
+pipx install tube-stat
+```
+
+Tubestat relies on a `config.json` file with the following format:
+
+```json
+{
+ "APP": "<APPID>",
+ "KEY": "<KEY>"
+}
+```
+
+You will need to sign up for a developer API key and app name at [TFL](https://api.tfl.gov.uk/).
+
+On Linux and Mac, the app looks for the following path:
+
+`/Users/$HOME/.config/tubestat/config.json`
+
+On Windows:
+
+`/Users/$HOME/AppData/Roaming/tubestat/config.json`
+
+## Usage
+
+Return the status on all lines:
+
+```console
+tubestat
+```
+
+Return the status only on the Bakerloo line, for example:
+
+```console
+tubestat --line bakerloo
+```
+
+Return the status for both the Bakerloo and Central line, for example:
+
+```console
+tubestat --line bakerloo,central
+```
+
+All possible lines:
+
+```console
+"bakerloo"
+"victoria"
+"central"
+"circle"
+"district"
+"hammersmith-city"
+"jubilee"
+"metropolitan"
+"northern"
+"piccadilly"
+"waterloo-city"
+"dlr"
+"overground"
+"tram"
+"elizabeth"
+```