Skip to content

Instantly share code, notes, and snippets.

View lpla's full-sized avatar

Leopoldo Pla Sempere lpla

View GitHub Profile
@lpla
lpla / MQTT-influxDB-telegraf-grafana-in-armv6-raspberry.md
Last active December 30, 2024 09:33
Install MQTT + influxDB + telegraf + grafana in Raspberry Pi 1 or Zero (armv6)

I tried to install this set of technologies for an small home project using BME280 in a Raspberry Pi Zero, but all guides I tried to follow are based on newer Raspberry Pi versions (armv7) (like this guide or this one), so the docker instructions don't work for some of these packages.

TL;DR: don't use any docker image as they don't exist for armv6, use only apt commands and repos from each project official documentation

Mosquitto (MQTT)

As official documentation details, simply use the already available package from Raspbian/Raspberry Pi OS archive repository:

#!/bin/bash
#Tested with Linux Mint 17, 17.1, 17.2, 17.3, 18, 18.1, Ubuntu 14.04, and Ubuntu 16.04
sudo apt update && sudo apt dist-upgrade -y && sudo apt --install-recommends install ubuntustudio-audio ubuntustudio-audio-core ubuntustudio-audio-plugins rosegarden ubuntustudio-controls ubuntustudio-fonts ubuntustudio-font-meta ubuntustudio-graphics ubuntustudio-photography ubuntustudio-publishing ubuntustudio-video linux-lowlatency && sudo adduser $USER audio