Re: [weewx-user] It never rains, but apparently it pours .....

2021-03-30 Thread Colin Larsen
OK, so used epoch time to find the records I want to delete (with rain and
rainRate), now do I just delete them or do they need to be replaced by null
(or 0.0?). I may need a hand with the correct syntax for that please

*pi@wduino*:*~ $* echo "SELECT rainRate FROM archive WHERE (dateTime >
1617159600);" | sudo sqlite3 /var/lib/weewx/weewx.sdb

0.0419816511200587

0.0

0.0

0.0

0.0

0.0

0.0

0.0

279.980998292116

247.545269518011

19.3118544276522

13.7807155122679

5.58392519958292

0.957907401564173

4.75823850308484

5.67484207064662

0.84798164620346

0.0

0.0

0.0

0.0

0.0

0.0

0.0

0.0

0.0

0.0

0.0

*pi@wduino*:*~ $*

On Wed, 31 Mar 2021 at 18:05, Colin Larsen  wrote:

> I'm thinking that the easiest road here is to delete (or null??) all of
> todays rain data. So that would be 'rain' and 'rainRate'?
>
> Thanks
> Colin
>
> On Wed, 31 Mar 2021 at 17:44, colin@gmail.com 
> wrote:
>
>> It's not my week lol!
>>
>> Now that I've rebuilt Weewx my weather station decided to go rogue and
>> tell me it rained about 500mm in the last hour. I've stopped it thinking
>> it's raining but now how do I get rid of the rogue data from the database
>> in Weewx? I did a search for all kinds of database issues here but my
>> search fu is failing me.
>>
>> Cheers for any help (and yes I have no doubt it's easy!)
>>
>> Colin
>>
>> --
>> 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/ce3e4ec1-e936-487e-8df8-ebd96d376619n%40googlegroups.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CACjxfUt%2BC2f%3D8796Ayg43%3D%2Bh7aKOKLwENfjUMruWpjocgeto4Q%40mail.gmail.com.


Re: [weewx-user] It never rains, but apparently it pours .....

2021-03-30 Thread Colin Larsen
I'm thinking that the easiest road here is to delete (or null??) all of
todays rain data. So that would be 'rain' and 'rainRate'?

Thanks
Colin

On Wed, 31 Mar 2021 at 17:44, colin@gmail.com 
wrote:

> It's not my week lol!
>
> Now that I've rebuilt Weewx my weather station decided to go rogue and
> tell me it rained about 500mm in the last hour. I've stopped it thinking
> it's raining but now how do I get rid of the rogue data from the database
> in Weewx? I did a search for all kinds of database issues here but my
> search fu is failing me.
>
> Cheers for any help (and yes I have no doubt it's easy!)
>
> Colin
>
> --
> 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/ce3e4ec1-e936-487e-8df8-ebd96d376619n%40googlegroups.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CACjxfUvn%2B5Mxv%3D%3DR4LDA6sx_Q6QzA%2BejNCR7B-8C8NgSpLKtrg%40mail.gmail.com.


[weewx-user] It never rains, but apparently it pours .....

2021-03-30 Thread colin....@gmail.com
It's not my week lol!

Now that I've rebuilt Weewx my weather station decided to go rogue and tell 
me it rained about 500mm in the last hour. I've stopped it thinking it's 
raining but now how do I get rid of the rogue data from the database in 
Weewx? I did a search for all kinds of database issues here but my search 
fu is failing me.

Cheers for any help (and yes I have no doubt it's easy!)

Colin

-- 
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/ce3e4ec1-e936-487e-8df8-ebd96d376619n%40googlegroups.com.


Re: [weewx-user] Problem with upgrade

2021-03-30 Thread Colin Larsen
Hi Vince

Well when I started the process I didn't actually think that the sdcard was
bad, I just needed more space to do the OS and Weewx upgrade. And then
.. your second suggestion is exactly what ended up happening :)

But certainly a valuable lesson in the vital things to have backed up other
than what's covered in the general documentation

Cheers
Colin

On Wed, 31 Mar 2021 at 16:04, vince  wrote:

> For the future, never 'copy' a possibly bad SD to a new SD card.  All
> you're doing then is switching which physical media the bad bits are on.
>
> Reimage the os onto the new card with Balena Etcher or similar imaging
> software, put it in the pi,  and reinstall any added software like weewx
> onto it.  Then restore your database.'That' is a clean reinstallation.
>
> --
> 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/22233ebc-bc8b-4732-83a7-ec39cb510be5n%40googlegroups.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CACjxfUsW%3DRKFybi99tus1z%2BWNK9hLeDd4SSeMcaoTXtw5j0FDg%40mail.gmail.com.


[weewx-user] Re: Weather Day Start

2021-03-30 Thread gjr80
I presume that you don't want to actually start WeeWX at a given time but 
rather you want your rainfall stats to be from 0700 to 0700 daily rather 
than midnight to midnight? If so that can't be done without substantial 
changes to the WeeWX code base. If you search this forum for 'rain since 
9am' you will find a number of related threads and you will find one or two 
WeeWX extensions that can be used to display rainfall since a given time. 
>From memory these extensions only give you rainfall from 0900 (or whatever 
time you set) for the current day, all historical aggregates, eg rainfall 
this week, this month, this year are still midnight to midnight based.

Gary

On Wednesday, 31 March 2021 at 13:02:46 UTC+10 NightTripper wrote:

> Anyone
>
> On Wednesday, March 17, 2021 at 2:43:35 PM UTC-5 NightTripper wrote:
>
>> I've found where you can modify the program to start at a specific time. 
>> But can this be added to the config file at an update.  In the US our rain 
>> day starts at 0700
>>
>> Thank you
>> Night
>>
>

-- 
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/9dc55c83-7377-4900-886d-5b5191f50960n%40googlegroups.com.


Re: [weewx-user] Problem with upgrade

2021-03-30 Thread vince
For the future, never 'copy' a possibly bad SD to a new SD card.  All 
you're doing then is switching which physical media the bad bits are on.

Reimage the os onto the new card with Balena Etcher or similar imaging 
software, put it in the pi,  and reinstall any added software like weewx 
onto it.  Then restore your database.'That' is a clean reinstallation.

-- 
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/22233ebc-bc8b-4732-83a7-ec39cb510be5n%40googlegroups.com.


[weewx-user] Re: Weather Day Start

2021-03-30 Thread NightTripper
Anyone

On Wednesday, March 17, 2021 at 2:43:35 PM UTC-5 NightTripper wrote:

> I've found where you can modify the program to start at a specific time. 
> But can this be added to the config file at an update.  In the US our rain 
> day starts at 0700
>
> Thank you
> Night
>

-- 
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/335adb3d-383a-4de0-a60e-7fe9e224e38an%40googlegroups.com.


Re: [weewx-user] Problem with upgrade

2021-03-30 Thread Colin Larsen
Well this turned into a bit of a nightmare. After purchasing a bigger sd
card and copying the complete original card over i couldn't get the Pi to
boot. No problems I thought, I'll just go back to the original again
but no, that doesn't want to boot either!

So .complete rebuild of the system later (thank goodness I backed up
99% of the files I needed - and now I know a few more I need to backup as
well!)

I did manage to mount the original sd card on my Mac and recover some of
the other files that I needed as well, so all was not lost.

The upshot is I'm now on Weewx 4.4.0 with a nice big sd card. It was a nice
exercise but not one to repeat too often :)

Thanks
Colin

On Tue, 30 Mar 2021 at 15:03, Colin Larsen  wrote:

> OK, we're gonna need a bigger SD card! Lol, ran out of space on the 8 gig
> card, might as well just do a rebuild and then restore by backed up files :)
>
> Colin
>
> On Tue, 30 Mar 2021 at 13:24, Colin Larsen  wrote:
>
>> Thanks John, underway now, will post results when it finishes
>>
>> On Tue, 30 Mar 2021 at 13:11, John Kline  wrote:
>>
>>> Please run:
>>> sudo apt update
>>> sudo apt full-upgrade
>>>
>>> Then try your install.
>>>
>>> On Mar 29, 2021, at 4:52 PM, colin@gmail.com 
>>> wrote:
>>>
>>> Hi Team
>>>
>>> I'm attempting to upgrade from 4.0.0 to the latest version via Deb. Did
>>> a sudo apt-get update, then sudo apt-get install weewx as per the guide and
>>> came up with this error ..
>>>
>>> The following packages have unmet dependencies:
>>>
>>>  weewx : Depends: python3-cheetah but it is not installable
>>>
>>> E: Unable to correct problems, you have held broken packages.
>>>
>>> Tried to install it using sudo apt install python3-cheetah which failed
>>>
>>> Tried using Pip3 which said
>>>
>>> Requirement already satisfied: Cheetah3 in
>>> /usr/local/lib/python3.5/dist-packages
>>>
>>>
>>> Not quite sure where to go from here, any help appreciated.
>>>
>>>
>>> Cheers
>>>
>>> Colin
>>>
>>> --
>>> 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/8fae1af2-d0a6-40dc-bb75-3944e3af513an%40googlegroups.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 weewx-user+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/27EFCF67-B4F1-419B-B55C-78D7BDE8FDBC%40johnkline.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CACjxfUsc4p_6tsHCDjAyZcxP78Kcb_aeW30q%3DjLz7MttovxEhw%40mail.gmail.com.


