Page 1 of 1

Direct access of SQLite DB from lua script - how to ?

Posted: Monday 27 July 2015 18:04
by joshimosh
Hi,
I would like to enter data from a number of sensors directly into a SQLite database - something seperately from the Domoticz SQLite DB. Searching this forum for sqlite and lua did not show a result, skimming the wiki neither.
Any ideas how to realise it ? I know that there is an interface between lua and sqlite, but how would I make it available to lua inside Domoticz ?

Any suggestions, recommendations etc are most welcome.
TIA
Josh

Re: Direct access of SQLite DB from lua script - how to ?

Posted: Sunday 25 September 2016 13:51
by mscory
Hello Josh,

Did you find a way to use SqLite database directly from LUA scripts ?
I'm looking for an example as I would like to add user attributes to devices.

Thanks
Kind regards

Michel

Re: Direct access of SQLite DB from lua script - how to ?

Posted: Sunday 25 September 2016 16:34
by Egregius
Use php, basic stuff there for reading/writing databases