Browser based Graphical User Interface(s) (GUIs) hosted on a Linux server running CasaOS in each home
To start the Progressive Web App (PWA) run the following command: "python3 MainHouse.py"
To delpoy the PWA to the global internet run the following command: "python3 pagekite.py 8080 mammothlitehouse.pagekite.me"
Install external libraries inside a Python 3.9 Docker Container deployed to CasaOS using the following Docker image and command:
docker build -t CasaOS_Python3_9_HomeControlGUIs .
docker run -p 4000:8181 CasaOS_Python3_9_HomeControlGUIs
Commands used to define Dockerfile for dependency installs: pip freeze > requirements.txt yes | pip install -r requirememts.txt
Steps to setup the full IT system for a new house WITHOUT using Docker:
- Go to http://casaos.local/#/ on a development computer on the same physical Ethernet network as the ZimaBoard to setup. Create a new account on the ZimaBoard with the username and password linked to match QR code on ZimaBoard.
- Follow instructions at https://docs.zimaboard.com/docs/index.html to install Plex, UniFi Controller, PiHole, and HomeAssistant onto CasaOS
- Install Python 3.9 (specifically) onto CasaOs running the "sudo apt install python3.9 python3-pip" command
- Install git onto CasaOS running "sudo apt install git" comamnd
- Install git onto CasaOS running "sudo apt install gh" then run "gh auth login" can follow terminal instructions using github.com and HTTPS. Clone the full HomeControlGUIs repo using the "gh repo clone mammothfactory/HomeControlGUIs" conmand.
- Install extrernal libraries usinf the "pip install -r requirements.txt" command
- Copy the .env file over to CasaOS running the Files app inside the http://casaos.local/#/ Dashboard on a dev computer
- Change into HomeControlGUI's directory using "cd HomeControlGUIs" then setup PageKite using the two following commands "curl -O https://pagekite.net/pk/pagekite.py" and "python3 pagekite.py 8181 litehouse.pagekite.me"
BELOW ARE EXTRA DEV NOTES TO BE DELTED ONCE RELEASING FOR PRODUCTION https://www.youtube.com/watch?v=Fu0Dt4Jl4m0
pip3 install googlemaps
pip3 install paramiko
pip3 install supabase
pip3 install nicegui
Only version 1.3.0 and below works
pip3 install python-dotenv
MIGHT COME WITH Python3.9 on CasaOS running debain but not Raspberry Pi CM4
pip3 install bcrypt
MIGHT COME WITH Python3.9 on CasaOS running debain but not Raspberry Pi CM4
pip3 install pysqlitecipher
pip3 install fastapi
Command to count lines of code in a directory / git repo: git ls-files | xargs wc -l
Use a VPC instead of PageKite longterm: ttps://www.linode.com/blog/networking/go-private-with-vlans-and-vpcs/
Wireless Ethernet Bridge https://dl.ubnt.com/guides/airOS/airOS_UG_V80.pdf https://community.ui.com/questions/Wireless-to-Ethernet-Bridge/ecec1bb3-53b9-4169-b89e-5d874cbf2f04 https://community.ui.com/questions/adding-an-AC-Pro-to-an-existing-network/04afdd13-b2e4-439e-b8a8-1cd5bb828f2f https://a.co/d/aUD30hu
Rocket® ac NanoBeam® ac - https://store.ui.com/us/en/products/nanobeam-5ac PowerBeam™ ac - https://www.ispsupplies.com/Ubiquiti-PBE-5AC-500-US LiteBeam® ac - https://store.ui.com/us/en/products/litebeam-5ac