Sunset and sunrise times to Homey Script

I’m new to Homey Script so bear with me :wink:

I like to get hour of the sunrise and sunset to Homey Script. I have the Sun Events app in which there are tags available for sunset and sunrise, but I have only found the way to get the capability values from other devices to Homey Script but the Sun Events app doesn’t have devices at all. What to do?

Also other ways of getting the sunrise and sunset hours to Homey Script would be appreciated.

This should get you started:

await Homey.apps.getAppSettings({id: 'com.cyclone-software.sunevents'})
  .then(result => {
    log('sunrise:', result.myEventsTimes.sunrise.date);
    log('sunset:', result.myEventsTimes.sunset.date);
  })
  .catch(err => log(err));

Thanks a lot! That will do it.