/* Use this script to store your Tibber ApiKey to reuse the key in other scripts You will retrieve the key with: const tibberApiKey = global.get('tibberApiKey'); You just need to run this scipt only once, by executing the 'Test' button */ global.set('tibberApiKey', 'replace this with you personal api key');
2 Comments
Rune Carlsen
Question: What happens when Homey reboots?
Bjørn-Willy Arntzen
It's a persistent variable, only within HomeyScript, so it shall live 'forever'