Hi i am building a automatet ligth for outside. I have tried different librarys as TimeLord, but i found these to be not so accurate. UP to 1 hour wrong. I have set the latitude and longitude and timezone to +1 also tried just 1. This is in norway. Anybody have any tips to get this working? Another library / code. I am using an RTC to get time for the UNO.
You must be doing something wrong. I've tried several sunrise/set programs, and they are all within one minute or two of being correct. How about "daylight savings time"?
Here is an Arduino sun position calculator that is accurate to a few arc minutes.
if someone can test and see if they get the same values
Post the code, using code tags.
It is very unlikely that your longitude is -9.59 degrees (West of the Prime Meridian), which is somewhere in the ocean. Oslo would be about 10.5 degrees.