[weewx-user] Re: trying to correct data but getting attempt to write a readonly database

2023-10-09 Thread jeremeyi
that worked!!!  Thanks!

On Monday, October 9, 2023 at 11:03:17 PM UTC-5 michael.k...@gmx.at wrote:

> Try
> echo "UPDATE archive SET rainRate=NULL WHERE (rainRate > 10);" | sudo 
> sqlite3 /var/tmp/backup.sdb
>
> jeremeyi schrieb am Dienstag, 10. Oktober 2023 um 06:01:59 UTC+2:
>
>> sudo echo "UPDATE archive SET rainRate=NULL WHERE (rainRate > 10);" | 
>> sqlite3 /var/tmp/backup.sdb
>>
>> On Monday, October 9, 2023 at 11:00:19 PM UTC-5 michael.k...@gmx.at 
>> wrote:
>>
>>> What exactly did you type when you say:
>>> >  I have tried with sudo with the same results
>>>
>>> jeremeyi schrieb am Dienstag, 10. Oktober 2023 um 05:43:20 UTC+2:
>>>
 I am trying to get rid of a couple of rain rate errors in my database 
 using the guide here

 https://github.com/weewx/weewx/wiki/Cleaning%20up%20old%20'bad'%20data

 when I run 
 echo "SELECT * FROM archive WHERE (rainRate > 10);" | sqlite3 
 /var/tmp/backup.sdb

 it shows the two records I need to get rid of but when I run

 echo "UPDATE archive SET rainRate=NULL WHERE (rainRate > 10);" | 
 sqlite3 /var/tmp/backup.sdb

 it says Error: near line 1: attempt to write a readonly database.  I 
 have tried with sudo with the same results
  

>>>

-- 
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/539603b8-cc4b-4d78-a141-c76d3fa5989fn%40googlegroups.com.


[weewx-user] Re: trying to correct data but getting attempt to write a readonly database

2023-10-09 Thread michael.k...@gmx.at
Try
echo "UPDATE archive SET rainRate=NULL WHERE (rainRate > 10);" | sudo 
sqlite3 /var/tmp/backup.sdb

jeremeyi schrieb am Dienstag, 10. Oktober 2023 um 06:01:59 UTC+2:

> sudo echo "UPDATE archive SET rainRate=NULL WHERE (rainRate > 10);" | 
> sqlite3 /var/tmp/backup.sdb
>
> On Monday, October 9, 2023 at 11:00:19 PM UTC-5 michael.k...@gmx.at wrote:
>
>> What exactly did you type when you say:
>> >  I have tried with sudo with the same results
>>
>> jeremeyi schrieb am Dienstag, 10. Oktober 2023 um 05:43:20 UTC+2:
>>
>>> I am trying to get rid of a couple of rain rate errors in my database 
>>> using the guide here
>>>
>>> https://github.com/weewx/weewx/wiki/Cleaning%20up%20old%20'bad'%20data
>>>
>>> when I run 
>>> echo "SELECT * FROM archive WHERE (rainRate > 10);" | sqlite3 
>>> /var/tmp/backup.sdb
>>>
>>> it shows the two records I need to get rid of but when I run
>>>
>>> echo "UPDATE archive SET rainRate=NULL WHERE (rainRate > 10);" | sqlite3 
>>> /var/tmp/backup.sdb
>>>
>>> it says Error: near line 1: attempt to write a readonly database.  I 
>>> have tried with sudo with the same results
>>>  
>>>
>>

-- 
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/59d17128-0e6c-415a-a754-08daa7c87e3en%40googlegroups.com.


[weewx-user] Re: trying to correct data but getting attempt to write a readonly database

2023-10-09 Thread jeremeyi
sudo echo "UPDATE archive SET rainRate=NULL WHERE (rainRate > 10);" | 
sqlite3 /var/tmp/backup.sdb

On Monday, October 9, 2023 at 11:00:19 PM UTC-5 michael.k...@gmx.at wrote:

> What exactly did you type when you say:
> >  I have tried with sudo with the same results
>
> jeremeyi schrieb am Dienstag, 10. Oktober 2023 um 05:43:20 UTC+2:
>
>> I am trying to get rid of a couple of rain rate errors in my database 
>> using the guide here
>>
>> https://github.com/weewx/weewx/wiki/Cleaning%20up%20old%20'bad'%20data
>>
>> when I run 
>> echo "SELECT * FROM archive WHERE (rainRate > 10);" | sqlite3 
>> /var/tmp/backup.sdb
>>
>> it shows the two records I need to get rid of but when I run
>>
>> echo "UPDATE archive SET rainRate=NULL WHERE (rainRate > 10);" | sqlite3 
>> /var/tmp/backup.sdb
>>
>> it says Error: near line 1: attempt to write a readonly database.  I have 
>> tried with sudo with the same results
>>  
>>
>

-- 
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/c2c6d3a0-ed6c-4afc-a6b5-5b1bcdb6302cn%40googlegroups.com.


[weewx-user] Re: trying to correct data but getting attempt to write a readonly database

2023-10-09 Thread michael.k...@gmx.at
What exactly did you type when you say:
>  I have tried with sudo with the same results

jeremeyi schrieb am Dienstag, 10. Oktober 2023 um 05:43:20 UTC+2:

> I am trying to get rid of a couple of rain rate errors in my database 
> using the guide here
>
> https://github.com/weewx/weewx/wiki/Cleaning%20up%20old%20'bad'%20data
>
> when I run 
> echo "SELECT * FROM archive WHERE (rainRate > 10);" | sqlite3 
> /var/tmp/backup.sdb
>
> it shows the two records I need to get rid of but when I run
>
> echo "UPDATE archive SET rainRate=NULL WHERE (rainRate > 10);" | sqlite3 
> /var/tmp/backup.sdb
>
> it says Error: near line 1: attempt to write a readonly database.  I have 
> tried with sudo with the same results
>  
>

-- 
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/1f40c8dd-9bfa-42ce-8f31-5671345a1dcen%40googlegroups.com.


[weewx-user] trying to correct data but getting attempt to write a readonly database

2023-10-09 Thread jeremeyi
I am trying to get rid of a couple of rain rate errors in my database using 
the guide here

https://github.com/weewx/weewx/wiki/Cleaning%20up%20old%20'bad'%20data

when I run 
echo "SELECT * FROM archive WHERE (rainRate > 10);" | sqlite3 
/var/tmp/backup.sdb

it shows the two records I need to get rid of but when I run

echo "UPDATE archive SET rainRate=NULL WHERE (rainRate > 10);" | sqlite3 
/var/tmp/backup.sdb

it says Error: near line 1: attempt to write a readonly database.  I have 
tried with sudo with the same results
 

-- 
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/065f218a-4a09-4f77-80fa-26b558a9d517n%40googlegroups.com.


