Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robhaswell/virgin-monitor-sh3
Monitor a Virgin SuperHub 3.0
https://github.com/robhaswell/virgin-monitor-sh3
Last synced: 19 days ago
JSON representation
Monitor a Virgin SuperHub 3.0
- Host: GitHub
- URL: https://github.com/robhaswell/virgin-monitor-sh3
- Owner: robhaswell
- License: apache-2.0
- Created: 2020-04-21T11:41:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-25T23:37:50.000Z (almost 4 years ago)
- Last Synced: 2023-03-24T07:43:41.838Z (almost 2 years ago)
- Language: Python
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# virgin-monitor-sh3
Monitor a Virgin SuperHub 3.0This app is developed for personal use but I will offer limited assistance to others who wish to run it.
## Usage
Like any other python program, create a virtualenv, install the requirements and run `python app.py`.
Requires I think Python 3.6.```sh
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
python app.py
```App will run on http://127.0.0.1:8080
```
$ python app.py --help
usage: app.py [-h] [-c MY_CONFIG] [-p DB_PATH] [-i INTERVAL] [-u URL]Args that start with '--' (eg. -p) can also be set in a config file
(~/.virgin-monitor or specified via -c). Config file syntax allows: key=value,
flag=true, stuff=[a,b,c] (for details, see syntax at https://goo.gl/R74nmi).
If an arg is specified in more than one place, then commandline values
override environment variables which override config file values which
override defaults.optional arguments:
-h, --help show this help message and exit
-c MY_CONFIG, --my-config MY_CONFIG
config file path
-p DB_PATH, --db-path DB_PATH
database file path [env var: DB_PATH]
-i INTERVAL, --interval INTERVAL
poll interval (seconds) [env var: POLL_INTERVAL]
-u URL, --url URL Endpoint URL [env var: URL]
```