Re: [weewx-user] Python error?

2021-03-30 Thread vince
On Tuesday, March 30, 2021 at 1:55:57 PM UTC-7 Mauro De Lauretis wrote:

> I still have the newest version of RPi OS, therefore I don't know what to 
> change.
> But it seems that the python in the system its gone. Maybe I have to do a 
> fresh install.
>

Considering how confused you seem to be, a full install on a new SD card 
would be your best idea I think.

Save your /home/weewx trees to another computer.Image a 'different' SD 
card with current Raspbian.  Install weewx.  Restore your database file. 
 Start weewx.

-- 
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/2252a346-b4a8-4e1b-bc03-133304c0fe26n%40googlegroups.com.


Re: [weewx-user] Python error?

2021-03-30 Thread John Kline
I you are running an up to date RPi OS Buster (the latest version), you should 
have Python 3.7 installed.

What do you get when you run the following 3 commands (my example bellows shows 
what you should get)?

jkline@judy:~ $ which python3
/usr/bin/python3
jkline@judy:~ $ python3 --version
Python 3.7.3
jkline@judy:~ $ ls -l /usr/bin/python3
lrwxrwxrwx 1 root root 9 Mar 26  2019 /usr/bin/python3 -> python3.7
jkline@judy:~ $ 

> On Mar 30, 2021, at 1:55 PM, Mauro De Lauretis  
> wrote:
> 
> I still have the newest version of RPi OS, therefore I don't know what to 
> change.
> But it seems that the python in the system its gone. Maybe I have to do a 
> fresh install.
> 
> 
> 
> Il giorno martedì 30 marzo 2021 alle 21:46:51 UTC+2 tke...@gmail.com ha 
> scritto:
>> Probably configobj was added to your "system" Python. That is, 
>> /usr/bin/python. 
>> 
>> Is there no way to upgrade your system Python? That would be best. If not, 
>> you will have to add configobj to your custom version of Python by using pip:
>> 
>> sudo /usr/local/bin/python -m pip install configobj
>> 
>> You'll have to do that for all the prerequisites:
>> 
>> sudo /usr/local/bin/python -m pip install Cheetah3
>> sudo /usr/local/bin/python -m pip install Pillow
>> sudo /usr/local/bin/python -m pip install pyserial
>> sudo /usr/local/bin/python -m pip install pyusb
>> sudo /usr/local/bin/python -m pip install pyephem
>> 
>> You can see that having to regularly specify the path to your custom 
>> interpreter will be a pain. Better to fix your installation. Why not upgrade 
>> your version of Raspberry Pi OS to something more modern?
>> 
>> -tk
>> 
>> 
>>> On Tue, Mar 30, 2021 at 11:55 AM Mauro De Lauretis  
>>> wrote:
>>> You had right, Tom.
>>> 
>>> Now the problem is that the installing process does not find the module 
>>> configojb, even it is correctly installed.
>>> 
>>> Il giorno martedì 30 marzo 2021 alle 17:19:25 UTC+2 tke...@gmail.com ha 
>>> scritto:
 No idea where that would put things. Try /usr/local/bin. 
 
> On Tue, Mar 30, 2021 at 8:16 AM Mauro De Lauretis  
> wrote:
> 
> I've installed it by downloading the package from python.org and then 
> "sudo make altinstall"
> Il giorno martedì 30 marzo 2021 alle 17:10:32 UTC+2 tke...@gmail.com ha 
> scritto:
>> How did you install it? Using apt-get? pyenv? Something else?
>> 
>>> On Tue, Mar 30, 2021 at 8:03 AM Mauro De Lauretis 
>>>  wrote:
>>> Thank you for your reply, Tom!
>>> 
>>> Actually I've installed the Python 3.8.4 version on my RPi, but I don't 
>>> have any folder of it in /usr/bin.
>>> 
>>> Any ideas why?
>>> 
>>> Mauro
>>> Il giorno martedì 30 marzo 2021 alle 16:45:26 UTC+2 tke...@gmail.com ha 
>>> scritto:
 This is definitely a Python version problem. You need Python 3.5 or 
 later. 
 
 If you simply run weewxd, the version of Python that it will use is 
 controlled by the "shebang" line in the file --- that is, the very 
 first line in weewxd. That, in turn, is set by whichever version of 
 Python you used to install WeeWX. My guess is that your shebang line 
 references Python 3.4.2. Check.
 
 Assuming that's the case, you have two choices:
 
 1. Reinstall, but this time make sure you're using Python 3.8 to do 
 the install. You may have to give an explicit path to Python to get 
 the version you want:
 
 /usr/bin/python3.8 setup.py install
 
 2. Or, run weewxd with the explicit version of Python. It may look 
 something like
 
 /usr/bin/python3.8 /home/weewx/bin/weewxd 
 
 -tk
 
 
> On Tue, Mar 30, 2021 at 4:44 AM Mauro De Lauretis 
>  wrote:
> Hi all,
> 
> I can't get Weewx to work since I've upgraded to the last released 
> version.
> This is what I get:
> 
> root@rasp_pineto:/home/weewx# tail -f /var/log/syslog
> 
> Mar 30 13:34:16 rasp_pineto systemd[1]: Starting LSB: weewx weather 
> system...
> 
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Initializing 
> weewx version 4.3.0
> 
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Using Python 
> 3.4.2 (default, Sep 16 2019, 19:58:00) #012[GCC 4.9.2]
> 
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Platform 
> Linux-4.19.42+-armv6l-with-debian-8.0
> 
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Locale is 
> 'it_IT.UTF-8'
> 
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: PID file is 
> /var/run/weewx.pid
> 
> Mar 30 13:34:20 rasp_pineto weewx[1322]: Starting weewx weather 
> system: weewx.
> 
> Mar 30 13:34:20 rasp_pineto 

Re: [weewx-user] Re: 4.4.0 bug?

2021-03-30 Thread John Kline
I had a user of my website report the same thing not so long ago.  It had me 
doing a double take.

> On Mar 30, 2021, at 2:01 PM, Matt Hannan  wrote:
> 
> 
> Never mind. I am a dope. It is mm/dd, not mm/yy. And it may have felt like 
> I've been trapped in the house for 20 years, but I really haven't been.
> 
> 
>> On Tue, Mar 30, 2021 at 4:57 PM gjr80  wrote:
>> OK, I’ll bite, and the bug is?
>> 
>> Gary
>>> On Wednesday, 31 March 2021 at 06:47:46 UTC+10 matth...@gmail.com wrote:
>>> I was just looking at my sensor's web page and switched to Year. I noticed 
>>> that the X axis has a bug in the labels. Not sure if anyone has seen this 
>>> or not. This is my first time posting here.
>>>  
>>> 2020 was a doozie for sure, but I am not sure if it is WeeWX's place to 
>>> whitewash it out of the history books! AHHAHAAHHAA
>>> All the charts display the same.
>> 
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/weewx-user/mR0cwPr0_rw/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/63e9ae6c-eb68-40b0-9a26-4d9c03b3ec15n%40googlegroups.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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/CAO3F_fVWHgU2b83eJwoYzEoDK7Nj-oKLuZWjfte4EXNGZxQ%3DsQ%40mail.gmail.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/B79FE5C2-1ECE-4425-BEA6-ADA8E064928E%40johnkline.com.


Re: [weewx-user] Re: 4.4.0 bug?

2021-03-30 Thread Matt Hannan
Never mind. I am a dope. It is mm/dd, not mm/yy. And it may have felt like
I've been trapped in the house for 20 years, but I really haven't been.


On Tue, Mar 30, 2021 at 4:57 PM gjr80  wrote:

> OK, I’ll bite, and the bug is?
>
> Gary
> On Wednesday, 31 March 2021 at 06:47:46 UTC+10 matth...@gmail.com wrote:
>
>> I was just looking at my sensor's web page and switched to Year. I
>> noticed that the X axis has a bug in the labels. Not sure if anyone has
>> seen this or not. This is my first time posting here.
>> [image: weewx_bug.png]
>> 2020 was a doozie for sure, but I am not sure if it is WeeWX's place to
>> whitewash it out of the history books! AHHAHAAHHAA
>> All the charts display the same.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/mR0cwPr0_rw/unsubscribe.
> To unsubscribe from this group and all its topics, 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/63e9ae6c-eb68-40b0-9a26-4d9c03b3ec15n%40googlegroups.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAO3F_fVWHgU2b83eJwoYzEoDK7Nj-oKLuZWjfte4EXNGZxQ%3DsQ%40mail.gmail.com.


[weewx-user] Re: 4.4.0 bug?

2021-03-30 Thread gjr80
OK, I’ll bite, and the bug is?

Gary
On Wednesday, 31 March 2021 at 06:47:46 UTC+10 matth...@gmail.com wrote:

> I was just looking at my sensor's web page and switched to Year. I noticed 
> that the X axis has a bug in the labels. Not sure if anyone has seen this 
> or not. This is my first time posting here.
> [image: weewx_bug.png] 
> 2020 was a doozie for sure, but I am not sure if it is WeeWX's place to 
> whitewash it out of the history books! AHHAHAAHHAA
> All the charts display the same.
>

-- 
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/63e9ae6c-eb68-40b0-9a26-4d9c03b3ec15n%40googlegroups.com.


Re: [weewx-user] Python error?

2021-03-30 Thread Mauro De Lauretis
I still have the newest version of RPi OS, therefore I don't know what to 
change.
But it seems that the python in the system its gone. Maybe I have to do a 
fresh install.



Il giorno martedì 30 marzo 2021 alle 21:46:51 UTC+2 tke...@gmail.com ha 
scritto:

> Probably configobj was added to your "system" Python. That is, 
> /usr/bin/python. 
>
> Is there no way to upgrade your system Python? That would be best. If not, 
> you will have to add configobj to your custom version of Python by using 
> pip:
>
> *sudo /usr/local/bin/python -m pip install configobj*
>
> You'll have to do that for all the prerequisites:
>
>
>
>
>
>
> *sudo /usr/local/bin/python -m pip install 
> Cheetah3sudo /usr/local/bin/python -m pip install 
> Pillowsudo /usr/local/bin/python -m pip install 
> pyserialsudo /usr/local/bin/python -m pip install 
> pyusbsudo /usr/local/bin/python -m pip install pyephem*
>
> You can see that having to regularly specify the path to your custom 
> interpreter will be a pain. Better to fix your installation. Why not 
> upgrade your version of Raspberry Pi OS to something more modern?
>
> -tk
>
>
> On Tue, Mar 30, 2021 at 11:55 AM Mauro De Lauretis  
> wrote:
>
>> You had right, Tom.
>>
>> Now the problem is that the installing process does not find the module 
>> configojb, even it is correctly installed.
>>
>> Il giorno martedì 30 marzo 2021 alle 17:19:25 UTC+2 tke...@gmail.com ha 
>> scritto:
>>
>>> No idea where that would put things. Try /usr/local/bin. 
>>>
>>> On Tue, Mar 30, 2021 at 8:16 AM Mauro De Lauretis  
>>> wrote:
>>>

 I've installed it by downloading the package from python.org and then 
 "sudo make altinstall"
 Il giorno martedì 30 marzo 2021 alle 17:10:32 UTC+2 tke...@gmail.com 
 ha scritto:

> How did you install it? Using apt-get? pyenv? Something else?
>
> On Tue, Mar 30, 2021 at 8:03 AM Mauro De Lauretis <
> mauro.de...@gmail.com> wrote:
>
>> Thank you for your reply, Tom!
>>
>> Actually I've installed the Python 3.8.4 version on my RPi, but I 
>> don't have any folder of it in /usr/bin.
>>
>> Any ideas why?
>>
>> Mauro
>> Il giorno martedì 30 marzo 2021 alle 16:45:26 UTC+2 tke...@gmail.com 
>> ha scritto:
>>
>>> This is definitely a Python version problem. You need Python 3.5 or 
>>> later. 
>>>
>>> If you simply run weewxd, the version of Python that it will use is 
>>> controlled by the "shebang" line in the file --- that is, the very 
>>> first 
>>> line in weewxd. That, in turn, is set by whichever version of 
>>> Python you used to install WeeWX. My guess is that your shebang line 
>>> references Python 3.4.2. Check.
>>>
>>> Assuming that's the case, you have two choices:
>>>
>>> 1. Reinstall, but this time make sure you're using Python 3.8 to do 
>>> the install. You may have to give an explicit path to Python to get the 
>>> version you want:
>>>
>>> */usr/bin/python3.8 setup.py install*
>>>
>>>
>>> 2. Or, run weewxd with the explicit version of Python. It may look 
>>> something like
>>>
>>> */usr/bin/python3.8 /home/weewx/bin/weewxd *
>>>
>>>
>>> -tk
>>>
>>>
>>> On Tue, Mar 30, 2021 at 4:44 AM Mauro De Lauretis <
>>> mauro.de...@gmail.com> wrote:
>>>
 Hi all,

 I can't get Weewx to work since I've upgraded to the last released 
 version.
 This is what I get:

 root@rasp_pineto:/home/weewx# tail -f /var/log/syslog

 Mar 30 13:34:16 rasp_pineto systemd[1]: Starting LSB: weewx weather 
 system...

 Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Initializing 
 weewx version 4.3.0

 Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Using Python 
 3.4.2 (default, Sep 16 2019, 19:58:00) #012[GCC 4.9.2]

 Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Platform 
 Linux-4.19.42+-armv6l-with-debian-8.0

 Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Locale is 
 'it_IT.UTF-8'

 Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: PID file is 
 /var/run/weewx.pid

 Mar 30 13:34:20 rasp_pineto weewx[1322]: Starting weewx weather 
 system: weewx.

 Mar 30 13:34:20 rasp_pineto systemd[1]: Started LSB: weewx weather 
 system.

 Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Using 
 configuration file /home/weewx/weewx.conf

 Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Debug is 0

 Mar 30 13:34:20 rasp_pineto weewx[1336] INFO weewx.engine: Loading 
 station type Vantage (weewx.drivers.vantage)

 Mar 30 13:34:20 rasp_pineto weewx[1336] ERROR weewx.engine: Import 
 of driver failed: unsupported 

[weewx-user] 4.4.0 bug?

2021-03-30 Thread Matt Hannan
I was just looking at my sensor's web page and switched to Year. I noticed 
that the X axis has a bug in the labels. Not sure if anyone has seen this 
or not. This is my first time posting here.
[image: weewx_bug.png] 
2020 was a doozie for sure, but I am not sure if it is WeeWX's place to 
whitewash it out of the history books! AHHAHAAHHAA
All the charts display the same.

-- 
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/0208b7cb-aa06-4c3e-9480-d6c063cf2464n%40googlegroups.com.


Re: [weewx-user] Python error?

2021-03-30 Thread Tom Keffer
Probably configobj was added to your "system" Python. That is,
/usr/bin/python.

Is there no way to upgrade your system Python? That would be best. If not,
you will have to add configobj to your custom version of Python by using
pip:

*sudo /usr/local/bin/python -m pip install configobj*

You'll have to do that for all the prerequisites:






*sudo /usr/local/bin/python -m pip install
Cheetah3sudo /usr/local/bin/python -m pip install
Pillowsudo /usr/local/bin/python -m pip install
pyserialsudo /usr/local/bin/python -m pip install
pyusbsudo /usr/local/bin/python -m pip install pyephem*

You can see that having to regularly specify the path to your custom
interpreter will be a pain. Better to fix your installation. Why not
upgrade your version of Raspberry Pi OS to something more modern?

-tk


On Tue, Mar 30, 2021 at 11:55 AM Mauro De Lauretis <
mauro.delaure...@gmail.com> wrote:

> You had right, Tom.
>
> Now the problem is that the installing process does not find the module
> configojb, even it is correctly installed.
>
> Il giorno martedì 30 marzo 2021 alle 17:19:25 UTC+2 tke...@gmail.com ha
> scritto:
>
>> No idea where that would put things. Try /usr/local/bin.
>>
>> On Tue, Mar 30, 2021 at 8:16 AM Mauro De Lauretis 
>> wrote:
>>
>>>
>>> I've installed it by downloading the package from python.org and then
>>> "sudo make altinstall"
>>> Il giorno martedì 30 marzo 2021 alle 17:10:32 UTC+2 tke...@gmail.com ha
>>> scritto:
>>>
 How did you install it? Using apt-get? pyenv? Something else?

 On Tue, Mar 30, 2021 at 8:03 AM Mauro De Lauretis <
 mauro.de...@gmail.com> wrote:

> Thank you for your reply, Tom!
>
> Actually I've installed the Python 3.8.4 version on my RPi, but I
> don't have any folder of it in /usr/bin.
>
> Any ideas why?
>
> Mauro
> Il giorno martedì 30 marzo 2021 alle 16:45:26 UTC+2 tke...@gmail.com
> ha scritto:
>
>> This is definitely a Python version problem. You need Python 3.5 or
>> later.
>>
>> If you simply run weewxd, the version of Python that it will use is
>> controlled by the "shebang" line in the file --- that is, the very first
>> line in weewxd. That, in turn, is set by whichever version of Python
>> you used to install WeeWX. My guess is that your shebang line references
>> Python 3.4.2. Check.
>>
>> Assuming that's the case, you have two choices:
>>
>> 1. Reinstall, but this time make sure you're using Python 3.8 to do
>> the install. You may have to give an explicit path to Python to get the
>> version you want:
>>
>> */usr/bin/python3.8 setup.py install*
>>
>>
>> 2. Or, run weewxd with the explicit version of Python. It may look
>> something like
>>
>> */usr/bin/python3.8 /home/weewx/bin/weewxd *
>>
>>
>> -tk
>>
>>
>> On Tue, Mar 30, 2021 at 4:44 AM Mauro De Lauretis <
>> mauro.de...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I can't get Weewx to work since I've upgraded to the last released
>>> version.
>>> This is what I get:
>>>
>>> root@rasp_pineto:/home/weewx# tail -f /var/log/syslog
>>>
>>> Mar 30 13:34:16 rasp_pineto systemd[1]: Starting LSB: weewx weather
>>> system...
>>>
>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Initializing
>>> weewx version 4.3.0
>>>
>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Using Python
>>> 3.4.2 (default, Sep 16 2019, 19:58:00) #012[GCC 4.9.2]
>>>
>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Platform
>>> Linux-4.19.42+-armv6l-with-debian-8.0
>>>
>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Locale is
>>> 'it_IT.UTF-8'
>>>
>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: PID file is
>>> /var/run/weewx.pid
>>>
>>> Mar 30 13:34:20 rasp_pineto weewx[1322]: Starting weewx weather
>>> system: weewx.
>>>
>>> Mar 30 13:34:20 rasp_pineto systemd[1]: Started LSB: weewx weather
>>> system.
>>>
>>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Using
>>> configuration file /home/weewx/weewx.conf
>>>
>>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Debug is 0
>>>
>>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO weewx.engine: Loading
>>> station type Vantage (weewx.drivers.vantage)
>>>
>>> Mar 30 13:34:20 rasp_pineto weewx[1336] ERROR weewx.engine: Import
>>> of driver failed: unsupported operand type(s) for %: 'bytes' and 'tuple'
>>> ()
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
>>>   Traceback (most recent call last):
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
>>> File "/home/weewx/bin/weewx/engine.py", line 119, in 
>>> setupStation
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
>>> 

Re: [weewx-user] Python error?

2021-03-30 Thread Mauro De Lauretis
You had right, Tom.

Now the problem is that the installing process does not find the module 
configojb, even it is correctly installed.

Il giorno martedì 30 marzo 2021 alle 17:19:25 UTC+2 tke...@gmail.com ha 
scritto:

> No idea where that would put things. Try /usr/local/bin. 
>
> On Tue, Mar 30, 2021 at 8:16 AM Mauro De Lauretis  
> wrote:
>
>>
>> I've installed it by downloading the package from python.org and then 
>> "sudo make altinstall"
>> Il giorno martedì 30 marzo 2021 alle 17:10:32 UTC+2 tke...@gmail.com ha 
>> scritto:
>>
>>> How did you install it? Using apt-get? pyenv? Something else?
>>>
>>> On Tue, Mar 30, 2021 at 8:03 AM Mauro De Lauretis  
>>> wrote:
>>>
 Thank you for your reply, Tom!

 Actually I've installed the Python 3.8.4 version on my RPi, but I don't 
 have any folder of it in /usr/bin.

 Any ideas why?

 Mauro
 Il giorno martedì 30 marzo 2021 alle 16:45:26 UTC+2 tke...@gmail.com 
 ha scritto:

> This is definitely a Python version problem. You need Python 3.5 or 
> later. 
>
> If you simply run weewxd, the version of Python that it will use is 
> controlled by the "shebang" line in the file --- that is, the very first 
> line in weewxd. That, in turn, is set by whichever version of Python 
> you used to install WeeWX. My guess is that your shebang line references 
> Python 3.4.2. Check.
>
> Assuming that's the case, you have two choices:
>
> 1. Reinstall, but this time make sure you're using Python 3.8 to do 
> the install. You may have to give an explicit path to Python to get the 
> version you want:
>
> */usr/bin/python3.8 setup.py install*
>
>
> 2. Or, run weewxd with the explicit version of Python. It may look 
> something like
>
> */usr/bin/python3.8 /home/weewx/bin/weewxd *
>
>
> -tk
>
>
> On Tue, Mar 30, 2021 at 4:44 AM Mauro De Lauretis <
> mauro.de...@gmail.com> wrote:
>
>> Hi all,
>>
>> I can't get Weewx to work since I've upgraded to the last released 
>> version.
>> This is what I get:
>>
>> root@rasp_pineto:/home/weewx# tail -f /var/log/syslog
>>
>> Mar 30 13:34:16 rasp_pineto systemd[1]: Starting LSB: weewx weather 
>> system...
>>
>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Initializing 
>> weewx version 4.3.0
>>
>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Using Python 
>> 3.4.2 (default, Sep 16 2019, 19:58:00) #012[GCC 4.9.2]
>>
>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Platform 
>> Linux-4.19.42+-armv6l-with-debian-8.0
>>
>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Locale is 
>> 'it_IT.UTF-8'
>>
>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: PID file is 
>> /var/run/weewx.pid
>>
>> Mar 30 13:34:20 rasp_pineto weewx[1322]: Starting weewx weather 
>> system: weewx.
>>
>> Mar 30 13:34:20 rasp_pineto systemd[1]: Started LSB: weewx weather 
>> system.
>>
>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Using 
>> configuration file /home/weewx/weewx.conf
>>
>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Debug is 0
>>
>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO weewx.engine: Loading 
>> station type Vantage (weewx.drivers.vantage)
>>
>> Mar 30 13:34:20 rasp_pineto weewx[1336] ERROR weewx.engine: Import of 
>> driver failed: unsupported operand type(s) for %: 'bytes' and 'tuple' 
>> ()
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>   Traceback (most recent call last):
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>   self.console = loader_function(config_dict, self)
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in 
>> loader
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>   return VantageService(engine, config_dict)
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in 
>> __init__
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>   Vantage.__init__(self, **config_dict[DRIVER_NAME])
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/drivers/vantage.py", line 515, in 
>> __init__
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>   self._setup()
>>
>> 

