This application is the frontend part and talks to the Smart Home Backend via WebSockets.
The UI is designed to run on a 5" touch display (800ร480px) attached to a RaspberryPi.
Display and toggle light state.
Display the current weather for every client.
Display the weather data of the last 24 to 30 hours.
Display the current moisture level.
Display the moisture level of the last seven days.
Open for further development.
- Run
npm install && npm run build
- Optional: Deploy to the production system
- Install screen via
sudo apt-get install screen
- Open named screen session
screen -S client
- Start the backend app that should be available at http://localhost:3000
- Run
DISPLAY=:0 chromium-browser http://localhost:3000 --kiosk --noerrdialogs --disable-translate --no-first-run --fast --fast-start --disable-infobars --disk-cache-dir=/dev/null
on the production system - Leave session with
strg+a d
and reattach withscreen -r client
npm install
npm run serve
npm run build
npm run test
npm run lint
npm run test:unit