Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.
Graphs that work when the internet does not
Cloud dashboards are useless exactly when you need them. An Orange Pi Zero 3 on your local network collects the PZEM data from the ESP32 by MQTT, stores it, and serves a simple page with charts, with no connection to the outside.
Things that bite in practice
The board has no battery-backed clock. After a blackout it starts with a wrong date until it can reach an NTP server, and your graphs get a gap or a jump. Add a DS3231 RTC module, or take the timestamp from the ESP32 which already knows the time.
A full Grafana and InfluxDB stack is heavy for a board with 1 to 4 GB. A small Python script with SQLite and a static chart page is enough for one meter.
Write to the card in batches, say once a minute, to spare it.
Keep the Orange Pi on a UPS too. The card dislikes sudden power cuts, and so will you.
Export the daily totals to a CSV file for your own records.
Ukraine: we buy and sell these parts ourselves, order them on this site.
Some links are affiliate links: we may earn a commission at no extra cost to you.
Related ideas
⛔ High risk
Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.
Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.
Mains 220–230 V can kill. Work with the power off, use certified isolated modules in an enclosure, fuse the line, and ask a qualified electrician if you are not sure.
Comments
No comments yet. Share your experience or ask a question.