-
Clone the application from git
git clone https://github.com/jahedul29/web-page-with-amazing-graphics
-
Install the dependencies nodejs version 18 recommended
npm install
or
yarn
-
run the server
npm run dev
or
yarn dev
- if solar parameter is high (>4), in the upper position showing the Sun, when solar is medium (>1) showing the sun behind a cloud, when the solar is very low (<=1>) or zero show only the cloud.
- If the home value is greater than 3, it's showing red home. When the home value is less or equal to 3, it's showing a green home.
- When batt_perc is greater than 19%, it's showing a green battery. When the batt_perc is less than 19%, it's showing a red battery.
- Here is an arrow sign beside the battery that showing downward direction when batt > 0 and when batt is less or equal to 0 it's showing upward direction
- When the grid value in greater than -4 and less than 8 it showing a blue grid. Otherwise it showing a red grid.
- If the grid value is negative an arrow showing pointing towards the grid. Otherwise showing an arrow pointing outside of the grid.
- if powerwall_connection_status is 0, it showing a red cross on the Web Page graphics and a big text “DATA NON AVAILABLE” is shwoing.
- Date and time showing on the top of the webpage.
- The webpage is getting refreshed every 7 seconds.
- Home, battery, arrow and grid are converted to svg icons as I need 5 different color for different values.
- The values of each component are showing at the top of each component
- Now for home, battery and grid I am showing 5 different colors for different range of values. For example for batt value,
- 0 - 19 showing #F00000
- 20 - 39 showing #EE6300
- 40 - 59 showing #EE8B00
- 60 - 79 showing #006FEE
- 80 - 100 showing #53BD15
showing same color code for other values depending on specific range