Skip to content

Version 1.1.0

Compare
Choose a tag to compare
@buelowp buelowp released this 26 May 20:30
· 74 commits to master since this release

This is a new major version as it does a lot to the code base and adds a lot of new API's

  • Lots of new tests, though I still need to add a bunch
  • Added a micro test for the Particle Photon to run against commits for regressions
  • Updated a lot of documentation, with a plan to do more when I can
  • Added new API's for different meteorologic sunsets other than the standard one

This release does to primary things

  1. Adds the ability to calculate Astronomical, Nautical, and Civil sunrise and sunset
  2. Adds the ability to use fractional timezones

Beyond that, I have discovered the following issues

  1. ESP8266 does not handle this code well

The ESP notes are in the README on the front page, but the 8266 is probably not the best choice to use with this code as it doesn't always work. It basically proves that whatever system you use, it must be 32 bits and must have a dedicated FPU. The 8266 doesn't seem to have a true dedicated FPU, which is why you probably shouldn't use it.

Test results
Linux G++ Ubuntu 20.04

[==========] Running 20 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 20 tests from SunsetTesting
[ RUN      ] SunsetTesting.ValidReturnValueSunrise
[       OK ] SunsetTesting.ValidReturnValueSunrise (0 ms)
[ RUN      ] SunsetTesting.ValidReturnValueSunset
[       OK ] SunsetTesting.ValidReturnValueSunset (0 ms)
[ RUN      ] SunsetTesting.MoonPhase
[       OK ] SunsetTesting.MoonPhase (0 ms)
[ RUN      ] SunsetTesting.NegativeLatitudeCapeTown
[       OK ] SunsetTesting.NegativeLatitudeCapeTown (1 ms)
[ RUN      ] SunsetTesting.PositiveLongitudeMoscow
[       OK ] SunsetTesting.PositiveLongitudeMoscow (0 ms)
[ RUN      ] SunsetTesting.AllNegativeBuenosAires
[       OK ] SunsetTesting.AllNegativeBuenosAires (0 ms)
[ RUN      ] SunsetTesting.ValidAstronomicalSunriseArlingtonHeights
[       OK ] SunsetTesting.ValidAstronomicalSunriseArlingtonHeights (0 ms)
[ RUN      ] SunsetTesting.ValidAstronomicalSunsetArlingtonHeights
[       OK ] SunsetTesting.ValidAstronomicalSunsetArlingtonHeights (0 ms)
[ RUN      ] SunsetTesting.ValidNauticalSunriseArlingtonHeights
[       OK ] SunsetTesting.ValidNauticalSunriseArlingtonHeights (0 ms)
[ RUN      ] SunsetTesting.ValidNauticalSunsetArlingtonHeights
[       OK ] SunsetTesting.ValidNauticalSunsetArlingtonHeights (0 ms)
[ RUN      ] SunsetTesting.ValidCivilSunriseArlingtonHeights
[       OK ] SunsetTesting.ValidCivilSunriseArlingtonHeights (0 ms)
[ RUN      ] SunsetTesting.ValidCivilSunsetArlingtonHeights
[       OK ] SunsetTesting.ValidCivilSunsetArlingtonHeights (0 ms)
[ RUN      ] SunsetTesting.ValidJulianDate
[       OK ] SunsetTesting.ValidJulianDate (0 ms)
[ RUN      ] SunsetTesting.HighLatitudeTestSummer
[       OK ] SunsetTesting.HighLatitudeTestSummer (0 ms)
[ RUN      ] SunsetTesting.HighLatitudeTestSpring
[       OK ] SunsetTesting.HighLatitudeTestSpring (0 ms)
[ RUN      ] SunsetTesting.HighLatitudeTestWinter
[       OK ] SunsetTesting.HighLatitudeTestWinter (0 ms)
[ RUN      ] SunsetTesting.SouthernMostPointMay
[       OK ] SunsetTesting.SouthernMostPointMay (0 ms)
[ RUN      ] SunsetTesting.SouthernMostPointWinter
[       OK ] SunsetTesting.SouthernMostPointWinter (0 ms)
[ RUN      ] SunsetTesting.ValidReturnFractionalTimezoneSunrise
[       OK ] SunsetTesting.ValidReturnFractionalTimezoneSunrise (0 ms)
[ RUN      ] SunsetTesting.ValidReturnFractionalTimezoneSunset
[       OK ] SunsetTesting.ValidReturnFractionalTimezoneSunset (0 ms)
[----------] 20 tests from SunsetTesting (1 ms total)

[----------] Global test environment tear-down
[==========] 20 tests from 1 test suite ran. (1 ms total)
[  PASSED  ] 20 tests.

Particle Photon 1.5.2

Serial monitor opened successfully:
Running test Arlington Heights Sunrise: passed
Running test Arlington Heights Sunset: passed
Running test Moonphase: passed
Running test Capetown Sunrise: passed
Running test Moscow Sunrise: passed
Running test Buenos Airies Sunrise: passed
Running test Astronomical Sunrise in Arlington Heights: passed
Running test Astronomical Sunset in Arlington Heights: passed
Running test Nautical Sunrise in Arlington Heights: passed
Running test Nautical Sunset in Arlington Heights: passed
Running test Civil Sunrise in Arlington Heights: passed
Running test Civil Sunset in Arlington Heights: passed
Running test Valid Julian Date: passed
Running test Point Barrow Summer: passed
Running test Point Barrow Sprint: passed
Running test Point Barrow Winter: passed
Running test Usharia Argentina May: passed
Running test Usharia Argentina Winter: passed
Running test Fractional Sunrise IST: passed
Running test Fractional Sunset IST: passed
Running test Check above 67: passed