Astro offset sunrise/sunset

  • Platform information:
    • Raspberry Pi4
    • OS: Openhabian
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version: 4
  • Issue of the topic: please be detailed explaining your issue
    I’m trying to get Astro to give me Sunset and Sunrise info but even thought I’ve set the right location in the Binding I have a difference of 6 hours in both
  • Please post configurations (if applicable):
    • Items configuration related to the issue
      here is my Item Config:
      UID: astro:sun:local
      label: Soleil Depuis Emplacement Local
      thingTypeUID: astro:sun
      configuration:
      useMeteorologicalSeason: true
      interval: 300
      geolocation: 45.53212396594104,-73.92074704170228

    • Sitemap configuration related to the issue

    • Rules code related to the issue

    • Services configuration related to the issue

  • If logs where generated please post these here using code fences:

is your time zone correct in the settings?

You are near Montreal?
It is -5 hours UTC.

If you type the command date in the console of the computer that is running openhab what date and time do you see?
I get this on mine:
Wed 10 Jan 2024 11:58:26 AEDT

You may have to set the timezone on the computer?
If it is a pi4 does it have a real time clock?
Where do you get the time from?

Welll… you got it… thought by setting everything in Openhab with the geolocalisation would set you up… seems not… I had to go in Raspberry Pi Config to make it work.

Thanks now I’m heading for some Rules programming, a little step at a time :slight_smile:

Good you worked it out.

Here is something I did a while ago that might be handy for you as well.

1 Like

Thanks for the link, I’m sure will need it!