This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Comments
I can get them from a command line at http://homey/api/app/net.i-dev.betterlogic/variable, but how do I do that using JavaScript?
Does Homey.manager allow this? I can get app settings with that just fine
How would I get the above 'result' in a variable though? Somehow all my attempts end up being null.
I'm missing something here
var test = Homey.manager('api').get('/app/net.i-dev.betterlogic/variable', function(err, result) {
Test ends up being null, whereas result contains what it should. As you can see, I'm not an expert at JS
Homey.manager('api').get('/app/net.i-dev.betterlogic/variable', function(err, result) {
If I run that, test still contains null. What gives?
If I assign a value to the test variable before, that value gets replaced by null. I'm at a loss here
I can only get output inside the get method, I can't get it out.
Try this:
Thank you thank you thank you - I'll go play with this tomorrow and think synchronous until it makes sense
And if the flow gets something that doesn't change, it looks like it didn't run.
ErikVanDongen; it's not your app's fault!