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

Moderator: leecollings

Post Reply
joshimosh
Posts: 58
Joined: Friday 29 May 2015 7:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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
mscory
Posts: 7
Joined: Saturday 23 July 2016 11:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

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

Post by Egregius »

Use php, basic stuff there for reading/writing databases
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest