Do you have several versions of Python on your machine? It's possible
pyephem was installed using one version, but you're trying to run weewxd
under another.

Try invoking python explicitly when you run wee_reports and weewxd. This
will guarantee that they are using the same version of Python:

*sudo python /usr/share/weewx/weewxd /etc/weewx/weewx.conf*
*sudo python /usr/share/weewx/wee_reports /etc/weewx/weewx.conf*

See if those give the same results.

-tk

On Sun, Mar 1, 2020 at 11:55 PM Jason Gill <jason.gill...@gmail.com> wrote:

> Hello,
>
> I added pyephem to show extra almanac info on my main page. When I moved
> weewx between servers this stopped working although the setup seems the
> same.
>
> Version Info:
> pyephem version is 3.7.7.0
> weewx version is v3.9.2
>
> When I run "sudo wee_reports  /etc/weewx/weewx.conf" (seen in another
> post) the main page reports the following extended almanac info after
> wee_reports completes
>
> Sun
> Start civil twilight: 06:40:25 AM
> Sunrise:         07:07:13 AM
> Transit:         01:33:21 PM
> Sunset:                 07:58:52 PM
> End civil twilight: 08:25:36 PM
> Equinox:         03/20/2020 04:49:32 PM
> Solstice:         06/21/2020 09:43:46 AM
>
> Moon
> Rise:         01:41:29 PM
> Transit: 06:55:13 PM
> Set:         12:04:19 AM
> Full moon: 03/10/2020 06:47:42 AM
> New moon: 03/24/2020 10:28:11 PM
> Phase:         First quarter (45% full)
>
> When the next periods data arrives the almanac returns to this:
>
> Sunrise: 07:07:36
> Sunset:         19:59:08
> Moon Phase: First quarter (50% full)
>
> The same config file is used for both wee_reports and when I restart
> weewx. Any ideas - I must have missed something?
>
> Regards,
> Jason.
>
>
>
>
>
> --
> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/c2f7ae08-3eb7-403d-a68e-0a2439f9e4e5%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/c2f7ae08-3eb7-403d-a68e-0a2439f9e4e5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEC8seRefDyyP3tBM5twuj6iWjsgLteU6tBwXF0WSg%3D-dA%40mail.gmail.com.

Reply via email to