Re: [weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread Tom Keffer
>
> My confusion is Patrick saying weewx works ok, how could that be if
> configobj was not there ?   Other than a python2 vs python3 thing, all I
> can suggest is reimage the pi if that becomes the only option.
>
>
This is why I have been asking for

*head /usr/share/weewx/wee_extension*


While you're at it, perhaps you can compare to weewxd:

*head /usr/share/weewx/weewxd*

-- 
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/CAPq0zECFLS8cEHPHbGtX2_yaQ_q7R9MX5Kdy8Ath7NPE109tng%40mail.gmail.com.


Re: [weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread salinois
Yes me too, but my sdcard crashed because sector poweroff. ( worked well 
since 3 years).


and I installed a new image.

Patrick

Le 10/10/2023 à 00:15, vince a écrit :
I'm afraid I have no more ideas.  MANY people run weewx on raspberry 
pi without issues.


On Monday, October 9, 2023 at 3:10:19 PM UTC-7 sali...@gmail.com wrote:

If this is the only solution I will re-image the PI but that's a
shame.
patrick

On Tuesday, October 10, 2023 at 12:03:29 AM UTC+2
sali...@gmail.com wrote:

I am OK with Vince, how weewx can work well ?
http://jurassikpat.ddns.net/weewx/ => my website.

patrick

On Monday, October 9, 2023 at 11:54:40 PM UTC+2 vince wrote:

yes I saw it was a dpkg installation - I was pointing him
to how to try to add the modules manually if any others
are missing.

Looking up the error he gets on Google I see

https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1
which says his dpkg stuff under the hood is corrupt, which
makes sense.

My confusion is Patrick saying weewx works ok, how could
that be if configobj was not there ? Other than a python2
vs python3 thing, all I can suggest is reimage the pi if
that becomes the only option.

On Monday, October 9, 2023 at 1:26:47 PM UTC-7 Tom Keffer
wrote:

He may have used a package installer (not setup.py or
pip).

Patrick, how did you install weewx? If you used a
package installer, it should have installed configobj
for you.

Also, what do you get for

*head /usr/share/weewx/wee_extension*

-tk


On Mon, Oct 9, 2023 at 1:12 PM vince
 wrote:

If you are on a debian-based operating system and
using python3

sudo pip3 install configobj

If you run into more missing modules see
https://www.weewx.com/docs/4.10/setup.htm

On Monday, October 9, 2023 at 11:41:06 AM UTC-7
sali...@gmail.com wrote:

hello,

now the skin "Season" is OK, I want to install
the skin" Belchertown" but I have this Error:

 sudo /usr/share/weewx/wee_extension --install
weewx-belchertown-release-1.3.1.tar.gz
Traceback (most recent call last):
  File "/usr/share/weewx/wee_extension", line
13, in 
    import weecfg.extension
  File "/usr/share/weewx/weecfg/__init__.py",
line 23, in 
    import configobj
ImportError: No module named configobj

I had already this error but I don't remenber
that I done to resolve.

Patrick

-- 
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/f9cdb923-7226-48e0-9005-2559cbcb25fdn%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/fd85f145-5298-460e-8c14-bc334b425ddfn%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/2fdead02-1744-4b6e-8172-b449f32734b0%40gmail.com.


Re: [weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread vince
I'm afraid I have no more ideas.  MANY people run weewx on raspberry pi 
without issues.

On Monday, October 9, 2023 at 3:10:19 PM UTC-7 sali...@gmail.com wrote:

> If this is the only solution I will re-image the PI but that's a shame. 
> patrick
>
> On Tuesday, October 10, 2023 at 12:03:29 AM UTC+2 sali...@gmail.com wrote:
>
>> I am OK with Vince, how weewx can work well ?
>> http://jurassikpat.ddns.net/weewx/  => my website.
>>
>> patrick
>>
>> On Monday, October 9, 2023 at 11:54:40 PM UTC+2 vince wrote:
>>
>>> yes I saw it was a dpkg installation - I was pointing him to how to try 
>>> to add the modules manually if any others are missing.
>>>
>>> Looking up the error he gets on Google I see 
>>> https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1
>>>  
>>> which says his dpkg stuff under the hood is corrupt, which makes sense.
>>>
>>> My confusion is Patrick saying weewx works ok, how could that be if 
>>> configobj was not there ?   Other than a python2 vs python3 thing, all I 
>>> can suggest is reimage the pi if that becomes the only option.
>>>
>>> On Monday, October 9, 2023 at 1:26:47 PM UTC-7 Tom Keffer wrote:
>>>
 He may have used a package installer (not setup.py or pip).

 Patrick, how did you install weewx? If you used a package installer, it 
 should have installed configobj for you.

 Also, what do you get for

 *head /usr/share/weewx/wee_extension*

 -tk


 On Mon, Oct 9, 2023 at 1:12 PM vince  wrote:

> If you are on a debian-based operating system and using python3
>
> sudo pip3 install configobj
>
> If you run into more missing modules see 
> https://www.weewx.com/docs/4.10/setup.htm
>
> On Monday, October 9, 2023 at 11:41:06 AM UTC-7 sali...@gmail.com 
> wrote:
>
>> hello,
>>
>> now the skin "Season" is OK, I want to install the skin" Belchertown" 
>> but I have this Error:
>>
>>  sudo /usr/share/weewx/wee_extension --install 
>> weewx-belchertown-release-1.3.1.tar.gz
>> Traceback (most recent call last):
>>   File "/usr/share/weewx/wee_extension", line 13, in 
>> import weecfg.extension
>>   File "/usr/share/weewx/weecfg/__init__.py", line 23, in 
>> import configobj
>> ImportError: No module named configobj
>>
>> I had already this error but I don't remenber that I done to resolve.
>>
>> Patrick
>>
> -- 
> 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/f9cdb923-7226-48e0-9005-2559cbcb25fdn%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/fd85f145-5298-460e-8c14-bc334b425ddfn%40googlegroups.com.


Re: [weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread sali...@gmail.com
 If this is the only solution I will re-image the PI but that's a shame. 
patrick

On Tuesday, October 10, 2023 at 12:03:29 AM UTC+2 sali...@gmail.com wrote:

> I am OK with Vince, how weewx can work well ?
> http://jurassikpat.ddns.net/weewx/  => my website.
>
> patrick
>
> On Monday, October 9, 2023 at 11:54:40 PM UTC+2 vince wrote:
>
>> yes I saw it was a dpkg installation - I was pointing him to how to try 
>> to add the modules manually if any others are missing.
>>
>> Looking up the error he gets on Google I see 
>> https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1 
>> which says his dpkg stuff under the hood is corrupt, which makes sense.
>>
>> My confusion is Patrick saying weewx works ok, how could that be if 
>> configobj was not there ?   Other than a python2 vs python3 thing, all I 
>> can suggest is reimage the pi if that becomes the only option.
>>
>> On Monday, October 9, 2023 at 1:26:47 PM UTC-7 Tom Keffer wrote:
>>
>>> He may have used a package installer (not setup.py or pip).
>>>
>>> Patrick, how did you install weewx? If you used a package installer, it 
>>> should have installed configobj for you.
>>>
>>> Also, what do you get for
>>>
>>> *head /usr/share/weewx/wee_extension*
>>>
>>> -tk
>>>
>>>
>>> On Mon, Oct 9, 2023 at 1:12 PM vince  wrote:
>>>
 If you are on a debian-based operating system and using python3

 sudo pip3 install configobj

 If you run into more missing modules see 
 https://www.weewx.com/docs/4.10/setup.htm

 On Monday, October 9, 2023 at 11:41:06 AM UTC-7 sali...@gmail.com 
 wrote:

> hello,
>
> now the skin "Season" is OK, I want to install the skin" Belchertown" 
> but I have this Error:
>
>  sudo /usr/share/weewx/wee_extension --install 
> weewx-belchertown-release-1.3.1.tar.gz
> Traceback (most recent call last):
>   File "/usr/share/weewx/wee_extension", line 13, in 
> import weecfg.extension
>   File "/usr/share/weewx/weecfg/__init__.py", line 23, in 
> import configobj
> ImportError: No module named configobj
>
> I had already this error but I don't remenber that I done to resolve.
>
> Patrick
>
 -- 
 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/f9cdb923-7226-48e0-9005-2559cbcb25fdn%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/40c22354-6edf-4e21-880b-a68e8fe85038n%40googlegroups.com.


Re: [weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread sali...@gmail.com
I am OK with Vince, how weewx can work well ?
http://jurassikpat.ddns.net/weewx/  => my website.

patrick

On Monday, October 9, 2023 at 11:54:40 PM UTC+2 vince wrote:

> yes I saw it was a dpkg installation - I was pointing him to how to try to 
> add the modules manually if any others are missing.
>
> Looking up the error he gets on Google I see 
> https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1 
> which says his dpkg stuff under the hood is corrupt, which makes sense.
>
> My confusion is Patrick saying weewx works ok, how could that be if 
> configobj was not there ?   Other than a python2 vs python3 thing, all I 
> can suggest is reimage the pi if that becomes the only option.
>
> On Monday, October 9, 2023 at 1:26:47 PM UTC-7 Tom Keffer wrote:
>
>> He may have used a package installer (not setup.py or pip).
>>
>> Patrick, how did you install weewx? If you used a package installer, it 
>> should have installed configobj for you.
>>
>> Also, what do you get for
>>
>> *head /usr/share/weewx/wee_extension*
>>
>> -tk
>>
>>
>> On Mon, Oct 9, 2023 at 1:12 PM vince  wrote:
>>
>>> If you are on a debian-based operating system and using python3
>>>
>>> sudo pip3 install configobj
>>>
>>> If you run into more missing modules see 
>>> https://www.weewx.com/docs/4.10/setup.htm
>>>
>>> On Monday, October 9, 2023 at 11:41:06 AM UTC-7 sali...@gmail.com wrote:
>>>
 hello,

 now the skin "Season" is OK, I want to install the skin" Belchertown" 
 but I have this Error:

  sudo /usr/share/weewx/wee_extension --install 
 weewx-belchertown-release-1.3.1.tar.gz
 Traceback (most recent call last):
   File "/usr/share/weewx/wee_extension", line 13, in 
 import weecfg.extension
   File "/usr/share/weewx/weecfg/__init__.py", line 23, in 
 import configobj
 ImportError: No module named configobj

 I had already this error but I don't remenber that I done to resolve.

 Patrick

>>> -- 
>>> 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/f9cdb923-7226-48e0-9005-2559cbcb25fdn%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/3c733565-61ab-4ccf-a181-ac509bdb550an%40googlegroups.com.


Re: [weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread vince
yes I saw it was a dpkg installation - I was pointing him to how to try to 
add the modules manually if any others are missing.

Looking up the error he gets on Google I 
see 
https://phoenixnap.com/kb/fix-sub-process-usr-bin-dpkg-returned-error-code-1 
which says his dpkg stuff under the hood is corrupt, which makes sense.

My confusion is Patrick saying weewx works ok, how could that be if 
configobj was not there ?   Other than a python2 vs python3 thing, all I 
can suggest is reimage the pi if that becomes the only option.

On Monday, October 9, 2023 at 1:26:47 PM UTC-7 Tom Keffer wrote:

> He may have used a package installer (not setup.py or pip).
>
> Patrick, how did you install weewx? If you used a package installer, it 
> should have installed configobj for you.
>
> Also, what do you get for
>
> *head /usr/share/weewx/wee_extension*
>
> -tk
>
>
> On Mon, Oct 9, 2023 at 1:12 PM vince  wrote:
>
>> If you are on a debian-based operating system and using python3
>>
>> sudo pip3 install configobj
>>
>> If you run into more missing modules see 
>> https://www.weewx.com/docs/4.10/setup.htm
>>
>> On Monday, October 9, 2023 at 11:41:06 AM UTC-7 sali...@gmail.com wrote:
>>
>>> hello,
>>>
>>> now the skin "Season" is OK, I want to install the skin" Belchertown" 
>>> but I have this Error:
>>>
>>>  sudo /usr/share/weewx/wee_extension --install 
>>> weewx-belchertown-release-1.3.1.tar.gz
>>> Traceback (most recent call last):
>>>   File "/usr/share/weewx/wee_extension", line 13, in 
>>> import weecfg.extension
>>>   File "/usr/share/weewx/weecfg/__init__.py", line 23, in 
>>> import configobj
>>> ImportError: No module named configobj
>>>
>>> I had already this error but I don't remenber that I done to resolve.
>>>
>>> Patrick
>>>
>> -- 
>> 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/f9cdb923-7226-48e0-9005-2559cbcb25fdn%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/c42b56ad-265d-4f0a-81f4-aabdc6e391ecn%40googlegroups.com.


Re: [weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread sali...@gmail.com
my version of pip3

 pip3 --version
pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)

On Monday, October 9, 2023 at 11:35:21 PM UTC+2 sali...@gmail.com wrote:

> $ /usr/share/weewx/wee_extension
> Traceback (most recent call last):
>   File "/usr/share/weewx/wee_extension", line 13, in 
> import weecfg.extension
>   File "/usr/share/weewx/weecfg/__init__.py", line 23, in 
> import configobj
> ImportError: No module named configobj
>
> On Monday, October 9, 2023 at 11:20:31 PM UTC+2 sali...@gmail.com wrote:
>
>> after the command:
>>
>> sudo apt update #
>>   sudo apt install python3-configobj 
>> sudo apt install python3-pil
>>  sudo apt install python3-serial
>>  sudo apt install python3-usb
>>  sudo apt install python3-pip 
>>
>> Des erreurs ont été rencontrées pendant l'exécution :
>>  python3
>>  python3-wheel
>>  python3-serial
>>  python3-six
>>  python3-pil:armhf
>>  python3-configobj
>>  python3-dev
>>  python3-pip
>>  python3-lib2to3
>>  python3-pkg-resources
>>  python3-distutils
>>  python3-setuptools
>>  python3-usb
>>  python3-olefile
>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>>
>> On Monday, October 9, 2023 at 11:08:17 PM UTC+2 Tom Keffer wrote:
>>
>>> How about..
>>>  
>>>
 Also, what do you get for
>
> *head /usr/share/weewx/wee_extension*
>

>>>  
>>>
>>

-- 
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/cd2aff43-38c9-44be-b840-c42b920e68ebn%40googlegroups.com.


Re: [weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread sali...@gmail.com
$ /usr/share/weewx/wee_extension
Traceback (most recent call last):
  File "/usr/share/weewx/wee_extension", line 13, in 
import weecfg.extension
  File "/usr/share/weewx/weecfg/__init__.py", line 23, in 
import configobj
ImportError: No module named configobj

On Monday, October 9, 2023 at 11:20:31 PM UTC+2 sali...@gmail.com wrote:

> after the command:
>
> sudo apt update #
>   sudo apt install python3-configobj 
> sudo apt install python3-pil
>  sudo apt install python3-serial
>  sudo apt install python3-usb
>  sudo apt install python3-pip 
>
> Des erreurs ont été rencontrées pendant l'exécution :
>  python3
>  python3-wheel
>  python3-serial
>  python3-six
>  python3-pil:armhf
>  python3-configobj
>  python3-dev
>  python3-pip
>  python3-lib2to3
>  python3-pkg-resources
>  python3-distutils
>  python3-setuptools
>  python3-usb
>  python3-olefile
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
> On Monday, October 9, 2023 at 11:08:17 PM UTC+2 Tom Keffer wrote:
>
>> How about..
>>  
>>
>>> Also, what do you get for

 *head /usr/share/weewx/wee_extension*

>>>
>>  
>>
>

-- 
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/4041a932-ac8d-41aa-b92a-78244d16bcdfn%40googlegroups.com.


Re: [weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread sali...@gmail.com
after the command:

sudo apt update #
  sudo apt install python3-configobj 
sudo apt install python3-pil
 sudo apt install python3-serial
 sudo apt install python3-usb
 sudo apt install python3-pip 

Des erreurs ont été rencontrées pendant l'exécution :
 python3
 python3-wheel
 python3-serial
 python3-six
 python3-pil:armhf
 python3-configobj
 python3-dev
 python3-pip
 python3-lib2to3
 python3-pkg-resources
 python3-distutils
 python3-setuptools
 python3-usb
 python3-olefile
E: Sub-process /usr/bin/dpkg returned an error code (1)

On Monday, October 9, 2023 at 11:08:17 PM UTC+2 Tom Keffer wrote:

> How about..
>  
>
>> Also, what do you get for
>>>
>>> *head /usr/share/weewx/wee_extension*
>>>
>>
>  
>

-- 
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/d183df64-22ab-49f3-8975-35a983702733n%40googlegroups.com.


Re: [weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread Tom Keffer
How about..


> Also, what do you get for
>>
>> *head /usr/share/weewx/wee_extension*
>>
>

-- 
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/CAPq0zEDVmpTtq4Fpt%3D2pwdVUY2Sn6ORQDy-HHUS0XPAWAzNa5w%40mail.gmail.com.


Re: [weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread sali...@gmail.com
I installed Weewx as " WeeWX: Installation on Debian-based systems "
My linux RPI is
 lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:Raspbian GNU/Linux 11 (bullseye)
Release:11
Codename:   bullseye

Weewx with skin works fine.

 /usr/share/weewx/wee_extension
Traceback (most recent call last):
  File "/usr/share/weewx/wee_extension", line 13, in 
import weecfg.extension
  File "/usr/share/weewx/weecfg/__init__.py", line 23, in 
import configobj
ImportError: No module named configobj

I go to try to follow the advice of Vince.
But I seem to have already done them.
I come back to you and I say you.

Patrick.




On Monday, October 9, 2023 at 10:26:47 PM UTC+2 Tom Keffer wrote:

> He may have used a package installer (not setup.py or pip).
>
> Patrick, how did you install weewx? If you used a package installer, it 
> should have installed configobj for you.
>
> Also, what do you get for
>
> *head /usr/share/weewx/wee_extension*
>
> -tk
>
>
> On Mon, Oct 9, 2023 at 1:12 PM vince  wrote:
>
>> If you are on a debian-based operating system and using python3
>>
>> sudo pip3 install configobj
>>
>> If you run into more missing modules see 
>> https://www.weewx.com/docs/4.10/setup.htm
>>
>> On Monday, October 9, 2023 at 11:41:06 AM UTC-7 sali...@gmail.com wrote:
>>
>>> hello,
>>>
>>> now the skin "Season" is OK, I want to install the skin" Belchertown" 
>>> but I have this Error:
>>>
>>>  sudo /usr/share/weewx/wee_extension --install 
>>> weewx-belchertown-release-1.3.1.tar.gz
>>> Traceback (most recent call last):
>>>   File "/usr/share/weewx/wee_extension", line 13, in 
>>> import weecfg.extension
>>>   File "/usr/share/weewx/weecfg/__init__.py", line 23, in 
>>> import configobj
>>> ImportError: No module named configobj
>>>
>>> I had already this error but I don't remenber that I done to resolve.
>>>
>>> Patrick
>>>
>> -- 
>> 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/f9cdb923-7226-48e0-9005-2559cbcb25fdn%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/8efbdbe2-10a0-4a70-8dbb-b7599303177bn%40googlegroups.com.


Re: [weewx-user] Introducing weewx-svg2png generator for creating thumbnail images and mini-pics in WeeWX

2023-10-09 Thread Lorin Tremblay
Ok now I’m generating a .png with the info in the right position, but the image 
is not present

So now I’m my webcam folder I have to orignal jpg image, a svg and a png with 
the text and no pictures.

I have done everything mentioned 


> move the template "snap.svg.tmpl" to the "webcam" sub-directory in your skin 
> directory (something like "/etc/weewx/skins/...”).à
So now the snap.svg.tmpl is residing in /etc/weewx/skins/Belchertown/webcam
> 
> Change the template line to "template = webcam/snap.svg.tmpl”.
Changed that in the skin.conf
> Change the file line to "file = webcam/snap".
Changed that in the skin.conf
> Double check "href="/webcam/snap.jpg"". Are you sure that is situated in the 
> root directory? May be you want to remove the slash at the beginning.
And remove the / so now is reads "href="webcam/snap.jpg"

So what I’m I missing?


> On 8 Oct 23, at 14:59, Karen K  wrote:
> 
> There is a path problem. First, use "file" with a relative path, i.e. without 
> "/var/www/html/weewx". Then, according to the template "snap.svg" is situated 
> in the base directory (I guess "/var/www/html/weewx"). But you look for it in 
> the "webcam" sub-directory.
> 
> So
> move the template "snap.svg.tmpl" to the "webcam" sub-directory in your skin 
> directory (something like "/etc/weewx/skins/...").
> Change the template line to "template = webcam/snap.svg.tmpl".
> Change the file line to "file = webcam/snap".
> Double check "href="/webcam/snap.jpg"". Are you sure that is situated in the 
> root directory? May be you want to remove the slash at the beginning.
> Lorin Tremblay schrieb am Sonntag, 8. Oktober 2023 um 18:00:27 UTC+2:
>> Thank was able to install it, now I know I’m close but I’m missing something.
>> 
>> Trying to add the info to my webcam with belchertown skins
>> 
>> Here is my webcam file path.
>> /var/www/html/weewx/webcam/snap.jpg
>> 
>> Here is the content of my snap.svg.tmpl 
>> 
>> 
>> 
>> > "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
>> http://www.w3.org/2000/svg"; version="1.1" width="2688" 
>> height="1512" viewBox="0 0 2688 1512">
>>   
>> text {
>> font-family: Roboto, sans-serif;
>> font-weight: 300;
>> line-height: 1.625;
>> margin: 0;
>> font-size: 48px;
>> fill: white;
>> }
>>   
>>   ## webcam image
>>   
>>   ## readings
>>   $current.outTemp 
>> $current.windSpeed $current.barometer
>> 
>> 
>> 
>> And here is the skin.conf
>> 
>> [SVGtoPNGGenerator]
>> [[file1]]
>> # file name without extension (optional)
>> file = /var/www/html/weewx/webcam/snap
>> # image width in pixels (optional)
>> #width = replace_me
>> # image height in pixels (optional)
>> #height = replace_me
>> 
>> 
>>[[[file1]]]
>> template = snap.svg.tmpl
>> 
>> [Generators]
>> generator_list = weewx.cheetahgenerator.CheetahGenerator, 
>> weewx.reportengine.CopyGenerator, user.belchertown.HighchartsJsonGenerator, 
>> user.svg2png.SVGtoPNGGenerator
>> 
>> 
>> The .svg is getting created but not the png….
>> 
>> Is there something to do with files path?
>> 
>> 
>> 
>> 
>> 
>>> On 8 Oct 23, at 01:45, Karen K > wrote:
>>> 
>> 
>>> I uploaded a fix. Please try again.
>>> 
>>> You can also copy svg2png.py to /usr/share/weewx/user by hand.
>>> 
>>> Lorin Tremblay schrieb am Sonntag, 8. Oktober 2023 um 02:41:03 UTC+2:
 I'm personally getting this error when I try to install it
 
 
 Request to install '/home/pi/Desktop/weewx-svg2png.zip'
 Extracting from zip archive /home/pi/Desktop/weewx-svg2png.zip
 Traceback (most recent call last):
   File "/usr/share/weewx/wee_extension", line 92, in 
 main()
   File "/usr/share/weewx/wee_extension", line 84, in main
 ext.install_extension(options.install)
   File "/usr/share/weewx/weecfg/extension.py", line 130, in 
 install_extension
 self.install_from_dir(extension_dir)
   File "/usr/share/weewx/weecfg/extension.py", line 150, in 
 install_from_dir
 installer_path, installer = 
 weecfg.get_extension_installer(extension_dir)
   File "/usr/share/weewx/weecfg/__init__.py", line 1904, in 
 get_extension_installer
 installer = loader()
   File "/var/tmp/weewx-svg2png-master/install.py", line 8, in loader
   File "/var/tmp/weewx-svg2png-master/install.py", line 12, in __init__
 NameError: name 'SNMPInstaller' is not defined
 
 I personally want to add the weather data to snapshot of my webcam…
 
 
 
> On 7 Oct 23, at 02:47, Karen K gmail.com > 
> wrote:
> 
 
> I added another example. It shows how to put WeeWX weather data onto a 
> webcam picture.
> 
> Webcam picture with WeeWX weather readings 
> 

Re: [weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread Tom Keffer
He may have used a package installer (not setup.py or pip).

Patrick, how did you install weewx? If you used a package installer, it
should have installed configobj for you.

Also, what do you get for

*head /usr/share/weewx/wee_extension*

-tk


On Mon, Oct 9, 2023 at 1:12 PM vince  wrote:

> If you are on a debian-based operating system and using python3
>
> sudo pip3 install configobj
>
> If you run into more missing modules see
> https://www.weewx.com/docs/4.10/setup.htm
>
> On Monday, October 9, 2023 at 11:41:06 AM UTC-7 sali...@gmail.com wrote:
>
>> hello,
>>
>> now the skin "Season" is OK, I want to install the skin" Belchertown" but
>> I have this Error:
>>
>>  sudo /usr/share/weewx/wee_extension --install
>> weewx-belchertown-release-1.3.1.tar.gz
>> Traceback (most recent call last):
>>   File "/usr/share/weewx/wee_extension", line 13, in 
>> import weecfg.extension
>>   File "/usr/share/weewx/weecfg/__init__.py", line 23, in 
>> import configobj
>> ImportError: No module named configobj
>>
>> I had already this error but I don't remenber that I done to resolve.
>>
>> Patrick
>>
> --
> 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/f9cdb923-7226-48e0-9005-2559cbcb25fdn%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/CAPq0zEADqQ66sb8UfU6Hj_vaEY%3DgQg_S6WB7CD65eSO35GKbvw%40mail.gmail.com.


[weewx-user] Re: install skin Belchertown with weewx 4.10.2

2023-10-09 Thread vince
If you are on a debian-based operating system and using python3

sudo pip3 install configobj

If you run into more missing modules see 
https://www.weewx.com/docs/4.10/setup.htm

On Monday, October 9, 2023 at 11:41:06 AM UTC-7 sali...@gmail.com wrote:

> hello,
>
> now the skin "Season" is OK, I want to install the skin" Belchertown" but 
> I have this Error:
>
>  sudo /usr/share/weewx/wee_extension --install 
> weewx-belchertown-release-1.3.1.tar.gz
> Traceback (most recent call last):
>   File "/usr/share/weewx/wee_extension", line 13, in 
> import weecfg.extension
>   File "/usr/share/weewx/weecfg/__init__.py", line 23, in 
> import configobj
> ImportError: No module named configobj
>
> I had already this error but I don't remenber that I done to resolve.
>
> Patrick
>

-- 
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/f9cdb923-7226-48e0-9005-2559cbcb25fdn%40googlegroups.com.


[weewx-user] install skin Belchertown with weewx 4.10.2

2023-10-09 Thread sali...@gmail.com
hello,

now the skin "Season" is OK, I want to install the skin" Belchertown" but I 
have this Error:

 sudo /usr/share/weewx/wee_extension --install 
weewx-belchertown-release-1.3.1.tar.gz
Traceback (most recent call last):
  File "/usr/share/weewx/wee_extension", line 13, in 
import weecfg.extension
  File "/usr/share/weewx/weecfg/__init__.py", line 23, in 
import configobj
ImportError: No module named configobj

I had already this error but I don't remenber that I done to resolve.

Patrick

-- 
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/739e4570-98f6-4e17-8524-28f0254a0d0en%40googlegroups.com.


Re: [weewx-user] weewx.UnknownType: extraHumid3" error

2023-10-09 Thread Tom Keffer
I don't know how it happened, but your database has multiple entries in the
daily summaries, including extraHumid3, that are not in the main archive
table.

I've never seen this before, so I'm not quite sure how to recover. Do you
remember the provenance of the database?

You could try dropping all the daily summaries, then add the missing
columns to the archive table, then rebuilding the database. I don't know
how facile you are with SQL, but the workflow would look something like
this (NOT TESTED):

*cd /var/lib/weewx*
*sudo wee_database --drop-daily*

*sudo cp weewx.sdb weewx.sdb.backup*
*sudo sqlite3 weewx.sdb*
sqlite>* ALTER TABLE archive ADD COLUMN extraHumid3;*
sqlite>*  (add any other missing columns)*
sqlite>* .quit*
*sudo wee_database --rebuild-daily*

Or, perhaps you have a backup that has the missing columns.

-tk

On Mon, Oct 9, 2023 at 10:00 AM Pierre-Yves  wrote:

> Thanks Tom for the feedback.
>
> I don't think I have a problem of typo or aggregate type, as I use a
> copy/past of the extraTemp2/extraHumid2 that works fine
> [[extra]]
> title = Température/humidité ch.Vincent
> [[[extraTemp2]]]
> yAxis_tickInterval = 1
> connectNulls = true
> name = T_ch_Vincent
> [[[extraHumid2]]]
> yAxis = 1
> yAxis_min = 25
> yAxis_max = 75
> y_label = "Hrel"
> connectNulls = true
> name = Humidité relative
> color = "#90ed7d"
> [[extra2]]
> title = Température/humidité cave
> [[[extraTemp3]]]
> yAxis_tickInterval = 1
> connectNulls = true
> name = T_cave
> [[[extraHumid3]]]
> yAxis = 1
> yAxis_min = 25
> yAxis_max = 90
> y_label = "Hrel"
> connectNulls = true
> name = Humidité relative
> color = "#90ed7d"
>
> Attached, the result of *echo ".schema" | sqlite3
> /var/lib/weewx/weewx.sdb*
>
> Pierre-Yves
> Le lundi 9 octobre 2023 à 17:03:47 UTC+2, Tom Keffer a écrit :
>
>> We should also look at the schema in your database. Please post the
>> results of
>>
>> *echo ".schema" | sqlite3 /var/lib/weewx/weewx.sdb*
>>
>>
>> On Mon, Oct 9, 2023 at 7:59 AM Tom Keffer  wrote:
>>
>>> This error can be misleading. The problem could also be caused by an
>>> unknown aggregation type. Look through your [ImageGenerator] section of the
>>> Belchertown skin and make sure there isn't a typo or something for
>>> "aggregate_type".
>>>
>>> On Mon, Oct 9, 2023 at 6:29 AM Pierre-Yves  wrote:
>>>
 Hello,

 I am running Weewx 4.10.2, catching data from various sensors (433 MHz
 and 868 MHz), via the user.SDR driver.
 All was perfectly working till I decide to add a new
 temperature/humidity sensor to the sensor map (extraTemp3 and extraHumid3).
 See below the sensor map.

 [SDR]
 # This section is for the software-defined radio driver.

 # The station model, e.g., 'Meade TE923W' or 'TFA Nexus'
 model = Bresser WSX3001

 # The driver to use
 driver = user.sdr

 cmd = sudo /usr/local/bin/rtl_433 -f 868.3M -f 433.92M -H 90 -Y
 autolevel -s 1024k -R 173 -R 172 -R 42 -M utc -F json

 [[sensor_map]]

 iroxwindDir = wind_dir.4:None.HidekiWindPacket
 iroxwindGust = wind_gust.4:None.HidekiWindPacket
 iroxwindSpeed = wind_speed.4:None.HidekiWindPacket
 iroxwindBatteryStatus = battery.4:None.HidekiWindPacket
 iroxoutTemp = temperature.1:12.HidekiTS04Packet
 iroxoutHumidity = humidity.1:12.HidekiTS04Packet
 iroxoutBatteryStatus = battery.1:12.HidekiTS04Packet
 extraTemp2 = temperature.5:1.HidekiTS04Packet
 extraHumid2 = humidity.5:1.HidekiTS04Packet
 *extraTemp3 = temperature.2:15.HidekiTS04Packet*# Temp_Cave
 *extraHumid3 = humidity.2:15.HidekiTS04Packet*# Hum_Cave
 extraBatteryStatus2 = battery.5:1.HidekiTS04Packet
 # rain_total = rain_total.4:None.HidekiRainPacket
 # rainBatteryStatus = battery.4:None.HidekiRainPacket

 outTemp = temperature.43576.Bresser7in1Packet
 outHumidity = humidity.43576.Bresser7in1Packet
 rain_total = rain_total.43576.Bresser7in1Packet
 windDir = wind_dir.43576.Bresser7in1Packet
 windSpeed = wind_speed.43576.Bresser7in1Packet
 windGust = wind_gust.43576.Bresser7in1Packet
 UV = uv.43576.Bresser7in1Packet
 radiation = light.43576.Bresser7in1Packet
 windBatteryStatus = battery.43576.Bresser7in1Packet
 inTemp = temperature.-1859570394.Bresser6in1Packet# capteur
 thermo-hygro externe
 inHumidity = humidity.-1859570394.Bresser6in1Packet
 inTempBatteryStatus = battery.-1859570394.Bresser6in1Packet

 I actually succeeded to add a graph of extraTemp3 but I failed to add
>>

Re: [weewx-user] weewx.UnknownType: extraHumid3" error

2023-10-09 Thread Pierre-Yves
Thanks Tom for the feedback.

I don't think I have a problem of typo or aggregate type, as I use a 
copy/past of the extraTemp2/extraHumid2 that works fine
[[extra]]
title = Température/humidité ch.Vincent
[[[extraTemp2]]]
yAxis_tickInterval = 1
connectNulls = true
name = T_ch_Vincent
[[[extraHumid2]]]
yAxis = 1
yAxis_min = 25
yAxis_max = 75
y_label = "Hrel"
connectNulls = true
name = Humidité relative
color = "#90ed7d"
[[extra2]]
title = Température/humidité cave
[[[extraTemp3]]]
yAxis_tickInterval = 1
connectNulls = true
name = T_cave
[[[extraHumid3]]]
yAxis = 1
yAxis_min = 25
yAxis_max = 90
y_label = "Hrel"
connectNulls = true
name = Humidité relative
color = "#90ed7d"

Attached, the result of *echo ".schema" | sqlite3 /var/lib/weewx/weewx.sdb*

Pierre-Yves
Le lundi 9 octobre 2023 à 17:03:47 UTC+2, Tom Keffer a écrit :

> We should also look at the schema in your database. Please post the 
> results of
>
> *echo ".schema" | sqlite3 /var/lib/weewx/weewx.sdb*
>
>
> On Mon, Oct 9, 2023 at 7:59 AM Tom Keffer  wrote:
>
>> This error can be misleading. The problem could also be caused by an 
>> unknown aggregation type. Look through your [ImageGenerator] section of the 
>> Belchertown skin and make sure there isn't a typo or something for 
>> "aggregate_type".
>>
>> On Mon, Oct 9, 2023 at 6:29 AM Pierre-Yves  wrote:
>>
>>> Hello,
>>>
>>> I am running Weewx 4.10.2, catching data from various sensors (433 MHz 
>>> and 868 MHz), via the user.SDR driver.
>>> All was perfectly working till I decide to add a new 
>>> temperature/humidity sensor to the sensor map (extraTemp3 and extraHumid3). 
>>> See below the sensor map.
>>>
>>> [SDR]
>>> # This section is for the software-defined radio driver.
>>>
>>> # The station model, e.g., 'Meade TE923W' or 'TFA Nexus'
>>> model = Bresser WSX3001
>>> 
>>> # The driver to use
>>> driver = user.sdr
>>> 
>>> cmd = sudo /usr/local/bin/rtl_433 -f 868.3M -f 433.92M -H 90 -Y 
>>> autolevel -s 1024k -R 173 -R 172 -R 42 -M utc -F json
>>> 
>>> [[sensor_map]]
>>> 
>>> iroxwindDir = wind_dir.4:None.HidekiWindPacket
>>> iroxwindGust = wind_gust.4:None.HidekiWindPacket
>>> iroxwindSpeed = wind_speed.4:None.HidekiWindPacket
>>> iroxwindBatteryStatus = battery.4:None.HidekiWindPacket
>>> iroxoutTemp = temperature.1:12.HidekiTS04Packet  
>>> iroxoutHumidity = humidity.1:12.HidekiTS04Packet
>>> iroxoutBatteryStatus = battery.1:12.HidekiTS04Packet
>>> extraTemp2 = temperature.5:1.HidekiTS04Packet
>>> extraHumid2 = humidity.5:1.HidekiTS04Packet   
>>> *extraTemp3 = temperature.2:15.HidekiTS04Packet*# Temp_Cave
>>> *extraHumid3 = humidity.2:15.HidekiTS04Packet*# Hum_Cave
>>> extraBatteryStatus2 = battery.5:1.HidekiTS04Packet
>>> # rain_total = rain_total.4:None.HidekiRainPacket
>>> # rainBatteryStatus = battery.4:None.HidekiRainPacket
>>> 
>>> outTemp = temperature.43576.Bresser7in1Packet
>>> outHumidity = humidity.43576.Bresser7in1Packet
>>> rain_total = rain_total.43576.Bresser7in1Packet
>>> windDir = wind_dir.43576.Bresser7in1Packet
>>> windSpeed = wind_speed.43576.Bresser7in1Packet
>>> windGust = wind_gust.43576.Bresser7in1Packet
>>> UV = uv.43576.Bresser7in1Packet
>>> radiation = light.43576.Bresser7in1Packet
>>> windBatteryStatus = battery.43576.Bresser7in1Packet
>>> inTemp = temperature.-1859570394.Bresser6in1Packet# capteur 
>>> thermo-hygro externe
>>> inHumidity = humidity.-1859570394.Bresser6in1Packet
>>> inTempBatteryStatus = battery.-1859570394.Bresser6in1Packet
>>> 
>>> I actually succeeded to add a graph of extraTemp3 but I failed to add 
>>> extraHumid3. weewx.reportengine gets an "weewx.UnknownType: extraHumid3" 
>>> error.
>>>
>>> Oct  9 12:35:26 raspberrypi weewx[2125] INFO weewx.manager: Added record 
>>> 2023-10-09 12:35:00 CEST (1696847700) to database 'weewx.sdb'
>>> Oct  9 12:35:26 raspberrypi weewx[2125] INFO weewx.manager: Added record 
>>> 2023-10-09 12:35:00 CEST (1696847700) to daily summary in 'weewx.sdb'
>>> Oct  9 12:35:28 raspberrypi weewx[2125] INFO weewx.cheetahgenerator: 
>>> Generated 8 files for report SeasonsReport in 2.01 seconds
>>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: Caught 
>>> unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
>>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:   
>>>     extraHumid3
>>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:   
>>>     Traceback (most recent call last):
>>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reporteng

Re: [weewx-user] weewx.UnknownType: extraHumid3" error

2023-10-09 Thread Tom Keffer
We should also look at the schema in your database. Please post the results
of

*echo ".schema" | sqlite3 /var/lib/weewx/weewx.sdb*


On Mon, Oct 9, 2023 at 7:59 AM Tom Keffer  wrote:

> This error can be misleading. The problem could also be caused by an
> unknown aggregation type. Look through your [ImageGenerator] section of the
> Belchertown skin and make sure there isn't a typo or something for
> "aggregate_type".
>
> On Mon, Oct 9, 2023 at 6:29 AM Pierre-Yves  wrote:
>
>> Hello,
>>
>> I am running Weewx 4.10.2, catching data from various sensors (433 MHz
>> and 868 MHz), via the user.SDR driver.
>> All was perfectly working till I decide to add a new temperature/humidity
>> sensor to the sensor map (extraTemp3 and extraHumid3). See below the sensor
>> map.
>>
>> [SDR]
>> # This section is for the software-defined radio driver.
>>
>> # The station model, e.g., 'Meade TE923W' or 'TFA Nexus'
>> model = Bresser WSX3001
>>
>> # The driver to use
>> driver = user.sdr
>>
>> cmd = sudo /usr/local/bin/rtl_433 -f 868.3M -f 433.92M -H 90 -Y
>> autolevel -s 1024k -R 173 -R 172 -R 42 -M utc -F json
>>
>> [[sensor_map]]
>>
>> iroxwindDir = wind_dir.4:None.HidekiWindPacket
>> iroxwindGust = wind_gust.4:None.HidekiWindPacket
>> iroxwindSpeed = wind_speed.4:None.HidekiWindPacket
>> iroxwindBatteryStatus = battery.4:None.HidekiWindPacket
>> iroxoutTemp = temperature.1:12.HidekiTS04Packet
>> iroxoutHumidity = humidity.1:12.HidekiTS04Packet
>> iroxoutBatteryStatus = battery.1:12.HidekiTS04Packet
>> extraTemp2 = temperature.5:1.HidekiTS04Packet
>> extraHumid2 = humidity.5:1.HidekiTS04Packet
>> *extraTemp3 = temperature.2:15.HidekiTS04Packet*# Temp_Cave
>> *extraHumid3 = humidity.2:15.HidekiTS04Packet*# Hum_Cave
>> extraBatteryStatus2 = battery.5:1.HidekiTS04Packet
>> # rain_total = rain_total.4:None.HidekiRainPacket
>> # rainBatteryStatus = battery.4:None.HidekiRainPacket
>>
>> outTemp = temperature.43576.Bresser7in1Packet
>> outHumidity = humidity.43576.Bresser7in1Packet
>> rain_total = rain_total.43576.Bresser7in1Packet
>> windDir = wind_dir.43576.Bresser7in1Packet
>> windSpeed = wind_speed.43576.Bresser7in1Packet
>> windGust = wind_gust.43576.Bresser7in1Packet
>> UV = uv.43576.Bresser7in1Packet
>> radiation = light.43576.Bresser7in1Packet
>> windBatteryStatus = battery.43576.Bresser7in1Packet
>> inTemp = temperature.-1859570394.Bresser6in1Packet# capteur
>> thermo-hygro externe
>> inHumidity = humidity.-1859570394.Bresser6in1Packet
>> inTempBatteryStatus = battery.-1859570394.Bresser6in1Packet
>>
>> I actually succeeded to add a graph of extraTemp3 but I failed to add
>> extraHumid3. weewx.reportengine gets an "weewx.UnknownType: extraHumid3"
>> error.
>>
>> Oct  9 12:35:26 raspberrypi weewx[2125] INFO weewx.manager: Added record
>> 2023-10-09 12:35:00 CEST (1696847700) to database 'weewx.sdb'
>> Oct  9 12:35:26 raspberrypi weewx[2125] INFO weewx.manager: Added record
>> 2023-10-09 12:35:00 CEST (1696847700) to daily summary in 'weewx.sdb'
>> Oct  9 12:35:28 raspberrypi weewx[2125] INFO weewx.cheetahgenerator:
>> Generated 8 files for report SeasonsReport in 2.01 seconds
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: Caught
>> unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>>   extraHumid3
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>>   Traceback (most recent call last):
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>> File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>>   obj.start()
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>> File "/usr/share/weewx/weewx/reportengine.py", line 385, in start
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>>   self.run()
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>> File "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>>   self.gen_images(self.gen_ts)
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>> File "/usr/share/weewx/weewx/imagegenerator.py", line 109, in
>> gen_images
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>>   self.image_dict[timespan][plotname])
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>> File "/usr/share/weewx/weewx/imagegenerator.py", line 249, in
>> gen_plot
>> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>>   **option_dict)
>> Oct  9 12:35:29 

Re: [weewx-user] weewx.UnknownType: extraHumid3" error

2023-10-09 Thread Tom Keffer
This error can be misleading. The problem could also be caused by an
unknown aggregation type. Look through your [ImageGenerator] section of the
Belchertown skin and make sure there isn't a typo or something for
"aggregate_type".

On Mon, Oct 9, 2023 at 6:29 AM Pierre-Yves  wrote:

> Hello,
>
> I am running Weewx 4.10.2, catching data from various sensors (433 MHz and
> 868 MHz), via the user.SDR driver.
> All was perfectly working till I decide to add a new temperature/humidity
> sensor to the sensor map (extraTemp3 and extraHumid3). See below the sensor
> map.
>
> [SDR]
> # This section is for the software-defined radio driver.
>
> # The station model, e.g., 'Meade TE923W' or 'TFA Nexus'
> model = Bresser WSX3001
>
> # The driver to use
> driver = user.sdr
>
> cmd = sudo /usr/local/bin/rtl_433 -f 868.3M -f 433.92M -H 90 -Y
> autolevel -s 1024k -R 173 -R 172 -R 42 -M utc -F json
>
> [[sensor_map]]
>
> iroxwindDir = wind_dir.4:None.HidekiWindPacket
> iroxwindGust = wind_gust.4:None.HidekiWindPacket
> iroxwindSpeed = wind_speed.4:None.HidekiWindPacket
> iroxwindBatteryStatus = battery.4:None.HidekiWindPacket
> iroxoutTemp = temperature.1:12.HidekiTS04Packet
> iroxoutHumidity = humidity.1:12.HidekiTS04Packet
> iroxoutBatteryStatus = battery.1:12.HidekiTS04Packet
> extraTemp2 = temperature.5:1.HidekiTS04Packet
> extraHumid2 = humidity.5:1.HidekiTS04Packet
> *extraTemp3 = temperature.2:15.HidekiTS04Packet*# Temp_Cave
> *extraHumid3 = humidity.2:15.HidekiTS04Packet*# Hum_Cave
> extraBatteryStatus2 = battery.5:1.HidekiTS04Packet
> # rain_total = rain_total.4:None.HidekiRainPacket
> # rainBatteryStatus = battery.4:None.HidekiRainPacket
>
> outTemp = temperature.43576.Bresser7in1Packet
> outHumidity = humidity.43576.Bresser7in1Packet
> rain_total = rain_total.43576.Bresser7in1Packet
> windDir = wind_dir.43576.Bresser7in1Packet
> windSpeed = wind_speed.43576.Bresser7in1Packet
> windGust = wind_gust.43576.Bresser7in1Packet
> UV = uv.43576.Bresser7in1Packet
> radiation = light.43576.Bresser7in1Packet
> windBatteryStatus = battery.43576.Bresser7in1Packet
> inTemp = temperature.-1859570394.Bresser6in1Packet# capteur
> thermo-hygro externe
> inHumidity = humidity.-1859570394.Bresser6in1Packet
> inTempBatteryStatus = battery.-1859570394.Bresser6in1Packet
>
> I actually succeeded to add a graph of extraTemp3 but I failed to add
> extraHumid3. weewx.reportengine gets an "weewx.UnknownType: extraHumid3"
> error.
>
> Oct  9 12:35:26 raspberrypi weewx[2125] INFO weewx.manager: Added record
> 2023-10-09 12:35:00 CEST (1696847700) to database 'weewx.sdb'
> Oct  9 12:35:26 raspberrypi weewx[2125] INFO weewx.manager: Added record
> 2023-10-09 12:35:00 CEST (1696847700) to daily summary in 'weewx.sdb'
> Oct  9 12:35:28 raspberrypi weewx[2125] INFO weewx.cheetahgenerator:
> Generated 8 files for report SeasonsReport in 2.01 seconds
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: Caught
> unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>   extraHumid3
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>   Traceback (most recent call last):
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
> File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>   obj.start()
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
> File "/usr/share/weewx/weewx/reportengine.py", line 385, in start
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>   self.run()
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
> File "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>   self.gen_images(self.gen_ts)
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
> File "/usr/share/weewx/weewx/imagegenerator.py", line 109, in
> gen_images
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>   self.image_dict[timespan][plotname])
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
> File "/usr/share/weewx/weewx/imagegenerator.py", line 249, in
> gen_plot
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>   **option_dict)
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
> File "/usr/share/weewx/weewx/xtypes.py", line 116, in get_series
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine:
>   raise weewx.UnknownType(msg)
> Oct  9 12:35:29 raspberrypi weewx[2125] ERROR *weew

[weewx-user] Re: MQTT disconnect when MQTT publishes new data since adding soil moisture sensors

2023-10-09 Thread Stefan Gliessmann
Uncaught Error: AMQJS0011E Invalid state not connecting or connected.
at d.disconnect (paho-mqtt.min.js:35:305)
at Client.disconnect (paho-mqtt.min.js:74:193)
at inactive (belchertown.js?1696860019:1586:12)
d.disconnect @ paho-mqtt.min.js:35
Client.disconnect @ paho-mqtt.min.js:74
inactive @ belchertown.js?1696860019:1586

I just noticed this as well in the inspect frame of google chrome ...
On Monday, October 9, 2023 at 4:29:36 PM UTC+2 Stefan Gliessmann wrote:

> Since ever I have the soil moisture sensors installed, MQTT displays in 
> the Belchertown skin "Lost connection" whenever a new MQTT dataset is 
> broadcasted.
>
> Using the inspect function of google chrome, I see this error message:
>
> *MQTT: 2023-10-09T16:01:34+02:00: mqtt Connection Lost: AMQJS0005E 
> Internal error. Error Message: minimumFractionDigits value is out of 
> range., Stack trace: No Error Stack Available*
>
> I can see that the GW1100 is broadcasting the soil moisture values as 
> integers in the EcoWitt app as well as the gw1000 weewx driver: 
>   *'soilmoist1': 12, 'soilmoist2': 20, 'soilmoist3': 17, 'soilmoist4': 26*
>
> I can also see that user.mqtt sends the values as fractions adding ".0" to 
> the values from gw1000 driver: 
>   *'soilMoist1_centibar': '12.0'*, 'wh51_ch1_batt': '1.6', 
> 'wh51_ch1_sig': '4.0', *'soilMoist2_centibar': '20.0'*, 'wh51_ch2_batt': 
> '1.6', 'wh51_ch2_sig': '4.0', *'soilMoist3_centibar': '17.0'*, 
> 'wh51_ch3_batt': '1.6', 'wh51_ch3_sig': '4.0', *'soilMoist4_centibar': 
> '26.0'*, 'wh51_ch4_batt': '1.6', 'wh51_ch4_sig': '4.0'
>
> In my graph for soil moisture I can see "sometimes" fractions, too, which 
> are not ".0" (as it is archive data and not loop data?):
> [image: Screenshot 2023-10-09 at 16.25.08.png]
>
> Any clue what I need to adjust?
>
> TIA,
> Stefan
>
> On Thursday, October 5, 2023 at 2:17:29 PM UTC+2 Stefan Gliessmann wrote:
>
>> Hello group!
>>
>> Yesterday, I added soil moisture sensors to my EcoWitt GW1100.
>> I added also a graph in my Belchertown skin:
>>
>> [image: Screenshot 2023-10-05 at 14.04.21.png]
>>
>> However, since then I notice this:
>> [image: Screenshot 2023-10-05 at 13.56.38.png]
>>
>> The same MQTT server is used for another weewx instance and, hence, I 
>> knew it is not the MQTT server or broadcasting.
>>
>> Today, I used the inspection function of google chrome and I found this 
>> error message:
>> [image: Screenshot 2023-10-05 at 14.09.33.png]
>> I haven't seen this issue since I have added the soil moisture sensors. 
>> Hence, it should be correlated, shouldn't it?
>>
>> This is the Gateway Driver & MQTT data from the syslog:
>>
>> Oct  5 14:12:55 weewx weewx[140241] INFO weewx.restx: MQTT: Published 
>> record 2023-10-05 14:12:55 CEST (1696507975)
>>
>> Oct  5 14:13:00 weewx weewx[140241] DEBUG user.gw1000: Sending packet 'FF 
>> FF 27 03 2A' to 192.168.178.45:45000
>>
>> Oct  5 14:13:00 weewx weewx[140241] DEBUG user.gw1000: Received response 
>> 'FF FF 27 00 54 01 00 DD 06 32 08 27 9D 09 27 FB 02 00 A6 07 46 0A 00 C7 0B 
>> 00 04 0C 00 0A 15 00 02 3A F0 16 00 A5 17 01 2C 0E 2E 16 30 15 32 1E 62 00 
>> 00 00 00 61 65 1C 15 90 60 0A 19 00 3D 0E 00 00 10 00 00 11 00 51 12 00 00 
>> 00 51 13 00 00 08 61 0D 00 00 AF'
>>
>> Oct  5 14:13:00 weewx weewx[140241] DEBUG user.gw1000: Sending packet 'FF 
>> FF 57 03 5A' to 192.168.178.45:45000
>>
>> Oct  5 14:13:00 weewx weewx[140241] DEBUG user.gw1000: Received response 
>> 'FF FF 57 00 29 0E 00 00 10 00 00 00 00 11 00 00 00 51 12 00 00 00 51 13 00 
>> 00 08 61 0D 00 00 0F 00 64 88 00 01 00 7A 01 7B 00 DE'
>>
>> Oct  5 14:13:00 weewx weewx[140241] DEBUG user.gw1000: Unknown field 
>> address '7B' detected. Remaining data '00' ignored.
>>
>> Oct  5 14:13:00 weewx weewx[140241] DEBUG user.gw1000: Parsed data: 
>> {'intemp': 22.1, 'inhumid': 50, 'absbarometer': 1014.1, 'relbarometer': 
>> 1023.5, 'outtemp': 16.6, 'outhumid': 70, 'winddir': 199, 'windspeed': 0.4, 
>> 'gustspeed': 1.0, 'light': 14616.0, 'uv': 16.5, 'uvi': 1, 'soilmoist1': 14, 
>> 'soilmoist2': 22, 'soilmoist3': 21, 'soilmoist4': 30, 'lightningcount': 0, 
>> 'lightningdettime': 1696339344, 'lightningdist': 10, 'daymaxwind': 6.1, 
>> 't_rainrate': 0.0, 't_rainday': 0.0, 't_rainweek': 8.1, 't_rainmonth': 8.1, 
>> 't_rainyear': 214.5, 't_rainevent': 0.0, 't_rainhour': 10.0, 'day_reset': 
>> 0, 'week_reset': 1, 'annual_reset': 0, 'rain_source': 1, 'datetime': 
>> 1696507980}
>>
>> Oct  5 14:13:00 weewx weewx[140241] DEBUG user.gw1000: Sending packet 'FF 
>> FF 3C 03 3F' to 192.168.178.45:45000
>>
>> Oct  5 14:13:00 weewx weewx[140241] DEBUG user.gw1000: Received response 
>> 'FF FF 3C 01 5B 00 00 00 00 3C 00 04 01 FF FF FF FF FF 00 02 FF FF FF FF FF 
>> 00 03 FF FF FF FF 1F 00 04 FF FF FF FF 00 00 05 FF FF FF FF 00 00 06 FF FF 
>> FF FE 00 00 07 FF FF FF FF 00 00 08 FF FF FF FF 00 00 09 FF FF FF FF 00 00 
>> 0A FF FF FF FF 00 00 0B FF FF FF FF 00 00 0C FF FF FF FF 00 00 0D FF FF FF 
>> FF 00 00 0E 00 0D A4 DD 10 04 0F 00 0D A2 13 10 04 10 00 

Re: [weewx-user] Re: MQTT disconnect when MQTT publishes new data since adding soil moisture sensors

2023-10-09 Thread Greg Troxel
Stefan Gliessmann  writes:

> Using the inspect function of google chrome, I see this error message:
>
> *MQTT: 2023-10-09T16:01:34+02:00: mqtt Connection Lost: AMQJS0005E Internal 
> error. Error Message: minimumFractionDigits value is out of range., Stack 
> trace: No Error Stack Available*
>
> I can see that the GW1100 is broadcasting the soil moisture values as 
> integers in the EcoWitt app as well as the gw1000 weewx driver: 
>   *'soilmoist1': 12, 'soilmoist2': 20, 'soilmoist3': 17, 'soilmoist4': 26*

mqtt is strings.   It is not integers or floats.

It is  perfectly normal for a receiver to try to parse a number from
that string, but I would say that "17" is a perfectly reasonable number
and that objecting to it because it is not "17.0" is a bug.  If that's
what is going on of course!

> I can also see that user.mqtt sends the values as fractions adding ".0" to 
> the values from gw1000 driver: 
>   *'soilMoist1_centibar': '12.0'*, 'wh51_ch1_batt': '1.6', 'wh51_ch1_sig': 
> '4.0', *'soilMoist2_centibar': '20.0'*, 'wh51_ch2_batt': '1.6', 
> 'wh51_ch2_sig': '4.0', *'soilMoist3_centibar': '17.0'*, 'wh51_ch3_batt': 
> '1.6', 'wh51_ch3_sig': '4.0', *'soilMoist4_centibar': '26.0'*, 
> 'wh51_ch4_batt': '1.6', 'wh51_ch4_sig': '4.0'
>
> In my graph for soil moisture I can see "sometimes" fractions, too, which 
> are not ".0" (as it is archive data and not loop data?):
> [image: Screenshot 2023-10-09 at 16.25.08.png]
>
> Any clue what I need to adjust?

First you need to find out what the resolution of the sensor really is.
(Very cool that is it moisture in pressure instead of the usual %.)
Then  a publisher might need to adjust.  Separately the subscriber
should probably be fixed too.

-- 
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/rmia5sr50br.fsf%40s1.lexort.com.


[weewx-user] weewx.UnknownType: extraHumid3" error

2023-10-09 Thread Pierre-Yves
Hello,

I am running Weewx 4.10.2, catching data from various sensors (433 MHz and 
868 MHz), via the user.SDR driver.
All was perfectly working till I decide to add a new temperature/humidity 
sensor to the sensor map (extraTemp3 and extraHumid3). See below the sensor 
map.

[SDR]
# This section is for the software-defined radio driver.

# The station model, e.g., 'Meade TE923W' or 'TFA Nexus'
model = Bresser WSX3001

# The driver to use
driver = user.sdr

cmd = sudo /usr/local/bin/rtl_433 -f 868.3M -f 433.92M -H 90 -Y 
autolevel -s 1024k -R 173 -R 172 -R 42 -M utc -F json

[[sensor_map]]

iroxwindDir = wind_dir.4:None.HidekiWindPacket
iroxwindGust = wind_gust.4:None.HidekiWindPacket
iroxwindSpeed = wind_speed.4:None.HidekiWindPacket
iroxwindBatteryStatus = battery.4:None.HidekiWindPacket
iroxoutTemp = temperature.1:12.HidekiTS04Packet  
iroxoutHumidity = humidity.1:12.HidekiTS04Packet
iroxoutBatteryStatus = battery.1:12.HidekiTS04Packet
extraTemp2 = temperature.5:1.HidekiTS04Packet
extraHumid2 = humidity.5:1.HidekiTS04Packet   
*extraTemp3 = temperature.2:15.HidekiTS04Packet*# Temp_Cave
*extraHumid3 = humidity.2:15.HidekiTS04Packet*# Hum_Cave
extraBatteryStatus2 = battery.5:1.HidekiTS04Packet
# rain_total = rain_total.4:None.HidekiRainPacket
# rainBatteryStatus = battery.4:None.HidekiRainPacket

outTemp = temperature.43576.Bresser7in1Packet
outHumidity = humidity.43576.Bresser7in1Packet
rain_total = rain_total.43576.Bresser7in1Packet
windDir = wind_dir.43576.Bresser7in1Packet
windSpeed = wind_speed.43576.Bresser7in1Packet
windGust = wind_gust.43576.Bresser7in1Packet
UV = uv.43576.Bresser7in1Packet
radiation = light.43576.Bresser7in1Packet
windBatteryStatus = battery.43576.Bresser7in1Packet
inTemp = temperature.-1859570394.Bresser6in1Packet# capteur 
thermo-hygro externe
inHumidity = humidity.-1859570394.Bresser6in1Packet
inTempBatteryStatus = battery.-1859570394.Bresser6in1Packet

I actually succeeded to add a graph of extraTemp3 but I failed to add 
extraHumid3. weewx.reportengine gets an "weewx.UnknownType: extraHumid3" 
error.

Oct  9 12:35:26 raspberrypi weewx[2125] INFO weewx.manager: Added record 
2023-10-09 12:35:00 CEST (1696847700) to database 'weewx.sdb'
Oct  9 12:35:26 raspberrypi weewx[2125] INFO weewx.manager: Added record 
2023-10-09 12:35:00 CEST (1696847700) to daily summary in 'weewx.sdb'
Oct  9 12:35:28 raspberrypi weewx[2125] INFO weewx.cheetahgenerator: 
Generated 8 files for report SeasonsReport in 2.01 seconds
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: Caught 
unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
  extraHumid3
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
  Traceback (most recent call last):
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
  obj.start()
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/reportengine.py", line 385, in start
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
  self.run()
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/imagegenerator.py", line 42, in run
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
  self.gen_images(self.gen_ts)
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/imagegenerator.py", line 109, in 
gen_images
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
  self.image_dict[timespan][plotname])
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/imagegenerator.py", line 249, in 
gen_plot
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
  **option_dict)
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/xtypes.py", line 116, in get_series
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
  raise weewx.UnknownType(msg)
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR *weewx.reportengine: 
  weewx.UnknownType: extraHumid3*
Oct  9 12:35:29 raspberrypi weewx[2125] ERROR weewx.reportengine: 
  Generator terminated
Oct  9 12:35:29 raspberrypi weewx[2125] INFO weewx.reportengine: Copied 0 
files to /var/www/html/weewx
Oct  9 1