[weewx-user] Cloud Base

2021-03-30 Thread ginfo...@gmail.com
Good morning.
I cannot see the Cloud Base detection on my site, I was told that I need to 
update the weewx.conf file
How should I do?
Thanks and good luck to all

-- 
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/80777de3-e4ae-4a6a-885c-ecc8c5131cf5n%40googlegroups.com.


Re: [weewx-user] Python error?

2021-03-30 Thread Tom Keffer
No idea where that would put things. Try /usr/local/bin.

On Tue, Mar 30, 2021 at 8:16 AM Mauro De Lauretis <
mauro.delaure...@gmail.com> wrote:

>
> I've installed it by downloading the package from python.org and then
> "sudo make altinstall"
> Il giorno martedì 30 marzo 2021 alle 17:10:32 UTC+2 tke...@gmail.com ha
> scritto:
>
>> How did you install it? Using apt-get? pyenv? Something else?
>>
>> On Tue, Mar 30, 2021 at 8:03 AM Mauro De Lauretis 
>> wrote:
>>
>>> Thank you for your reply, Tom!
>>>
>>> Actually I've installed the Python 3.8.4 version on my RPi, but I don't
>>> have any folder of it in /usr/bin.
>>>
>>> Any ideas why?
>>>
>>> Mauro
>>> Il giorno martedì 30 marzo 2021 alle 16:45:26 UTC+2 tke...@gmail.com ha
>>> scritto:
>>>
 This is definitely a Python version problem. You need Python 3.5 or
 later.

 If you simply run weewxd, the version of Python that it will use is
 controlled by the "shebang" line in the file --- that is, the very first
 line in weewxd. That, in turn, is set by whichever version of Python
 you used to install WeeWX. My guess is that your shebang line references
 Python 3.4.2. Check.

 Assuming that's the case, you have two choices:

 1. Reinstall, but this time make sure you're using Python 3.8 to do the
 install. You may have to give an explicit path to Python to get the version
 you want:

 */usr/bin/python3.8 setup.py install*


 2. Or, run weewxd with the explicit version of Python. It may look
 something like

 */usr/bin/python3.8 /home/weewx/bin/weewxd *


 -tk


 On Tue, Mar 30, 2021 at 4:44 AM Mauro De Lauretis <
 mauro.de...@gmail.com> wrote:

> Hi all,
>
> I can't get Weewx to work since I've upgraded to the last released
> version.
> This is what I get:
>
> root@rasp_pineto:/home/weewx# tail -f /var/log/syslog
>
> Mar 30 13:34:16 rasp_pineto systemd[1]: Starting LSB: weewx weather
> system...
>
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Initializing
> weewx version 4.3.0
>
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Using Python
> 3.4.2 (default, Sep 16 2019, 19:58:00) #012[GCC 4.9.2]
>
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Platform
> Linux-4.19.42+-armv6l-with-debian-8.0
>
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Locale is
> 'it_IT.UTF-8'
>
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: PID file is
> /var/run/weewx.pid
>
> Mar 30 13:34:20 rasp_pineto weewx[1322]: Starting weewx weather
> system: weewx.
>
> Mar 30 13:34:20 rasp_pineto systemd[1]: Started LSB: weewx weather
> system.
>
> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Using
> configuration file /home/weewx/weewx.conf
>
> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Debug is 0
>
> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO weewx.engine: Loading
> station type Vantage (weewx.drivers.vantage)
>
> Mar 30 13:34:20 rasp_pineto weewx[1336] ERROR weewx.engine: Import of
> driver failed: unsupported operand type(s) for %: 'bytes' and 'tuple'
> ()
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
>   Traceback (most recent call last):
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
>   self.console = loader_function(config_dict, self)
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in 
> loader
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
>   return VantageService(engine, config_dict)
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in
> __init__
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
>   Vantage.__init__(self, **config_dict[DRIVER_NAME])
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 515, in
> __init__
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
>   self._setup()
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 1326, in
> _setup
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
>   unit_bits  = self._getEEPROM_value(0x29)[0]
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:
> File 

Re: [weewx-user] Python error?

2021-03-30 Thread Mauro De Lauretis

I've installed it by downloading the package from python.org and then "sudo 
make altinstall"
Il giorno martedì 30 marzo 2021 alle 17:10:32 UTC+2 tke...@gmail.com ha 
scritto:

> How did you install it? Using apt-get? pyenv? Something else?
>
> On Tue, Mar 30, 2021 at 8:03 AM Mauro De Lauretis  
> wrote:
>
>> Thank you for your reply, Tom!
>>
>> Actually I've installed the Python 3.8.4 version on my RPi, but I don't 
>> have any folder of it in /usr/bin.
>>
>> Any ideas why?
>>
>> Mauro
>> Il giorno martedì 30 marzo 2021 alle 16:45:26 UTC+2 tke...@gmail.com ha 
>> scritto:
>>
>>> This is definitely a Python version problem. You need Python 3.5 or 
>>> later. 
>>>
>>> If you simply run weewxd, the version of Python that it will use is 
>>> controlled by the "shebang" line in the file --- that is, the very first 
>>> line in weewxd. That, in turn, is set by whichever version of Python 
>>> you used to install WeeWX. My guess is that your shebang line references 
>>> Python 3.4.2. Check.
>>>
>>> Assuming that's the case, you have two choices:
>>>
>>> 1. Reinstall, but this time make sure you're using Python 3.8 to do the 
>>> install. You may have to give an explicit path to Python to get the version 
>>> you want:
>>>
>>> */usr/bin/python3.8 setup.py install*
>>>
>>>
>>> 2. Or, run weewxd with the explicit version of Python. It may look 
>>> something like
>>>
>>> */usr/bin/python3.8 /home/weewx/bin/weewxd *
>>>
>>>
>>> -tk
>>>
>>>
>>> On Tue, Mar 30, 2021 at 4:44 AM Mauro De Lauretis  
>>> wrote:
>>>
 Hi all,

 I can't get Weewx to work since I've upgraded to the last released 
 version.
 This is what I get:

 root@rasp_pineto:/home/weewx# tail -f /var/log/syslog

 Mar 30 13:34:16 rasp_pineto systemd[1]: Starting LSB: weewx weather 
 system...

 Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Initializing 
 weewx version 4.3.0

 Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Using Python 
 3.4.2 (default, Sep 16 2019, 19:58:00) #012[GCC 4.9.2]

 Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Platform 
 Linux-4.19.42+-armv6l-with-debian-8.0

 Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Locale is 
 'it_IT.UTF-8'

 Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: PID file is 
 /var/run/weewx.pid

 Mar 30 13:34:20 rasp_pineto weewx[1322]: Starting weewx weather system: 
 weewx.

 Mar 30 13:34:20 rasp_pineto systemd[1]: Started LSB: weewx weather 
 system.

 Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Using 
 configuration file /home/weewx/weewx.conf

 Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Debug is 0

 Mar 30 13:34:20 rasp_pineto weewx[1336] INFO weewx.engine: Loading 
 station type Vantage (weewx.drivers.vantage)

 Mar 30 13:34:20 rasp_pineto weewx[1336] ERROR weewx.engine: Import of 
 driver failed: unsupported operand type(s) for %: 'bytes' and 'tuple' 
 ()

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
   Traceback (most recent call last):

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
 File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
   self.console = loader_function(config_dict, self)

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
 File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
   return VantageService(engine, config_dict)

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
 File "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in 
 __init__

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
   Vantage.__init__(self, **config_dict[DRIVER_NAME])

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
 File "/home/weewx/bin/weewx/drivers/vantage.py", line 515, in 
 __init__

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
   self._setup()

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
 File "/home/weewx/bin/weewx/drivers/vantage.py", line 1326, in 
 _setup

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
   unit_bits  = self._getEEPROM_value(0x29)[0]

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
 File "/home/weewx/bin/weewx/drivers/vantage.py", line 1384, in 
 _getEEPROM_value

 Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
   command = b"EEBRD %X %X\n" % (offset, nbytes)

 Mar 

Re: [weewx-user] Python error?

2021-03-30 Thread Tom Keffer
How did you install it? Using apt-get? pyenv? Something else?

