Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgdm/mqttdisplay
Displays MQTT messages on a Sure Electronics LCD
https://github.com/mgdm/mqttdisplay
Last synced: about 1 month ago
JSON representation
Displays MQTT messages on a Sure Electronics LCD
- Host: GitHub
- URL: https://github.com/mgdm/mqttdisplay
- Owner: mgdm
- License: bsd-3-clause
- Created: 2013-10-19T19:26:36.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-16T13:47:05.000Z (about 9 years ago)
- Last Synced: 2024-10-14T12:36:20.454Z (2 months ago)
- Language: C
- Size: 102 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MQTTDisplay
This displays MQTT messages on a Sure Electronics LCD display. It requires my
[libsureelec](https://github.com/mgdm/libsureelec) library to speak to the
hardware, and [libmosquitto](http://mosquitto.org) to handle the MQTT
connection.## Usage
`mqttdisplay -b BROKER -p PORT -d DISPLAY`
BROKER is the hostname of the MQTT broker. Defaults to localhost. PORT is the
MQTT port, and defaults to 1883. DISPLAY is the display device, and defaults to
`/dev/tty.SLAB_USBtoUART`, which is correct for the CP2102 driver on Mac OS X.You can store the options in a config file, which is currently hard-coded to be
`~/.mqttdisplay`. For example:```ini
[mqttdisplay]
broker=mqtt.example.org
port=1883
topic=test/example
```## Credits
This code uses the INIH library for parsing the config file.
https://code.google.com/p/inih/I also stole the trick to avoid the warning about daemon() being deprecated
from mDNSResponder:http://www.opensource.apple.com/source/mDNSResponder/mDNSResponder-333.10/mDNSPosix/PosixDaemon.c