What's the algorithm you decided to use for this so that you e.g. can show moon icons for weather instead of sun icons?
Did you decide to use fixed time frames like 20 - 8 is night and 8 - 20 is day or does anyone have a more "smart" logic for this?
What's the algorithm you decided to use for this so that you e.g. can show moon icons for weather instead of sun icons?
Did you decide to use fixed time frames like 20 - 8 is night and 8 - 20 is day or does anyone have a more "smart" logic for this?
hi,
in my case, I calculate the sunEvent according the location
GPS either from device last known position or for CIQ3.2.x from Weather module,
When the new SDK will be released, in the Weather module, you will have sunrise and sunset times.
see here for SunEvent Calculation: (from peterdedecker)
https://starttorun.info/connect-iq-apps-with-source-code/
or here:
Thanks, that of course helps.