On Tue, Mar 30, 2021 at 8:03 AM Mauro De Lauretis <
mauro.delaure...@gmail.com> wrote:

> Thank you for your reply, Tom!
>
> Actually I've installed the Python 3.8.4 version on my RPi, but I don't
> have any folder of it in /usr/bin.
>
> Any ideas why?
>
> Mauro
> Il giorno martedì 30 marzo 2021 alle 16:45:26 UTC+2 tke...@gmail.com ha
> scritto:
>
>> This is definitely a Python version problem. You need Python 3.5 or
>> later.
>>
>> If you simply run weewxd, the version of Python that it will use is
>> controlled by the "shebang" line in the file --- that is, the very first
>> line in weewxd. That, in turn, is set by whichever version of Python you
>> used to install WeeWX. My guess is that your shebang line references Python
>> 3.4.2. Check.
>>
>> Assuming that's the case, you have two choices:
>>
>> 1. Reinstall, but this time make sure you're using Python 3.8 to do the
>> install. You may have to give an explicit path to Python to get the version
>> you want:
>>
>> */usr/bin/python3.8 setup.py install*
>>
>>
>> 2. Or, run weewxd with the explicit version of Python. It may look
>> something like
>>
>> */usr/bin/python3.8 /home/weewx/bin/weewxd *
>>
>>
>> -tk
>>
>>
>> On Tue, Mar 30, 2021 at 4:44 AM Mauro De Lauretis 
>> wrote:
>>
>>> Hi all,
>>>
>>> I can't get Weewx to work since I've upgraded to the last released
>>> version.
>>> This is what I get:
>>>
>>> root@rasp_pineto:/home/weewx# tail -f /var/log/syslog
>>>
>>> Mar 30 13:34:16 rasp_pineto systemd[1]: Starting LSB: weewx weather
>>> system...
>>>
>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Initializing
>>> weewx version 4.3.0
>>>
>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Using Python
>>> 3.4.2 (default, Sep 16 2019, 19:58:00) #012[GCC 4.9.2]
>>>
>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Platform
>>> Linux-4.19.42+-armv6l-with-debian-8.0
>>>
>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Locale is
>>> 'it_IT.UTF-8'
>>>
>>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: PID file is
>>> /var/run/weewx.pid
>>>
>>> Mar 30 13:34:20 rasp_pineto weewx[1322]: Starting weewx weather system:
>>> weewx.
>>>
>>> Mar 30 13:34:20 rasp_pineto systemd[1]: Started LSB: weewx weather
>>> system.
>>>
>>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Using
>>> configuration file /home/weewx/weewx.conf
>>>
>>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Debug is 0
>>>
>>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO weewx.engine: Loading
>>> station type Vantage (weewx.drivers.vantage)
>>>
>>> Mar 30 13:34:20 rasp_pineto weewx[1336] ERROR weewx.engine: Import of
>>> driver failed: unsupported operand type(s) for %: 'bytes' and 'tuple'
>>> ()
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>> Traceback (most recent call last):
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>>   File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>> self.console = loader_function(config_dict, self)
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>> return VantageService(engine, config_dict)
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in __init__
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>> Vantage.__init__(self, **config_dict[DRIVER_NAME])
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 515, in __init__
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>> self._setup()
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 1326, in _setup
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>> unit_bits  = self._getEEPROM_value(0x29)[0]
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 1384, in
>>> _getEEPROM_value
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>> command = b"EEBRD %X %X\n" % (offset, nbytes)
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>>> TypeError: unsupported operand type(s) for %: 'bytes' and 'tuple'
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL __main__: Unable to
>>> load driver: unsupported operand type(s) for %: 'bytes' and 'tuple'
>>>
>>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL __main__: 

Re: [weewx-user] Python error?

2021-03-30 Thread Mauro De Lauretis
Thank you for your reply, Tom!

Actually I've installed the Python 3.8.4 version on my RPi, but I don't 
have any folder of it in /usr/bin.

Any ideas why?

Mauro
Il giorno martedì 30 marzo 2021 alle 16:45:26 UTC+2 tke...@gmail.com ha 
scritto:

> This is definitely a Python version problem. You need Python 3.5 or later. 
>
> If you simply run weewxd, the version of Python that it will use is 
> controlled by the "shebang" line in the file --- that is, the very first 
> line in weewxd. That, in turn, is set by whichever version of Python you 
> used to install WeeWX. My guess is that your shebang line references Python 
> 3.4.2. Check.
>
> Assuming that's the case, you have two choices:
>
> 1. Reinstall, but this time make sure you're using Python 3.8 to do the 
> install. You may have to give an explicit path to Python to get the version 
> you want:
>
> */usr/bin/python3.8 setup.py install*
>
>
> 2. Or, run weewxd with the explicit version of Python. It may look 
> something like
>
> */usr/bin/python3.8 /home/weewx/bin/weewxd *
>
>
> -tk
>
>
> On Tue, Mar 30, 2021 at 4:44 AM Mauro De Lauretis  
> wrote:
>
>> Hi all,
>>
>> I can't get Weewx to work since I've upgraded to the last released 
>> version.
>> This is what I get:
>>
>> root@rasp_pineto:/home/weewx# tail -f /var/log/syslog
>>
>> Mar 30 13:34:16 rasp_pineto systemd[1]: Starting LSB: weewx weather 
>> system...
>>
>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Initializing weewx 
>> version 4.3.0
>>
>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Using Python 3.4.2 
>> (default, Sep 16 2019, 19:58:00) #012[GCC 4.9.2]
>>
>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Platform 
>> Linux-4.19.42+-armv6l-with-debian-8.0
>>
>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Locale is 
>> 'it_IT.UTF-8'
>>
>> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: PID file is 
>> /var/run/weewx.pid
>>
>> Mar 30 13:34:20 rasp_pineto weewx[1322]: Starting weewx weather system: 
>> weewx.
>>
>> Mar 30 13:34:20 rasp_pineto systemd[1]: Started LSB: weewx weather system.
>>
>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Using 
>> configuration file /home/weewx/weewx.conf
>>
>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Debug is 0
>>
>> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO weewx.engine: Loading 
>> station type Vantage (weewx.drivers.vantage)
>>
>> Mar 30 13:34:20 rasp_pineto weewx[1336] ERROR weewx.engine: Import of 
>> driver failed: unsupported operand type(s) for %: 'bytes' and 'tuple' 
>> ()
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>> Traceback (most recent call last):
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>>   File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>> self.console = loader_function(config_dict, self)
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>> return VantageService(engine, config_dict)
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in __init__
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>> Vantage.__init__(self, **config_dict[DRIVER_NAME])
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 515, in __init__
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>> self._setup()
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 1326, in _setup
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>> unit_bits  = self._getEEPROM_value(0x29)[0]
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 1384, in 
>> _getEEPROM_value
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>> command = b"EEBRD %X %X\n" % (offset, nbytes)
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
>> TypeError: unsupported operand type(s) for %: 'bytes' and 'tuple'
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL __main__: Unable to load 
>> driver: unsupported operand type(s) for %: 'bytes' and 'tuple'
>>
>> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL __main__:   
>> Exiting...
>>
>>
>>
>> I don't know why the system is using Python 3.4.2 even my default version 
>> is 3.8.4
>>
>>
>> root@rasp_pineto:/home/weewx# python -V
>>
>> Python 3.8.4
>>
>>
>> I've tried to rollback to the previous 

Re: [weewx-user] Python error?

2021-03-30 Thread Tom Keffer
This is definitely a Python version problem. You need Python 3.5 or later.

If you simply run weewxd, the version of Python that it will use is
controlled by the "shebang" line in the file --- that is, the very first
line in weewxd. That, in turn, is set by whichever version of Python you
used to install WeeWX. My guess is that your shebang line references Python
3.4.2. Check.

Assuming that's the case, you have two choices:

1. Reinstall, but this time make sure you're using Python 3.8 to do the
install. You may have to give an explicit path to Python to get the version
you want:

*/usr/bin/python3.8 setup.py install*


2. Or, run weewxd with the explicit version of Python. It may look
something like

*/usr/bin/python3.8 /home/weewx/bin/weewxd *


-tk


On Tue, Mar 30, 2021 at 4:44 AM Mauro De Lauretis <
mauro.delaure...@gmail.com> wrote:

