This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

App configuration - doesn't work as expected
#1
Hello everyone,

I have followed the instructions on this page but it does not work as I expected.

When I'm on the applications page, I enter a value, save and when I open again the value is displayed, so it's saved correctly, but when I call the same thing from a lua code, I don't get the same value.

By saving in lua I get the right value but only in lua.

thanks you for help


Code:
require("apps")
log(config.getall('myapp'))
log(config.get('myapp', 'delay', 15))

the first log is empty
the second log show this :

Code:
* arg: 1
  * number: 15
* arg: 2
  * nil

Attached Files Thumbnail(s)
   
Reply
#2
You need to replace myapp with your application name (ID). Install Storage viewer app and check appconfig_* keys. Your app config will be listed there.
Reply


Forum Jump: