amg0 / ALTUI

Enhancement Interface for VERA home automation system
16 stars 8 forks source link

Allow loading data provider callbacks from saved json #3

Closed sle118 closed 7 years ago

sle118 commented 7 years ago

Changed _loadDataProvider so that it binds functions to the callback table from a function name.

For example, in openLuup, functions declared in lua startup are found under the following structure __G-package-loaded-openLuup.loader-shared_environment_

This allows defining function driven data providers from the lua startup script and configuring them separately within the altui's settings.