Skip to content

Angular Material + Redux UI for the Water System (/Valve) project

Notifications You must be signed in to change notification settings

ism-hub/WaterSystemGUI

Repository files navigation

Water System GUI

The front-end for the Water System project. Using Angular and Redux. The GUI is a JavaScript page (after angular 'compiles' the TypeScript to JavaScript) that talks to REST servers on the ESP8266.

Run

Clone from git -

git clone https://github.com/ism-hub/WaterSystemGUI.git

Install dependencies, in the terminal type -

npm install

Install Angular CLI -

 npm install -g @angular/cli

Start the development server -

 ng serve -o

Connect To The Server (The ESP chip provides the REST API)

In order to use the GUI to control the ESP chip you need to connect them, this is done by simply connecting the ESP (REST Server) to the same network you view the GUI page. If you followed the above steps you already have a window running the GUI on your browser. Now all you have to do is to connect the ESP to the same network your computer is on.

Connect The ESP To Your Home Network

  • Follow the instructions on how to run the back-end (compile and upload it to the ESP).
  • Connect your computer to the ESP Access-Point SSI: ESP8266123 Pass: ESP8266123 ESP AP
  • Now the GUI controlling the ESP (your PC and the ESP are on the same network (The ESP network)). In the GUI go to the 'Station View -> Scanner View' and choose your home network and connect to it (make sure you check the 'auto connect' box to avoid repeating these steps again) Station Scanner
  • Done, connect your PC back to your home network and use the GUI to control the ESP from there.

The Views

Menu

Can navigate to different views from here - Menu

The Station View

Status View

Shows information about the network our ESP is connected to - Station Status

Scanner View

Shows information about nearby networks and the possibility to connect to them - Station Scanner

The Access-Point View

Status

Information about the ESP as an Access-Point - AP Status

Settings

Can view and change the Access-Point settings - AP Settings

The Garden View (our model)

Can set water programs add flowers etc. (needs a little visual update..) Garden

token= "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"

token= "ghp_CpkO5B1J7tW1iRJokfhY1onweJCFze31T7O2"

About

Angular Material + Redux UI for the Water System (/Valve) project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •