Logic Machine Forum
App configuration - doesn't work as expected - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2)
+--- Thread: App configuration - doesn't work as expected (/showthread.php?tid=6072)



App configuration - doesn't work as expected - Fcs - 05.08.2025

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



RE: App configuration - doesn't work as expected - admin - 06.08.2025

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.