> Hi all,
>
> I can't get Weewx to work since I've upgraded to the last released version.
> This is what I get:
>
> root@rasp_pineto:/home/weewx# tail -f /var/log/syslog
>
> Mar 30 13:34:16 rasp_pineto systemd[1]: Starting LSB: weewx weather
> system...
>
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Initializing weewx
> version 4.3.0
>
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Using Python 3.4.2
> (default, Sep 16 2019, 19:58:00) #012[GCC 4.9.2]
>
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Platform
> Linux-4.19.42+-armv6l-with-debian-8.0
>
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Locale is
> 'it_IT.UTF-8'
>
> Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: PID file is
> /var/run/weewx.pid
>
> Mar 30 13:34:20 rasp_pineto weewx[1322]: Starting weewx weather system:
> weewx.
>
> Mar 30 13:34:20 rasp_pineto systemd[1]: Started LSB: weewx weather system.
>
> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Using configuration
> file /home/weewx/weewx.conf
>
> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Debug is 0
>
> Mar 30 13:34:20 rasp_pineto weewx[1336] INFO weewx.engine: Loading station
> type Vantage (weewx.drivers.vantage)
>
> Mar 30 13:34:20 rasp_pineto weewx[1336] ERROR weewx.engine: Import of
> driver failed: unsupported operand type(s) for %: 'bytes' and 'tuple'
> ()
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
> Traceback (most recent call last):
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
> File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>   self.console = loader_function(config_dict, self)
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>   return VantageService(engine, config_dict)
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in __init__
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>   Vantage.__init__(self, **config_dict[DRIVER_NAME])
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 515, in __init__
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>   self._setup()
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 1326, in _setup
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>   unit_bits  = self._getEEPROM_value(0x29)[0]
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 1384, in
> _getEEPROM_value
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
>   command = b"EEBRD %X %X\n" % (offset, nbytes)
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
> TypeError: unsupported operand type(s) for %: 'bytes' and 'tuple'
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL __main__: Unable to load
> driver: unsupported operand type(s) for %: 'bytes' and 'tuple'
>
> Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL __main__: 
> Exiting...
>
>
>
> I don't know why the system is using Python 3.4.2 even my default version
> is 3.8.4
>
>
> root@rasp_pineto:/home/weewx# python -V
>
> Python 3.8.4
>
>
> I've tried to rollback to the previous version of Weewx, but I get the
> same error.
>
>
> Thank you for help
>
>
> Mauro
>
> --
> 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
> 

Re: [weewx-user] tag of the age of the moon (in days)

2021-03-30 Thread P C
Merci,

#set $moonDays = int(round(($current.dateTime.raw - 
$almanac.previous_new_moon.raw)/86400,0))

est parfait !

Le mardi 30 mars 2021 à 12:52:48 UTC+2, gjr80 a écrit :

> I have a similar requirement in WeeWX-WD. I use something along the lines 
> of:
>
> #set $moonAge = $time.gmtime($current.dateTime.raw - 
> $almanac.previous_new_moon.raw)
> #set $moonDays = int(round(($current.dateTime.raw - 
> $almanac.previous_new_moon.raw)/86400,0))
>
> $moonAge is the time since the previous new Moon in seconds, $moonDays is 
> the whole number of days since new Moon. Dividing by 86400 may not be 
> daylight saving safe but it is old code and good enough for my use, YMMV :)
>
> Gary
> On Tuesday, 30 March 2021 at 20:13:50 UTC+10 blaise@gmail.com wrote:
>
>> This because I have 29 images of the moon in its different phases :
>>
>> #set $md = int (($almanac.moon_fullness / 3.45) +.5)
>>
>> #set $fmd = "/images/lune- "+ str ($md) +" .png "
>> 
>> Lune & NBSP;: & nbsp; $almanac.moon_phase  $almanac.moon_fullness 
>> & nbsp;% 
>>  
>> 
>> Le 30-03-21 à 11:05, Tom Keffer a écrit :
>>
>> Could you use
>>
>>
>> #set $days=$almanac.moon.moon_fullness * .2953
>> The moon is $days days old.
>>
>> .2953 is the length of the lunar cycle, divided by 100.
>>
>>
>> On Tue, Mar 30, 2021 at 1:41 AM P C  wrote:
>>
>>>
>>> Hello, again me ;)
>>>
>>> I am looking for the tag of the age of the moon (in days) that goes from 
>>> New Moon in New Moon in 29 days. This means that the full moon is between 
>>> the 14th and the 15th day.
>>>
>>> NB: Pyephem is installed
>>>
>>> Thank you !
>>> -- 
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/1cfbff31-a41c-4da6-a12c-49b251e5f7e2n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>>
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/weewx-user/VCqOBb3Hhag/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/CAPq0zEADYLZQLTfzR30skH0yBvFDPEe3Zuw0w3vuwEGjmE5yMw%40mail.gmail.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a19c2735-34ef-4010-902a-e9d07aac93f4n%40googlegroups.com.


[weewx-user] Re: day is out of range for month

2021-03-30 Thread ginfo...@gmail.com
Thanks everyone, I solved with the developer of the skin.
Thanks again!!

Il giorno martedì 30 marzo 2021 alle 14:29:28 UTC+2 ginfo...@gmail.com ha 
scritto:

> Hi.
> I have this problem and my month page not updater, this is my syslog file:
>
> Mar 30 14:15:32 raspberrypi weewx[2487] ERROR weewx.cheetahgenerator: 
> Generate failed with exception ''
> Mar 30 14:15:32 raspberrypi weewx[2487] ERROR weewx.cheetahgenerator:  
> Ignoring template /home/weewx/skins/neowx-material/month.html.tmpl
> Mar 30 14:15:32 raspberrypi weewx[2487] ERROR weewx.cheetahgenerator:  
> Reason: *day is out of range for month*
>
> Thanks for help!
>

-- 
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/48f843e3-9ee5-4ceb-90c8-4c70da710c65n%40googlegroups.com.


[weewx-user] day is out of range for month

2021-03-30 Thread ginfo...@gmail.com
Hi.
I have this problem and my month page not updater, this is my syslog file:

Mar 30 14:15:32 raspberrypi weewx[2487] ERROR weewx.cheetahgenerator: 
Generate failed with exception ''
Mar 30 14:15:32 raspberrypi weewx[2487] ERROR weewx.cheetahgenerator:  
Ignoring template /home/weewx/skins/neowx-material/month.html.tmpl
Mar 30 14:15:32 raspberrypi weewx[2487] ERROR weewx.cheetahgenerator:  
Reason: *day is out of range for month*

Thanks for help!

-- 
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/c0443d58-f50f-4066-9030-6061ce64b0b6n%40googlegroups.com.


[weewx-user] Python error?

2021-03-30 Thread Mauro De Lauretis
Hi all,

I can't get Weewx to work since I've upgraded to the last released version.
This is what I get:

root@rasp_pineto:/home/weewx# tail -f /var/log/syslog

Mar 30 13:34:16 rasp_pineto systemd[1]: Starting LSB: weewx weather 
system...

Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Initializing weewx 
version 4.3.0

Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Using Python 3.4.2 
(default, Sep 16 2019, 19:58:00) #012[GCC 4.9.2]

Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Platform 
Linux-4.19.42+-armv6l-with-debian-8.0

Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: Locale is 
'it_IT.UTF-8'

Mar 30 13:34:19 rasp_pineto weewx[1332] INFO __main__: PID file is 
/var/run/weewx.pid

Mar 30 13:34:20 rasp_pineto weewx[1322]: Starting weewx weather system: 
weewx.

Mar 30 13:34:20 rasp_pineto systemd[1]: Started LSB: weewx weather system.

Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Using configuration 
file /home/weewx/weewx.conf

Mar 30 13:34:20 rasp_pineto weewx[1336] INFO __main__: Debug is 0

Mar 30 13:34:20 rasp_pineto weewx[1336] INFO weewx.engine: Loading station 
type Vantage (weewx.drivers.vantage)

