Skip to content

A simple Node.js backend and Vue frontend to pull in temperature and humidity data from a MQTT broker, as well as the current power consumption, production, and charge percentage and state of a Tesla Powerwall 2 battery, and display it on a screen in a dashboard fashion.

License

VirtualWolf/pi-home-dashboard

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

pi-home-dashboard

This is a simple Node.js backend and Vue frontend written to display temperature and humidity data as well as the current power consumption, production, and charge percentage and state of a Tesla Powerwall 2 battery, and display it on a screen in a dashboard fashion at /index.html. There's also a clock at /clock.html. These have been sized for viewing on a Pimoroni HyperPixel 4 display.

It subscribes to three different types of topics on an MQTT broker, one for temperature and humidity, one for the Powerwall data, and one for an air quality sensor. The Powerwall data is fed by powerwall-to-pvoutput-uploader, the temperature and humidity data comes from esp32-sensor-reader-mqtt, and the air quality from esp32-air-quality-reader-mqtt.

The air quality data is available at /api but isn't shown on the main index.html view due to lack of space.

It requires a file called config.json in the root level of the repository with the following contents:

{
    "brokerAddress": "localhost",
    "topics": {
        "weather": [
            "home/outdoor/weather",
            "home/indoor/weather"
        ],
        "airquality": [
            "home/outdoor/airquality"
        ],
        "power": [
            "home/power"
        ]
    }
}

About

A simple Node.js backend and Vue frontend to pull in temperature and humidity data from a MQTT broker, as well as the current power consumption, production, and charge percentage and state of a Tesla Powerwall 2 battery, and display it on a screen in a dashboard fashion.

Topics

Resources

License

Stars

Watchers

Forks