Skip to content

MQTT and raspberry charts in a web page step1

Rui Pires edited this page Sep 8, 2020 · 3 revisions

This project aims at documenting an idea I had about having some MQTT stats in a web page. This page is running in a raspberry running apache.

I already have the MQTT data being shown in my mobile app: MQTT dash. MQTT dash screenshot But I was looking for history. I tried to find a way to collect MQTT is some simple database but all solutions seemed too complicated so I ended up with my own, probably awful, but served my initial intent.

Architecture

Problems

  • crontab fails. I tried several solutions, mostly related to the PATH but none worked. The issue is related to the python app "orca" used to create the charts as a picture.

Future improvements

  • reduce the picture updates in the raspberry as this may cause problems to the SD card.
  • reduce the number and size of the csv files in the raspberry as this may cause problems to the SD card.