JP Hutchins
JP Hutchins
Lol, yeah... This project was from about 2 years ago and would have completely faded if it weren't for HA people finding it and being like "yo this is broken!...
Here's an example 2 year XML containing gas and electricity data: https://github.com/JPHutchins/open-energy-view/blob/master/test/data/espi/espi_2_years.xml
Created a new WSL2 instance following this guide: https://cloudbytes.dev/snippets/how-to-install-multiple-instances-of-ubuntu-in-wsl2 Except that I used 20.04 instead of 21.04
update upgrade, init git add ssh keys to github
`git clone [email protected]:JPHutchins/open-energy-view.git` `cd open-energy-view` `git status` `code .`
`sudo apt install python3.8-venv`
`python3 -m venv venv` `source venv/bin/activate` `pip3 install -r requirements.txt` Fails, `sudo apt install build-essential` for gcc etc `pip3 install -r requirements.txt` Fails, need `sudo apt install python3-dev` `pip3 install...
Install nvm: https://github.com/nvm-sh/nvm: `curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash` `cd open_energy_view/frontend` Use nvm to install npm: `nvm install 10.19.0` TODO: upgrade `nvm use 10` `npm install` `npm run build`
`cd ../..` back to repo root Install erlang: `sudo apt update` `sudo apt install software-properties-common apt-transport-https` `wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -` `echo "deb https://packages.erlang-solutions.com/ubuntu focal contrib" |...
Open 4 terminals:  first terminal: `./run-wsgi-dev` 2nd term: `./run-io-worker` 3rd term: `./run-cpu-worker` 4th terminal: `ip a` Note the IP address of your WSL2 instance, in this case `172.31.30.203`: ...