Hs.RegisterStatusChangeCB(“MySQL_Devices.vb”, “StatusChangeCB”) Hs.Speak(“Web server port number is ” & port) It should added to the bottom of the script, but before the “End” statement:ĭim port As String = hs.GetINISetting(“Settings”, “gWebSvrPort”, “”) The name of the Homeseer script is “MySQL_Devices.vb”.Ī link has to be added to the Startup.vb script from Homeseer. My table called “devices” and the the column data is created as following: I’ve created manually a database in phpmyadmin, it can be done in the script below too, but this will be added later. You have to find out yourself how to configure the MySQL part. ![]() I’ve already running a XAMPP server so the MySQL was an easy step forward. To prepare any reponsive webdesign or app I would like to store all relevant device data into a MySQL database. In Homeseer 2 it was possible to retrieve device data via DOM.
0 Comments
Leave a Reply. |