Mar 30 13:34:20 rasp_pineto weewx[1336] ERROR weewx.engine: Import of 
driver failed: unsupported operand type(s) for %: 'bytes' and 'tuple' 
()

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
Traceback (most recent call last):

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
  self.console = loader_function(config_dict, self)

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
  return VantageService(engine, config_dict)

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/vantage.py", line 1898, in __init__

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
  Vantage.__init__(self, **config_dict[DRIVER_NAME])

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/vantage.py", line 515, in __init__

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
  self._setup()

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/vantage.py", line 1326, in _setup

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
  unit_bits  = self._getEEPROM_value(0x29)[0]

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/vantage.py", line 1384, in 
_getEEPROM_value

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine: 
  command = b"EEBRD %X %X\n" % (offset, nbytes)

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL weewx.engine:   
TypeError: unsupported operand type(s) for %: 'bytes' and 'tuple'

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL __main__: Unable to load 
driver: unsupported operand type(s) for %: 'bytes' and 'tuple'

Mar 30 13:34:21 rasp_pineto weewx[1336] CRITICAL __main__:   
Exiting...



I don't know why the system is using Python 3.4.2 even my default version 
is 3.8.4


root@rasp_pineto:/home/weewx# python -V

Python 3.8.4


I've tried to rollback to the previous version of Weewx, but I get the same 
error.


Thank you for help


Mauro

-- 
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/89977cb6-ece2-4441-bdf8-0fb5c5d46d5fn%40googlegroups.com.


Re: [weewx-user] tag of the age of the moon (in days)

2021-03-30 Thread gjr80
I have a similar requirement in WeeWX-WD. I use something along the lines 
of:

#set $moonAge = $time.gmtime($current.dateTime.raw - 
$almanac.previous_new_moon.raw)
#set $moonDays = int(round(($current.dateTime.raw - 
$almanac.previous_new_moon.raw)/86400,0))

$moonAge is the time since the previous new Moon in seconds, $moonDays is 
the whole number of days since new Moon. Dividing by 86400 may not be 
daylight saving safe but it is old code and good enough for my use, YMMV :)

Gary
On Tuesday, 30 March 2021 at 20:13:50 UTC+10 blaise@gmail.com wrote:

> This because I have 29 images of the moon in its different phases :
>
> #set $md = int (($almanac.moon_fullness / 3.45) +.5)
>
> #set $fmd = "/images/lune- "+ str ($md) +" .png "
> 
> Lune & NBSP;: & nbsp; $almanac.moon_phase  $almanac.moon_fullness 
> & nbsp;% 
>  
> 
> Le 30-03-21 à 11:05, Tom Keffer a écrit :
>
> Could you use
>
>
> #set $days=$almanac.moon.moon_fullness * .2953
> The moon is $days days old.
>
> .2953 is the length of the lunar cycle, divided by 100.
>
>
> On Tue, Mar 30, 2021 at 1:41 AM P C  wrote:
>
>>
>> Hello, again me ;)
>>
>> I am looking for the tag of the age of the moon (in days) that goes from 
>> New Moon in New Moon in 29 days. This means that the full moon is between 
>> the 14th and the 15th day.
>>
>> NB: Pyephem is installed
>>
>> Thank you !
>> -- 
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/1cfbff31-a41c-4da6-a12c-49b251e5f7e2n%40googlegroups.com
>>  
>> 
>> .
>>
> -- 
>
> You received this message because you are subscribed to a topic in the 
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/weewx-user/VCqOBb3Hhag/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> weewx-user+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEADYLZQLTfzR30skH0yBvFDPEe3Zuw0w3vuwEGjmE5yMw%40mail.gmail.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9e62f75c-5cd8-4f89-95af-fd4a521be538n%40googlegroups.com.


Re: [weewx-user] tag of the age of the moon (in days)

2021-03-30 Thread Blaise

This because I have 29 images of the moon in its different phases :

#set $md = int (($almanac.moon_fullness / 3.45) +.5)
#set $fmd = "/images/lune- "+ str ($md) +" .png "

    Lune & NBSP;: & nbsp; $almanac.moon_phase  
$almanac.moon_fullness & nbsp;% 

     


Le 30-03-21 à 11:05, Tom Keffer a écrit :

Could you use

    #set $days=$almanac.moon.moon_fullness * .2953
    The moon is $days days old.

.2953 is the length of the lunar cycle, divided by 100.

On Tue, Mar 30, 2021 at 1:41 AM P C > wrote:



Hello, again me ;)

I am looking for the tag of the age of the moon (in days) that
goes from New Moon in New Moon in 29 days. This means that the
full moon is between the 14th and the 15th day.

NB: Pyephem is installed

Thank you !
-- 
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/1cfbff31-a41c-4da6-a12c-49b251e5f7e2n%40googlegroups.com

.

--
You received this message because you are subscribed to a topic in the 
Google Groups "weewx-user" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/weewx-user/VCqOBb3Hhag/unsubscribe 
.
To unsubscribe from this group and all its topics, 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/CAPq0zEADYLZQLTfzR30skH0yBvFDPEe3Zuw0w3vuwEGjmE5yMw%40mail.gmail.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9bfd1a62-f8ee-069d-7f27-6c26493992ee%40gmail.com.


Re: [weewx-user] tag of the age of the moon (in days)

2021-03-30 Thread Blaise

Well no, Tom,

This tag gives "the lighting" of the moon: 100% = full moon, 0% = new moon.
So it goes from 0% to 0% (new moon) via 100% (full moon). It does not 
indicate the age of the moon, since we do not know where we come from 
and to what we are going.

I had the same idea: "#set $md = int (($almanac.moon_fullness / 3.45) +.5)"

PS: What is the difference between "$almanac.moon_fullness" and 
"$almanac.moon.moon_fullness"?


An other idea ?

thank you,

Pascal


Le 30-03-21 à 11:05, Tom Keffer a écrit :

Could you use

    #set $days=$almanac.moon.moon_fullness * .2953
    The moon is $days days old.

.2953 is the length of the lunar cycle, divided by 100.

On Tue, Mar 30, 2021 at 1:41 AM P C > wrote:



Hello, again me ;)

I am looking for the tag of the age of the moon (in days) that
goes from New Moon in New Moon in 29 days. This means that the
full moon is between the 14th and the 15th day.

NB: Pyephem is installed

Thank you !
-- 
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/1cfbff31-a41c-4da6-a12c-49b251e5f7e2n%40googlegroups.com

.

--
You received this message because you are subscribed to a topic in the 
Google Groups "weewx-user" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/weewx-user/VCqOBb3Hhag/unsubscribe 
.
To unsubscribe from this group and all its topics, 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/CAPq0zEADYLZQLTfzR30skH0yBvFDPEe3Zuw0w3vuwEGjmE5yMw%40mail.gmail.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/dcabfd69-bdc8-abb9-7714-40ac79c8132b%40gmail.com.


[weewx-user] British Geological Survey - earthquakes

2021-03-30 Thread Auchtermuchty Weather
Is anyone using the BGS as an earthquake server?

-- 
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/aa6a8f8b-a894-4627-9374-4e2ed94b0d40n%40googlegroups.com.


Re: [weewx-user] tag of the age of the moon (in days)

2021-03-30 Thread Tom Keffer
Could you use

#set $days=$almanac.moon.moon_fullness * .2953
The moon is $days days old.

.2953 is the length of the lunar cycle, divided by 100.

On Tue, Mar 30, 2021 at 1:41 AM P C  wrote:

>
> Hello, again me ;)
>
> I am looking for the tag of the age of the moon (in days) that goes from
> New Moon in New Moon in 29 days. This means that the full moon is between
> the 14th and the 15th day.
>
> NB: Pyephem is installed
>
> Thank you !
>
> --
> 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/1cfbff31-a41c-4da6-a12c-49b251e5f7e2n%40googlegroups.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEADYLZQLTfzR30skH0yBvFDPEe3Zuw0w3vuwEGjmE5yMw%40mail.gmail.com.


[weewx-user] tag of the age of the moon (in days)

2021-03-30 Thread P C

Hello, again me ;)

I am looking for the tag of the age of the moon (in days) that goes from 
New Moon in New Moon in 29 days. This means that the full moon is between 
the 14th and the 15th day.

NB: Pyephem is installed

Thank you !

-- 
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/1cfbff31-a41c-4da6-a12c-49b251e5f7e2n%40googlegroups.com.