WebhookまたはMQTT経由でDiscourseにシンプルなセンサー駆動通知を送信するには?

Hi everyone, I’m trying to build a small sensor-to-Discourse integration: like having motion sensors or temperature sensors publish data to a Discourse topic (or trigger a post/private message) when certain thresholds are crossed. I was inspired by this article on using ESP32 + MQTT for motion detection and email alerts:

https://www.theengineeringprojects.com/2022/03/iot-based-motion-detection-with-email-alert-using-esp32.html

I also looked at Discourse’s webhook and plugin APIs, and a few community threads on MQTT bridges with Discourse. I’m curious: what’s the easiest way to send external IoT data into Discourse in a clean, minimal way (without building a full plugin)? Any known lightweight approaches or example setups people have used?

「いいね!」 1

Your best bet is Use scoped API Keys

Once you have a key, you can make requests to Discourse that create posts from whatever platform/language you like on your IoT setup.

Sounds like a cool project, good luck!

「いいね!」 1