/*
  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');


  • No labels

2 Comments

  1. Question: What happens when Homey reboots? 

    1. It's a persistent variable, only within HomeyScript, so it shall live 'forever'