The project started when my mechanical Ferraris energy counter was replaced with a digital smart meter from eBZ. The DD3 model provides an IR signal which can be read once a second with a simple IR receiver. Initially I used just an Arduino with a photo transistor circuit on a breadboard to read the signal. Later I have built an IR dongle on a real PCB in a nice case for permanent mounting on top of the smart meter.
For the software side, the Smartmeter program reads the raw stream of data from the energy meter and forwards it as a JSON formatted string to a MQTT broker on the network. The data is stored in a TimescaleDB database and visualised on a Grafana dashboard.
In the AUR.
Metermon is a dockerized rtlamr wrapper that connects to an existing rtl_tcp instance and outputs formatted messages over MQTT for consumption by other software (e.g. telegraf for storage in influxdb and display in grafana, or import into Home Assistant).
The script can be run using docker (takes care of all dependencies) or standalone. It is designed to run on Raspberry Pi or similar.
By pulling apart this container it should be possible to figure out how to do this.
Huginn's native mqtt agent (subscribe only) re-implemented as a LongRunnable. Simply choose a topic (think email subject line) to listen to, and configure your service. Many services run mqtts (mqtt over SSL) often with a custom certificate. You'll want to download their cert and install it locally, specifying the certificate_path
configuration.
This small script is a cheap and easy way to start with IoT projects. By using the great rtl_433 software and a cheap RTL-SDR receiver it will listen to all kinds of devices transmitting at the 433,92 Mhz frequency.
Quite likely it will receive information from weather stations in your area, if you don't own one, your neighbours might! It will also receive signals from remote controls that are popular to use to control the lights.
The gateway will receive information from the SDR receiver and publish them in JSON format to the topic sensors/rtl_433. (Without the slash!)
Subtopics are created from this JSON line allowing to easily subscribe to specific sensors.
Requires the rtl_433 utility as its data source.
A personal webapp for tracking your own location. Lets you set up a private location diary or a realtime tracker to share with people you give access to. A phone app for iOS and android is the user front-end. The app can publish GPS coordinates and your phone's status to an arbitrary HTTP API endpoint or MQTT broker if you tell it to. Your location gets plotted on a map. The back-end is called Recorder and is found on github: https://github.com/owntracks/recorder