07.12.2016, 10:56
(This post was last modified: 07.12.2016, 11:37 by RSV4.
Edit Reason: Fixed the missing ()
)
Hi,
I will be periodically writing values of various group addresses to an external MySQL database and will have a common function (writedb) for database connection and writing. I now will have to provide an event script for every group address, something like
Is there an easier way to this instead of having tons of event scripts (one per group address) with just this one liner, where I manually have to adjust the group address in each and every script?
Thanks & best regards,
Robin
I will be periodically writing values of various group addresses to an external MySQL database and will have a common function (writedb) for database connection and writing. I now will have to provide an event script for every group address, something like
Code:
writedb('1/1/10', event.getvalue())
Is there an easier way to this instead of having tons of event scripts (one per group address) with just this one liner, where I manually have to adjust the group address in each and every script?
Thanks & best regards,
Robin