18.12.2016, 07:58
Many thanks Erwin, it worked!
Just curious: what do you mean with HL & SL? I do not understand unfortunately...
Just curious: what do you mean with HL & SL? I do not understand unfortunately...
Read/write mysql database
|
18.12.2016, 07:58
Many thanks Erwin, it worked!
Just curious: what do you mean with HL & SL? I do not understand unfortunately...
18.12.2016, 09:41
(This post was last modified: 18.12.2016, 09:42 by Erwin van der Zwart.)
Hi,
SL and HL means our homeLYnk and spaceLYnk controllers that are developed by EMBS and Schneider Electric. BR, Erwin
18.12.2016, 10:28
Hi Erwin,
thank you for clarifying! Best regards, Robin
11.01.2017, 23:19
Hi all,
I've got my connection working and am successfully writing data to my database on the server. However, I cannot write to a MySQL field of the type "datetime". It should have the format "YYYY-MM-DD HH:MM:SS". I am doing this and getting an error: Code: -- create timestamp Sorry for asking MySQL related questions here which actually have nothing to do with the LogicMacine itself, but I hope some expert here can tell me where the error in the above code is. Many thanks and best regards
12.01.2017, 09:48
You don't need STR_TO_DATE, date value must be a string. This should work, note the double quotes for date value.
Code: dbcon:execute('INSERT INTO sensor_data (LAST_UPDATE) VALUES ("' .. curdatetime .. '")')
12.01.2017, 18:50
Thank you very much, works like a charm!!!
17.02.2017, 12:45
Erwin,
Could you please paste the exact os.execute command to install packages on a SL?
17.02.2017, 13:59
(This post was last modified: 17.02.2017, 13:59 by Erwin van der Zwart.)
Hi,
Sorry can't help you on this one.. We have the policy to test and validate the firmware and packages in our lab before we use them in our HL/SL. If you install packages that are not tested and validated by our lab (with os.execute) we can't guarantee a correct working controller. For this reason i won't be able to share the requested information, sorry.. BR, Erwin
14.03.2017, 03:16
Hi,
Wondering if anyone has succeeded in interfacing with Microsoft SQL server 2008? Tried the MySQL script and it worked with no problems. Wondering if anyone has tried something similar with Microsoft SQL server.
14.03.2017, 06:53
You can try using ODBC, though I'm not sure if anybody tried it before.
Packages can be found here: https://dl.openrb.com/lm-16.09/pkg/
Hi
In the LM -> DB direction I use SOAP call. My DB is SAP SQL Anywhere (former Sybase). As I know MSSQL supports SOAP calls too. Wouldn't it be a way for you in case you just want inform your database about a group object change?
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
04.09.2017, 22:02
Hi Edgar, where do you get the selection from my table? How do you know that you selected that table? Where do you think the table? please
05.09.2017, 13:42
How do I call that table, like you did? in the query select * from mytable ?, if it is an example how I can actually do it, which table should I select or how do I create a table and do I create it, please wait for your answer
05.09.2017, 13:50
For your own data you should use storage instead of using internal database.
07.09.2017, 13:54
(14.01.2016, 10:03)admin Wrote: Install packages: Hi a question as that table select as in your case "select * from mytable" where do you get the user, password, dbname, server and port for function connect?
07.09.2017, 14:47
This is for external MySQL server, connection parameters are pretty much the same as for other languages.
07.09.2017, 15:19
18.11.2019, 16:54
(07.09.2017, 14:47)admin Wrote: This is for external MySQL server, connection parameters are pretty much the same as for other languages. Hello, I have a LM5 lite. I want to register my trend logs into a SQL database. I can do it with the LuaSQL packages? where can I download it? the links seems to be broken. Thanks!
19.11.2019, 08:28
Check here
https://dl.openrb.com/lm-19-imx6/pkg/
------------------------------
Ctrl+F5
19.11.2019, 09:37
(19.11.2019, 08:28)Daniel. Wrote: Check here Thanks Daniel! Which code I need If want to register the LM trends in a SQL database? Sorry but I'm a KNX integrator without no knowledge of LUA. I would be very grateful if someone can help me. |
« Next Oldest | Next Newest »
|