Logger All Datagrams KNX BUS to mysql - 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: Logger All Datagrams KNX BUS to mysql (/showthread.php?tid=2620) |
Logger All Datagrams KNX BUS to mysql - Hyxion14 - 29.04.2020 Hello I have a project in which I need to save in a bbdd mysql all the states of all KNX groups in real time. In other words, I need to listen to the KNX BUS and send all the datagrams that are written to the BUS to a mysql DB. Can LM do this? Can somebody help me?. Thank you. RE: Logger All Datagrams KNX BUS to mysql - admin - 30.04.2020 See this thread on a basic example of bus monitoring. It can be easily extended to send data to mysql or any other database: https://forum.logicmachine.net/showthread.php?tid=273 RE: Logger All Datagrams KNX BUS to mysql - Hyxion14 - 30.04.2020 Maybe an idea would be, to mark all the objects with "LOG" and every hour, to synchronize the objects of the LM bbdd with the DB of mysql? RE: Logger All Datagrams KNX BUS to mysql - admin - 30.04.2020 You can modify CSV example to export to mysql: https://openrb.com/example-export-last-hour-csv-object-log-file-to-external-ftp-server-from-lm2/ RE: Logger All Datagrams KNX BUS to mysql - gjniewenhuijse - 01.05.2020 This is my code, maybe not perfect but it works Code: --[[ |