Logic Machine Forum
Best way import IoT sensor data into W4K? - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Best way import IoT sensor data into W4K? (/showthread.php?tid=5010)



Best way import IoT sensor data into W4K? - temp4 - 07.10.2023

Hi!

What would be the preferred method of getting data from various IoT sensors (like Raspberry Pi Pico W or ESP32) into Wiser for KNX? I'm open for suggestion both using software only (for example http get or post) or some kind of physical hardware interface that can be attached to a dedicated "IoT importer device" with wired access to Wiser for KNX.

Being most familiar with web development, I am currently using an .lp file in my /user/ catalog on Wiser for KNX that the IoT-devices occasionally request passing sensor readings in the url via get, like "[ip...]/user/import.lp?temperature=20.1&humidity=45". In import.lp I pass the variables on to various group addresses in W4K.

Is this an acceptable solution, or is there a smarter (faster) way that puts minimum stress on the CPU? New data flows in every minute or so.

Thanks!

Robert


RE: Best way import IoT sensor data into W4K? - admin - 09.10.2023

HTTP requests are ok for small amounts of data. Another option is to use MQTT but it won't make much difference in your use case.


RE: Best way import IoT sensor data into W4K? - temp4 - 09.10.2023

(09.10.2023, 06:03)admin Wrote: HTTP requests are ok for small amounts of data. Another option is to use MQTT but it won't make much difference in your use case.

Ok... can the method of importing via the .lp-file be improved or is this "as good as it gets"?

Thanks again,
Robert