Syncing ESP32 Sensor Data to Nextcloud via REST or WebDAV?

Hi all, I’m building an ESP32-based environmental monitoring system that captures temperature, pressure, and altitude readings using a BMP280 sensor. I found this useful tutorial on interfacing the BMP280 with ESP32 and streaming data to ThingSpeak a great foundation for setting up sensor communication:
https://www.theengineeringprojects.com/2022/03/esp32-bmp280-sensor-interfacing-with-thingspeak-webserver.html

I’d now like to send that data into my self-hosted Nextcloud instance, ideally via WebDAV uploads or a simple REST endpoint. I’ve reviewed Nextcloud’s External API documentation and seen community integrations using MQTT brokers for IoT. My main questions are: how can I securely authenticate ESP32 devices for upload, and is WebDAV reliable enough for frequent sensor writes without causing performance issues?

Hello @ariajames,

welcome to the Nextcloud community! :handshake:

from Nextcloud POV your sensor is nothing different than a user so you can do all the same you do with users. including device-specific passwords (when 2FA is enabled mfa). WebDAV is the foundation of Nextcloud there is no reason to assume this would be not stable. but maybe this is not the best protocol for low-specs device like a sensor.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.