https://github.com/briangershon/mqtt-mood
Send your mood to MQTT and listen for mood changes. Part of a multi-arduino Mood Lamp project. Set your mood and all Arduinos respond.
https://github.com/briangershon/mqtt-mood
Last synced: 2 months ago
JSON representation
Send your mood to MQTT and listen for mood changes. Part of a multi-arduino Mood Lamp project. Set your mood and all Arduinos respond.
- Host: GitHub
- URL: https://github.com/briangershon/mqtt-mood
- Owner: briangershon
- Created: 2020-10-10T19:09:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-10T20:01:11.000Z (over 4 years ago)
- Last Synced: 2025-01-12T09:45:05.048Z (4 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mqtt-mood
Send your mood to MQTT and listen for mood changes.
Uses MQTT with topic of `mood`.
## How to use
Run with environment variables set for your mqtt server, username and password.
npm install
MQTT_BROKER="mqtt://test.mosquitto.org" USERNAME="joe" PASSWORD="smith" npm startPress 1 to send 'happy' message
Press 2 to send 'sad' message
Press 3 to send 'angry' messageYou'll also see updates made on the MQTT topic.