I have no idea what this actually does.
This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2021-08-04 23:32:08 -05:00
src This is a working prototype of the webview. 2021-08-04 23:28:42 -05:00
templates This is a working prototype of the webview. 2021-08-04 23:28:42 -05:00
.gitignore This is a working prototype of the webview. 2021-08-04 23:28:42 -05:00
app.py This is a working prototype of the webview. 2021-08-04 23:28:42 -05:00
Pipfile Actually working now. 2021-08-04 22:15:33 -05:00
Pipfile.lock Actually working now. 2021-08-04 22:15:33 -05:00
README.md Initial readme. 2021-08-04 23:32:08 -05:00
requirements.txt it's flask now lol 2021-08-05 02:46:59 +00:00

Usage

Unfortunately, you need to run Python as root in order for this to work, since the command line utility that queries the UPS for information requires you to be running as root.

A safe-ish way of doing this is using pipenv to create a virtual environment and then taking that path and running it as root.

The resulting command should look something like this:

sudo [path to virtual env]/python app.py

Open a browser to localhost:9090 or your host machine's IP at 9090 to view it.