Simple WPA to display the cost electrical power measured by the Sense Flex product
Progressive Web App (PWA) code named "Energy-Gauge-Optimize-Track" running on "Sense-Energy-Gauge-Optimize-Track" Linode server https://cloud.linode.com/linodes/53323885 (OR MFC Jupiter server) and deployed at http://energy-got.pagekite.me using www.pagekite.net
We are using the Sense Flex hardware found at https://sense.com
3rd party API library used to collect data can be found at https://github.com/scottbonline/sense
The frontend was built using https://nicegui.io with all graphs drawn using SVG tags in HTML
The backend uses a simple local SQlite database file
To delpoy the PWA to the global internet on Linode complete the following steps:
- Open "https://cloud.linode.com/linodes/53323885" server label in the "[email protected]" Linode account
- Click "Launch LISH Console" then select the Weblish tab to run the following commands apt-get install python3-venv python3 -m venv .venv
- Run the "source .venv/bin/active" command to start Virtual Environment
- Install extrernal libraries using the "pip3 install -r requirements.txt" command
- Run the "python3 MainApp.py &" command to start the main NiceGUI application
- Run the "python3 pagekite.py 8282 energy-got.pagekite.me" to securely reverse proxy share localhost on Linode to internet
To delpoy the PWA to the global internet on Jupiter server complete the following steps:
- Run the "ssh [email protected]" command to connect to the MFC AI GPU Jupiter server in Marianna, Florida
- Run the "cd Apps/SensePowerMeteringSinglePageApp/" command to navigate to the project code
- Run the "source .venv/bin/active" command to start Virtual Environment
- Install extrernal libraries using the "pip3 install -r requirements.txt" command
- Run the "python3 MainApp.py &" command to start the main NiceGUI application
- Run the "python3 pagekite.py 8282 energy-got.pagekite.me" to securely reverse proxy share localhost on Jupiter server to internet