Jacques replied on the issue. Repeating my follow-up here since he “filed” the issue here and on GitHub:

Hi Jacques,

You do have roe-dl's "Skyfield almanac 0.6" and "Skymap almanac 0.3" co-installed alongside wxskyfield 1.13.  You should pick one; but that is not what is causing this error.

I did find the problem — your WeeWX unit settings include group_deltatime = hour (check grep -r group_deltatime  /home/meteo/weewx-data/ to see where). That's a perfectly valid preference, but the Sky page assumed seconds when reading the almanac's visible value, so every duration collapsed to 0h 00m. This is fixed in the next release (1.14); which is imminent and will include a Beta of French translations (which I already had queued up).

Cheers,
John

On Jul 29, 2026, at 9:59 AM, John Kline <[email protected]> wrote:




On Jul 29, 2026, at 9:40 AM, Jacques Terrettaz <[email protected]> wrote:

John,
I don't know if it is related to my problems with the skin, , but I have a failed comparison when running your test scripts :

====================================================================================================== test session starts =======================================================================================================

platform linux -- Python 3.11.2, pytest-9.1.1, pluggy-1.6.0

rootdir: /home/meteo/weewx-skyfield-main

collected 428 items                                                                                                                                                                                                              


tests/test_almanac.py .........................................................F.......................................................................................................................................... [ 45%]

...........................................................................................................................................................................................                                [ 89%]

tests/test_sky_page.py .............................................                                                                                                                                                       [100%]


============================================================================================================ FAILURES ============================================================================================================

___________________________________________________________________________________ TestPhysicalAttributes.test_magnitudes_agree_with_pyephem ____________________________________________________________________________________


self = <test_almanac.TestPhysicalAttributes object at 0x7fff290fb0d0>, almanac = <weewx.almanac.Almanac object at 0x7fff28c7cd10>


    def test_magnitudes_agree_with_pyephem(self, almanac):

        ephem = pytest.importorskip('ephem')

        observer = pyephem_observer()

        for planet in ('mercury', 'venus', 'mars', 'jupiter', 'saturn', 'uranus', 'neptune',

                       'sun', 'moon', 'pluto'):

            body = getattr(ephem, planet.title())()

            body.compute(observer)

            # PyEphem uses older magnitude models, so agreement is loose.

>           assert getattr(almanac, planet).mag == pytest.approx(body.mag, abs=0.6), planet

E           AssertionError: moon

E           assert np.float64(-8.420329067365575) == -10.9 ± 0.6

E             

E             comparison failed

E             Obtained: -8.420329067365575

E             Expected: -10.9 ± 0.6


tests/test_almanac.py:656: AssertionError

======================================================================================================== warnings summary ========================================================================================================


--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/C72B29DD-F726-4F21-87C8-7E55EF6A63B2%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/B6A87C8B-1635-4138-AA07-1AB80071EFBA%40johnkline.com.

Reply via email to