[weewx-user] Re: Netatmo station - help needed for read some observation

2021-01-16 Thread ve2se
Neowx  skin  works fine  with Netatmo 
translated in  french :  http://ve2se.noip.me:8008//weewx/index.html

Le samedi 16 janvier 2021 à 03 h 35 min 05 s UTC-5, johansso...@outlook.com 
a écrit :

>
> Now it works :) Many MANY thanks for you help and time you give me to fix 
> this!
>
> *Connectivity*
> WiFi Signal 58 dB
> Outdoor Module Signal 65 dB
> Anemometer Signal 67 dB
> Rain Gauge Signal 63 dB
>
> *Battery Status*
> Anemometer Battery 94%
> Rain Gauge Battery 100%
> Outdoor Module Battery 93%
> lördag 16 januari 2021 kl. 08:21:49 UTC+1 skrev gjr80:
>
>> Ah, that was my mistake, I deleted a few lines I should not have. Try 
>> this sensors.txt; same deal, download, rename and save as 
>> /etc/weewx/skins/Seasons/sensors.inc. No need to restart WeeWx this 
>> time, just wait for the report cycle to complete.
>>
>> Gary
>>
>> On Saturday, 16 January 2021 at 16:52:28 UTC+10 johansso...@outlook.com 
>> wrote:
>>
>>> i think it works now.
>>> I dont know what i did but i use the early sensor.inc code you gave me 
>>> and the readings is now this
>>>
>>> Connectivity
>>> WiFi Signal
>>> (57 dB)
>>> Outdoor Module Signal
>>> (66 dB)
>>> Anemometer Signal
>>> (69 dB)
>>> Rain Gauge Signal
>>> (62 dB)
>>>
>>> Battery Status
>>> Anemometer Battery
>>> (95%)
>>> Rain Gauge Battery
>>> (100%)
>>> Outdoor Module Battery
>>> (93%)
>>>
>>> lördag 16 januari 2021 kl. 07:35:56 UTC+1 skrev Rebecka Johansson:
>>>
 I do as you described :)

 But got errors after i replaced the new sensors.inc code

 The log error shows this

 "Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
 Generate failed with exception ''
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  Reason: #012#012Some #directives are missing their corresponding #end 
 ___ tag: if, if#012Line 153, column 7 in file 
 /etc/weewx/skins/Seasons/sensors.inc#012#012Line|Cheetah 
 Code#012|-#012150
  
 |  #012151 |#012152 |#012153 |#end if#012   ^
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
   Traceback (most recent call last):
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
 File "/usr/share/weewx/weewx/cheetahgenerator.py", line 323, in 
 generate
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
   unicode_string = compiled_template.respond()
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
 File "_etc_weewx_skins_Seasons_index_html_tmpl.py", line 225, in 
 respond
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
 File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 
 1685, in _handleCheetahInclude
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
   file=file)
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
 File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 
 775, in compile
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
   compiler.compile()
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
 File "/usr/lib/python3/dist-packages/Cheetah/Compiler.py", line 
 1799, in compile
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
   self._parser.parse()
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
 File "/usr/lib/python3/dist-packages/Cheetah/Parser.py", line 
 1554, 
 in parse
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
   self.assertEmptyOpenDirectivesStack()
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
 File "/usr/lib/python3/dist-packages/Cheetah/Parser.py", line 
 2778, 
 in assertEmptyOpenDirectivesStack
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
   raise ParseError(self, msg=errorMsg)
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
   Cheetah.Parser.ParseError: 
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
   
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
   Some #directives are missing their corresponding #end ___ tag: if, if
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
   Line 153, column 7 in file /etc/weewx/skins/Seasons/sensors.inc
 Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
   
 Jan 16 07:33:21 Raspi 

[weewx-user] Re: Netatmo station - help needed for read some observation

2021-01-16 Thread Rebecka Johansson

Now it works :) Many MANY thanks for you help and time you give me to fix 
this!

*Connectivity*
WiFi Signal 58 dB
Outdoor Module Signal 65 dB
Anemometer Signal 67 dB
Rain Gauge Signal 63 dB

*Battery Status*
Anemometer Battery 94%
Rain Gauge Battery 100%
Outdoor Module Battery 93%
lördag 16 januari 2021 kl. 08:21:49 UTC+1 skrev gjr80:

> Ah, that was my mistake, I deleted a few lines I should not have. Try this 
> sensors.txt; same deal, download, rename and save as 
> /etc/weewx/skins/Seasons/sensors.inc. No need to restart WeeWx this time, 
> just wait for the report cycle to complete.
>
> Gary
>
> On Saturday, 16 January 2021 at 16:52:28 UTC+10 johansso...@outlook.com 
> wrote:
>
>> i think it works now.
>> I dont know what i did but i use the early sensor.inc code you gave me 
>> and the readings is now this
>>
>> Connectivity
>> WiFi Signal
>> (57 dB)
>> Outdoor Module Signal
>> (66 dB)
>> Anemometer Signal
>> (69 dB)
>> Rain Gauge Signal
>> (62 dB)
>>
>> Battery Status
>> Anemometer Battery
>> (95%)
>> Rain Gauge Battery
>> (100%)
>> Outdoor Module Battery
>> (93%)
>>
>> lördag 16 januari 2021 kl. 07:35:56 UTC+1 skrev Rebecka Johansson:
>>
>>> I do as you described :)
>>>
>>> But got errors after i replaced the new sensors.inc code
>>>
>>> The log error shows this
>>>
>>> "Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>> Generate failed with exception ''
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>  Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>  Reason: #012#012Some #directives are missing their corresponding #end 
>>> ___ tag: if, if#012Line 153, column 7 in file 
>>> /etc/weewx/skins/Seasons/sensors.inc#012#012Line|Cheetah 
>>> Code#012|-#012150
>>>  
>>> |  #012151 |#012152 |#012153 |#end if#012   ^
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   Traceback (most recent call last):
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 323, in 
>>> generate
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   unicode_string = compiled_template.respond()
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>> File "_etc_weewx_skins_Seasons_index_html_tmpl.py", line 225, in 
>>> respond
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>> File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 
>>> 1685, in _handleCheetahInclude
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   file=file)
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>> File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 
>>> 775, in compile
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   compiler.compile()
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>> File "/usr/lib/python3/dist-packages/Cheetah/Compiler.py", line 
>>> 1799, in compile
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   self._parser.parse()
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>> File "/usr/lib/python3/dist-packages/Cheetah/Parser.py", line 1554, 
>>> in parse
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   self.assertEmptyOpenDirectivesStack()
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>> File "/usr/lib/python3/dist-packages/Cheetah/Parser.py", line 2778, 
>>> in assertEmptyOpenDirectivesStack
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   raise ParseError(self, msg=errorMsg)
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   Cheetah.Parser.ParseError: 
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   Some #directives are missing their corresponding #end ___ tag: if, if
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   Line 153, column 7 in file /etc/weewx/skins/Seasons/sensors.inc
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   Line|Cheetah Code
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   |-
>>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>>   150 |  
>>> Jan 16 

[weewx-user] Re: Netatmo station - help needed for read some observation

2021-01-15 Thread gjr80
Ah, that was my mistake, I deleted a few lines I should not have. Try this 
sensors.txt; same deal, download, rename and save as 
/etc/weewx/skins/Seasons/sensors.inc. No need to restart WeeWx this time, 
just wait for the report cycle to complete.

Gary

On Saturday, 16 January 2021 at 16:52:28 UTC+10 johansso...@outlook.com 
wrote:

> i think it works now.
> I dont know what i did but i use the early sensor.inc code you gave me and 
> the readings is now this
>
> Connectivity
> WiFi Signal
> (57 dB)
> Outdoor Module Signal
> (66 dB)
> Anemometer Signal
> (69 dB)
> Rain Gauge Signal
> (62 dB)
>
> Battery Status
> Anemometer Battery
> (95%)
> Rain Gauge Battery
> (100%)
> Outdoor Module Battery
> (93%)
>
> lördag 16 januari 2021 kl. 07:35:56 UTC+1 skrev Rebecka Johansson:
>
>> I do as you described :)
>>
>> But got errors after i replaced the new sensors.inc code
>>
>> The log error shows this
>>
>> "Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>> Generate failed with exception ''
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>  Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>  Reason: #012#012Some #directives are missing their corresponding #end 
>> ___ tag: if, if#012Line 153, column 7 in file 
>> /etc/weewx/skins/Seasons/sensors.inc#012#012Line|Cheetah 
>> Code#012|-#012150
>>  
>> |  #012151 |#012152 |#012153 |#end if#012   ^
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   Traceback (most recent call last):
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 323, in 
>> generate
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   unicode_string = compiled_template.respond()
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>> File "_etc_weewx_skins_Seasons_index_html_tmpl.py", line 225, in 
>> respond
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>> File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 
>> 1685, in _handleCheetahInclude
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   file=file)
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>> File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 
>> 775, in compile
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   compiler.compile()
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>> File "/usr/lib/python3/dist-packages/Cheetah/Compiler.py", line 
>> 1799, in compile
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   self._parser.parse()
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>> File "/usr/lib/python3/dist-packages/Cheetah/Parser.py", line 1554, 
>> in parse
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   self.assertEmptyOpenDirectivesStack()
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>> File "/usr/lib/python3/dist-packages/Cheetah/Parser.py", line 2778, 
>> in assertEmptyOpenDirectivesStack
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   raise ParseError(self, msg=errorMsg)
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   Cheetah.Parser.ParseError: 
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   Some #directives are missing their corresponding #end ___ tag: if, if
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   Line 153, column 7 in file /etc/weewx/skins/Seasons/sensors.inc
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   Line|Cheetah Code
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   |-
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   150 |  
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   151 |
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   152 |
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   153 |#end if
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>  ^
>> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>>   
>> 

[weewx-user] Re: Netatmo station - help needed for read some observation

2021-01-15 Thread Rebecka Johansson
i think it works now.
I dont know what i did but i use the early sensor.inc code you gave me and 
the readings is now this

Connectivity
WiFi Signal
(57 dB)
Outdoor Module Signal
(66 dB)
Anemometer Signal
(69 dB)
Rain Gauge Signal
(62 dB)

Battery Status
Anemometer Battery
(95%)
Rain Gauge Battery
(100%)
Outdoor Module Battery
(93%)

lördag 16 januari 2021 kl. 07:35:56 UTC+1 skrev Rebecka Johansson:

> I do as you described :)
>
> But got errors after i replaced the new sensors.inc code
>
> The log error shows this
>
> "Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
> Generate failed with exception ''
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>  Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>  Reason: #012#012Some #directives are missing their corresponding #end 
> ___ tag: if, if#012Line 153, column 7 in file 
> /etc/weewx/skins/Seasons/sensors.inc#012#012Line|Cheetah 
> Code#012|-#012150
>  
> |  #012151 |#012152 |#012153 |#end if#012   ^
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   Traceback (most recent call last):
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 323, in 
> generate
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   unicode_string = compiled_template.respond()
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
> File "_etc_weewx_skins_Seasons_index_html_tmpl.py", line 225, in 
> respond
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
> File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 
> 1685, in _handleCheetahInclude
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   file=file)
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
> File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 
> 775, in compile
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   compiler.compile()
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
> File "/usr/lib/python3/dist-packages/Cheetah/Compiler.py", line 
> 1799, in compile
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   self._parser.parse()
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
> File "/usr/lib/python3/dist-packages/Cheetah/Parser.py", line 1554, 
> in parse
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   self.assertEmptyOpenDirectivesStack()
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
> File "/usr/lib/python3/dist-packages/Cheetah/Parser.py", line 2778, 
> in assertEmptyOpenDirectivesStack
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   raise ParseError(self, msg=errorMsg)
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   Cheetah.Parser.ParseError: 
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   Some #directives are missing their corresponding #end ___ tag: if, if
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   Line 153, column 7 in file /etc/weewx/skins/Seasons/sensors.inc
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   Line|Cheetah Code
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   |-
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   150 |  
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   151 |
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   152 |
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   153 |#end if
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>  ^
> Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>   
> Jan 16 07:33:22 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
> Generate failed with exception ''
> Jan 16 07:33:22 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>  Ignoring template /etc/weewx/skins/Seasons/telemetry.html.tmpl
> Jan 16 07:33:22 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
>  Reason: #012#012Some #directives are missing their corresponding #end 
> ___ tag: if, if#012Line 153, column 7 in file 
> 

[weewx-user] Re: Netatmo station - help needed for read some observation

2021-01-15 Thread Rebecka Johansson
I do as you described :)

But got errors after i replaced the new sensors.inc code

The log error shows this

"Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
Generate failed with exception ''
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator:  
Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator:  
Reason: #012#012Some #directives are missing their corresponding #end ___ 
tag: if, if#012Line 153, column 7 in file 
/etc/weewx/skins/Seasons/sensors.inc#012#012Line|Cheetah 
Code#012|-#012150
 
|  #012151 |#012152 |#012153 |#end if#012   ^
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  Traceback (most recent call last):
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 323, in 
generate
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  unicode_string = compiled_template.respond()
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
File "_etc_weewx_skins_Seasons_index_html_tmpl.py", line 225, in 
respond
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 
1685, in _handleCheetahInclude
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  file=file)
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
File "/usr/lib/python3/dist-packages/Cheetah/Template.py", line 
775, in compile
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  compiler.compile()
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
File "/usr/lib/python3/dist-packages/Cheetah/Compiler.py", line 
1799, in compile
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  self._parser.parse()
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
File "/usr/lib/python3/dist-packages/Cheetah/Parser.py", line 1554, 
in parse
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  self.assertEmptyOpenDirectivesStack()
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
File "/usr/lib/python3/dist-packages/Cheetah/Parser.py", line 2778, 
in assertEmptyOpenDirectivesStack
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  raise ParseError(self, msg=errorMsg)
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  Cheetah.Parser.ParseError: 
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  Some #directives are missing their corresponding #end ___ tag: if, if
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  Line 153, column 7 in file /etc/weewx/skins/Seasons/sensors.inc
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  Line|Cheetah Code
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  |-
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  150 |  
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  151 |
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  152 |
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  153 |#end if
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
 ^
Jan 16 07:33:21 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  
Jan 16 07:33:22 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
Generate failed with exception ''
Jan 16 07:33:22 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator:  
Ignoring template /etc/weewx/skins/Seasons/telemetry.html.tmpl
Jan 16 07:33:22 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator:  
Reason: #012#012Some #directives are missing their corresponding #end ___ 
tag: if, if#012Line 153, column 7 in file 
/etc/weewx/skins/Seasons/sensors.inc#012#012Line|Cheetah 
Code#012|-#012150
 
|  #012151 |#012152 |#012153 |#end if#012   ^
Jan 16 07:33:22 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  Traceback (most recent call last):
Jan 16 07:33:22 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
File "/usr/share/weewx/weewx/cheetahgenerator.py", line 323, in 
generate
Jan 16 07:33:22 Raspi wee_reports[12432] ERROR weewx.cheetahgenerator: 
  unicode_string = 

[weewx-user] Re: Netatmo station - help needed for read some observation

2021-01-15 Thread gjr80
On Saturday, 16 January 2021 at 14:28:48 UTC+10 johansso...@outlook.com 
wrote:

> Thank for answer and your will to help me! 
>
Im new on Netatmo and its more advanced to code haha. 
> Sorry for late answere i think the county time differens between us. Clock 
> is early in the morning now in sweden 05:40 AM
>

No problems, you have more netatmo experience than I! We do have a time 
difference, I am nine hours ahead of you I believe, mid-afternoon here now 
as I write this.
 

> I know battery_vp is from old firmware and battery_percent is the newer 
> firmware.
> The work with formatting its something i havent learn yet and its take 
> time because my dyslexia and concentration because adhd. 
> But thanks to you because you describe in the way i understand very well.
>

You are welcome.

I have thinking on what i want in the reading and i wanted to have just the 
> percentage. 
> So as example from your tex above i want the readings to  "Anemometer 
> Battery 95%" 
>

OK, that makes it easy, just a couple more things to do. We need to modify 
sensors.inc again and then we need to tell WeeWX how to interpret the 
xxxBatteryStatus  and xxx_rf_status fields. I have attached a new copy of 
sensors.inc, again it is actually sensors.txt due to Google Groups 
limitations, just download it, rename it to sensors.inc and use it to 
replace your existing /etc/weewx/skins/Seasons/sensors.inc. That will now 
give you just the percentages for battery status and just the numbers for 
rf status, something like:

Anemometer Battery 95.00
Anemometer Signal 86.00

Still not formatted correctly and with no % symbol.

Reading a bit more about the netatmo system it seems the rf signal level 
values are RSSI (received signal strength indicator) values in decibels 
(dB). Again your choice how you want to present them, you can present them 
as just a number, eg:

Anemometer Signal 86

or as a dB value eg:

Anemometer Signal 86dB

Once you have decided hold on to that thought as we will use it shortly.

To get the numbers formatted correctly we need to tell WeeWX how to 
interpret the xxxBatteryStatus  and xxx_rf_status fields and we do that by 
adding a few lines of code to /usr/share/weewx/user/extensions.py. To make 
the changes to /usr/share/weewx/user/extensions.py:

1. open /usr/share/weewx/user/extensions.py in a text editor

2. add the following lines to the bottom of the file:

import weewx.units
weewx.units.obs_group_dict['windBatteryStatus'] = 'group_percent'
weewx.units.obs_group_dict['rainBatteryStatus'] = 'group_percent'
weewx.units.obs_group_dict['outTempBatteryStatus'] = 'group_percent'

3. if you want to display the rf signal status as just plain numbers add 
the following lines:

weewx.units.obs_group_dict['signal1'] = 'group_count'
weewx.units.obs_group_dict['signal2'] = 'group_count'
weewx.units.obs_group_dict['signal3'] = 'group_count'
weewx.units.obs_group_dict['signal4'] = 'group_count'

4. if you want to display the rf signal status as decibels (with a dB unit 
label) add the following lines:

weewx.units.obs_group_dict['signal1'] = 'group_db'
weewx.units.obs_group_dict['signal2'] = 'group_db'
weewx.units.obs_group_dict['signal3'] = 'group_db'
weewx.units.obs_group_dict['signal4'] = 'group_db'

Make sure you do just one or the other of 3. and 4., don't add both.

5. save extensions.py

That is all though this time you will need to restart WeeWX for the changes 
in extensions.py to take effect. After you have restarted WeeWX once the 
next report cycle completes you should see the sensor panel on the Seasons 
home page updated accordingly. If the display is not as you expect or 
something goes wrong post back here with details.

About the Belchertown i will try fix that on my own. 
> I have learn a little about sensor readings thanks to you! Its just the 
> formatting now :) 
>

The Belchertown skin is quite popular and lots of folks here are familiar 
with it and have customised it (unfortunately I am not one them). If you 
get stuck with Belchertown open a new thread with your questions and I am 
sure someone will help you.

Gary
 

-- 
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/cdc28b03-9b17-435d-9f2a-8a6314225a73n%40googlegroups.com.
## sensors module for weewx skins
## Copyright Tom Keffer, Matthew Wall
## See LICENSE.txt for your rights
#errorCatcher Echo
#encoding UTF-8

## this is a conditional display of sensor data, including connectivity,
## battery status, and various voltages.  if there are no data available,
## then this degenerates to nothing displayed.

#def get_battery_status($x)
#if $x == 0
OK
#else
LOW
#end if
#end def


## first see what sensor data are available

#set $have_conn = 0
#for $x in 

[weewx-user] Re: Netatmo station - help needed for read some observation

2021-01-15 Thread Rebecka Johansson
Thank for answer and your will to help me! 
Im new on Netatmo and its more advanced to code haha. 
Sorry for late answere i think the county time differens between us. Clock 
is early in the morning now in sweden 05:40 AM

I know battery_vp is from old firmware and battery_percent is the newer 
firmware.
The work with formatting its something i havent learn yet and its take time 
because my dyslexia and concentration because adhd. 
But thanks to you because you describe in the way i understand very well.

I have thinking on what i want in the reading and i wanted to have just the 
percentage. 
So as example from your tex above i want the readings to  "Anemometer 
Battery 95%" 



About the Belchertown i will try fix that on my own. 
I have learn a little about sensor readings thanks to you! Its just the 
formatting now :) 





fredag 15 januari 2021 kl. 13:54:51 UTC+1 skrev gjr80:

> You’ve done well, that is all of the hard work done! The rest is just 
> formatting.
>
> I am no netatmo expert but reading through the driver and from what info I 
> could find on the internet, it does appear that there are two distinct 
> battery state fields for each sensor; battery_vp which (according to 
> netatmo) is a large number that appears to equate to a descriptive battery 
> state (that is where the max/fulll/low is derived from) and battery_percent 
> (which the netatmo driver maps to xBatteryStatus). One of those may 
> well be from the old firmware but your station emits both field types for 
> each sensor. When I put together the new sensors.inc I wanted to format the 
> battery state entries as ‘descriptive word (battery %)’, eg:
>
> Anemometer Battery   full(95%)
>
> The 95.00 is just a formatting/unit issue that is easily fixed. I 
> guess the question for you is what do you want to display? Just the 
> descriptive word, just the percentage or both?
>
> Similar arrangement with the wifi/RF status, there is the actual signal 
> level (ie the number) and descriptive text that netatmo lists for different 
> RF signal levels. Do you want just the descriptive text or the number or 
> both?
>
> Let me know and we can adjust sensors.inc accordingly.
>
> For info if you haven’t already found it the ranges of battery_vp and the 
> corresponding descriptive text for each sensor is shown in a number of 
> tables on this page (https://dev.netatmo.com/apidocumentation/weather) . 
> Likewise for Wifi status, not sure where Infound the descriptive text for 
> RF status though.
>
> Afraid I can’t help with integrating the battery states and RF signal 
> levels into Belchertown, you will need someone who is familiar with the 
> Belchertown skin. Though you now have the relevant database in your 
> database so I am sure that will get you part way there.
>
> Gary
>
> On Friday, 15 January 2021 at 22:18:12 UTC+10 johansso...@outlook.com 
> wrote:
>
>>
>> Thanks
>> I did as you writed.
>> Seasons skin does the reading like this now but with many extra numbers 
>> of 0.
>>
>> Like i writed in first post i orginally use Belchertown skins and use 
>> seasons to fix whats reading and how to code!
>>
>>
>>
>>
>> Connectivity
>>
>> WiFi Signal
>> good(56,00)
>> Outdoor Module Signal
>> high(66,00)
>> Anemometer Signal
>> high(61,00)
>> Rain Gauge Signal
>> *high(61,00)*
>>
>> Battery Status
>> Anemometer Battery
>> full(95,00)
>> Rain Gauge Battery
>> max(100,00)
>> Outdoor Module Battery
>> full(93,00)
>>
>>
>> What i read in netatmo.py file i saw that battery_vp is for old firmware 
>> and used for the older Wveiw.py
>> In the Netatmo.py file it is writed like this now.
>>
>>
>> class NetatmoDriver(weewx.drivers.AbstractDevice):
>> DEFAULT_PORT = 80
>> DEFAULT_HOST = ""
>> # map from netatmo names to database schema names
>> # apparently battery_vp is in older firmware, whereas battery_percent 
>> is
>> # in newer firmware.
>> DEFAULT_SENSOR_MAP = {
>> 'pressure':  
>>  '*.NAMain.AbsolutePressure',
>> 'inTemp': '*.NAMain.Temperature',
>> 'inHumidity':   '*.NAMain.Humidity',
>> 'co2':   '*.NAMain.CO2',
>> 'noise':'*.NAMain.Noise',
>> 'wifi_status':  '*.NAMain.wifi_status',
>> 'outTemp': '*.NAModule1.Temperature',
>> 'outHumidity':   '*.NAModule1.Humidity',
>> 'out_rf_status':  '*.NAModule1.rf_status',
>> 'out_battery_vp':   '*.NAModule1.battery_vp', 
>> *(**Older 
>> firmware)*
>> 'outTempBatteryStatus': '*.NAModule1.battery_percent',
>> 'windSpeed': '*.NAModule2.WindStrength',
>> 'windDir':   '*.NAModule2.WindAngle',
>> 'windGust': 

[weewx-user] Re: Netatmo station - help needed for read some observation

2021-01-15 Thread gjr80
You’ve done well, that is all of the hard work done! The rest is just 
formatting.

I am no netatmo expert but reading through the driver and from what info I 
could find on the internet, it does appear that there are two distinct 
battery state fields for each sensor; battery_vp which (according to 
netatmo) is a large number that appears to equate to a descriptive battery 
state (that is where the max/fulll/low is derived from) and battery_percent 
(which the netatmo driver maps to xBatteryStatus). One of those may 
well be from the old firmware but your station emits both field types for 
each sensor. When I put together the new sensors.inc I wanted to format the 
battery state entries as ‘descriptive word (battery %)’, eg:

Anemometer Battery   full(95%)

The 95.00 is just a formatting/unit issue that is easily fixed. I guess 
the question for you is what do you want to display? Just the descriptive 
word, just the percentage or both?

Similar arrangement with the wifi/RF status, there is the actual signal 
level (ie the number) and descriptive text that netatmo lists for different 
RF signal levels. Do you want just the descriptive text or the number or 
both?

Let me know and we can adjust sensors.inc accordingly.

For info if you haven’t already found it the ranges of battery_vp and the 
corresponding descriptive text for each sensor is shown in a number of 
tables on this page (https://dev.netatmo.com/apidocumentation/weather) . 
Likewise for Wifi status, not sure where Infound the descriptive text for 
RF status though.

Afraid I can’t help with integrating the battery states and RF signal 
levels into Belchertown, you will need someone who is familiar with the 
Belchertown skin. Though you now have the relevant database in your 
database so I am sure that will get you part way there.

Gary

On Friday, 15 January 2021 at 22:18:12 UTC+10 johansso...@outlook.com wrote:

>
> Thanks
> I did as you writed.
> Seasons skin does the reading like this now but with many extra numbers of 
> 0.
>
> Like i writed in first post i orginally use Belchertown skins and use 
> seasons to fix whats reading and how to code!
>
>
>
>
> Connectivity
>
> WiFi Signal
> good(56,00)
> Outdoor Module Signal
> high(66,00)
> Anemometer Signal
> high(61,00)
> Rain Gauge Signal
> *high(61,00)*
>
> Battery Status
> Anemometer Battery
> full(95,00)
> Rain Gauge Battery
> max(100,00)
> Outdoor Module Battery
> full(93,00)
>
>
> What i read in netatmo.py file i saw that battery_vp is for old firmware 
> and used for the older Wveiw.py
> In the Netatmo.py file it is writed like this now.
>
>
> class NetatmoDriver(weewx.drivers.AbstractDevice):
> DEFAULT_PORT = 80
> DEFAULT_HOST = ""
> # map from netatmo names to database schema names
> # apparently battery_vp is in older firmware, whereas battery_percent 
> is
> # in newer firmware.
> DEFAULT_SENSOR_MAP = {
> 'pressure':  
>  '*.NAMain.AbsolutePressure',
> 'inTemp': '*.NAMain.Temperature',
> 'inHumidity':   '*.NAMain.Humidity',
> 'co2':   '*.NAMain.CO2',
> 'noise':'*.NAMain.Noise',
> 'wifi_status':  '*.NAMain.wifi_status',
> 'outTemp': '*.NAModule1.Temperature',
> 'outHumidity':   '*.NAModule1.Humidity',
> 'out_rf_status':  '*.NAModule1.rf_status',
> 'out_battery_vp':   '*.NAModule1.battery_vp', 
> *(**Older 
> firmware)*
> 'outTempBatteryStatus': '*.NAModule1.battery_percent',
> 'windSpeed': '*.NAModule2.WindStrength',
> 'windDir':   '*.NAModule2.WindAngle',
> 'windGust':'*.NAModule2.GustStrength',
> 'windGustDir':   '*.NAModule2.GustAngle',
> 'wind_rf_status':  '*.NAModule2.rf_status',
> 'wind_battery_vp':'*.NAModule2.battery_vp', *(**Older 
> firmware)*
> 'windBatteryStatus':'*.NAModule2.battery_percent', 
> 'rain':   '*.NAModule3.Rain',
> 'rain_total':  
> '*.NAModule3.sum_rain_24',
> 'rain_rf_status':  '*.NAModule3.rf_status',
> 'rain_battery_vp':'*.NAModule3.battery_vp', 
> *(**Older firmware)*
> 'rainBatteryStatus':'*.NAModule3.battery_percent'}
>
>
> I also send my REC / LOOP
> REC:2021-01-15 12:50:00 CET (1610711400) altimeter: 
> 1024.4038696830132, appTemp: -7.884807942435174, barometer: 
> 1024.4032036270912, batteryStatus1: 5872.0, batteryStatus2: 5898.0, 
> batteryStatus3: 6036.0, cloudbase: 

[weewx-user] Re: Netatmo station - help needed for read some observation

2021-01-15 Thread Rebecka Johansson

Thanks
I did as you writed.
Seasons skin does the reading like this now but with many extra numbers of 
0.

Like i writed in first post i orginally use Belchertown skins and use 
seasons to fix whats reading and how to code!




Connectivity

WiFi Signal
good(56,00)
Outdoor Module Signal
high(66,00)
Anemometer Signal
high(61,00)
Rain Gauge Signal
*high(61,00)*

Battery Status
Anemometer Battery
full(95,00)
Rain Gauge Battery
max(100,00)
Outdoor Module Battery
full(93,00)


What i read in netatmo.py file i saw that battery_vp is for old firmware 
and used for the older Wveiw.py
In the Netatmo.py file it is writed like this now.


class NetatmoDriver(weewx.drivers.AbstractDevice):
DEFAULT_PORT = 80
DEFAULT_HOST = ""
# map from netatmo names to database schema names
# apparently battery_vp is in older firmware, whereas battery_percent is
# in newer firmware.
DEFAULT_SENSOR_MAP = {
'pressure':  
 '*.NAMain.AbsolutePressure',
'inTemp': '*.NAMain.Temperature',
'inHumidity':   '*.NAMain.Humidity',
'co2':   '*.NAMain.CO2',
'noise':'*.NAMain.Noise',
'wifi_status':  '*.NAMain.wifi_status',
'outTemp': '*.NAModule1.Temperature',
'outHumidity':   '*.NAModule1.Humidity',
'out_rf_status':  '*.NAModule1.rf_status',
'out_battery_vp':   '*.NAModule1.battery_vp', *(**Older 
firmware)*
'outTempBatteryStatus': '*.NAModule1.battery_percent',
'windSpeed': '*.NAModule2.WindStrength',
'windDir':   '*.NAModule2.WindAngle',
'windGust':'*.NAModule2.GustStrength',
'windGustDir':   '*.NAModule2.GustAngle',
'wind_rf_status':  '*.NAModule2.rf_status',
'wind_battery_vp':'*.NAModule2.battery_vp', *(**Older 
firmware)*
'windBatteryStatus':'*.NAModule2.battery_percent', 
'rain':   '*.NAModule3.Rain',
'rain_total':  
'*.NAModule3.sum_rain_24',
'rain_rf_status':  '*.NAModule3.rf_status',
'rain_battery_vp':'*.NAModule3.battery_vp', 
*(**Older 
firmware)*
'rainBatteryStatus':'*.NAModule3.battery_percent'}


I also send my REC / LOOP
REC:2021-01-15 12:50:00 CET (1610711400) altimeter: 1024.4038696830132, 
appTemp: -7.884807942435174, barometer: 1024.4032036270912, batteryStatus1: 
5872.0, batteryStatus2: 5898.0, batteryStatus3: 6036.0, cloudbase: 
551.6903180909593, co2: 700.0, dateTime: 1610711400, dewpoint: 
-9.143009058869266, ET: None, heatindex: -4.7, humidex: -4.7, inDewpoint: 
9.238783201935856, inHumidity: 38.0, inTemp: 24.5, interval: 5.0, 
maxSolarRad: None, noise: 43.0, outHumidity: 71.0, outTemp: -4.7, 
outTempBatteryStatus: 93.0, pressure: 1023.1, rain: 0.0, rainBatteryStatus: 
100.0, rainRate: 0.0, rain_total: 0.0, signal1: 57.0, signal2: 67.0, 
signal3: 62.0, signal4: 62.0, usUnits: 16, windBatteryStatus: 95.0, 
windchill: -4.7, windDir: 210.0, windGust: 2, windGustDir: 210, windrun: 
0.08333, windSpeed: 1.0
LOOP:   2021-01-15 12:59:12 CET (1610711952) altimeter: 1024.4038696830132, 
appTemp: -7.777147909039572, barometer: 1024.4027180441597, batteryStatus1: 
5872, batteryStatus2: 5900, batteryStatus3: 6036, cloudbase: 
552.1509511394135, co2: 703, dateTime: 1610711952, dewpoint: 
-9.046787226465668, heatindex: -4.6005, humidex: -4.6, 
inDewpoint: 9.238783201935856, inHumidity: 38, inTemp: 24.5, maxSolarRad: 
None, noise: 43, outHumidity: 71, outTemp: -4.6, outTempBatteryStatus: 93, 
pressure: 1023.1, rain: 0.0, rainBatteryStatus: 100, rainRate: 0.0, 
rain_total: 0.0, signal1: 56, signal2: 66, signal3: 61, signal4: 61, 
usUnits: 16, windBatteryStatus: 95, windchill: -4.6005, 
windDir: 211, windGust: 3, windGustDir: 220, windSpeed: 1

I see i have two kind of battery status 
batteryStatus1: 5872.0
batteryStatus2: 5898.0
batteryStatus3: 6036.0

outTempBatteryStatus: 93.0
windBatteryStatus: 95.0
rainBatteryStatus: 100.0


*Here is my debug log (I deleted personal id and passwords)*


System info
  Platform:   Linux-5.4.83-v7l+-armv7l-with-debian-10.7
  Python Version: 3.7.3

Load Information
  1 minute load average:  0.30
  5 minute load average:  0.60
  15 minute load average: 0.77

General Weewx info
  Weewx version 4.3.0 detected.

Station info
  Station type: netatmo
  Driver:   user.netatmo

Driver info
[netatmo]

# This section is for the netatmo station.

# The mode specifies how driver should obtain data.  

[weewx-user] Re: Netatmo station - help needed for read some observation

2021-01-14 Thread gjr80
Hi,

If I read your post correctly the problem you have is that you can't 
display wifi status, various sensor rf status and various sensors battery 
status on your Seasons page? Your netatmo driver is picking up the data and 
passing it to WeeWX, there's just a few things you need to do to make the 
data available to the Seasons skin. First up you need to get WeeWX to save 
the sensor status data to database. Then you need to modify the Seasons 
skin to display the sensor status fields concerned.

According to the log extract everything is running without error and we can 
see the fields the netatmo driver is emitting in loop packets from this 
line:

Jan 12 11:37:57 Raspi /weewxd: netatmo: MainThread: packet: {'dateTime': 
1610447878 , 'usUnits': 16, 'pressure': 994.5, 'inTemp': 23.1, 
'inHumidity': 40, 'co2': 672, ' noise': 44, 'wifi_status': 57, 'outTemp': 
3, 'outHumidity': 75, 'out_rf_status': 60 , 'out_battery_vp': 5874, 
'outTempBatteryStatus': 
93, 'windSpeed': 2, 'windDir': 23 7, 'windGust': 5, 'windGustDir': 237, 
'wind_rf_status': 
86, 'wind_battery_vp': 5907 , 'windBatteryStatus': 95, 'rain': 0.0, 
'rain_total': 0.06, 'rain_rf_status': 63, ' rain_battery_vp': 6046, 
'rainBatteryStatus': 
100} 

WeeWX will accumulate the data in these loop packets and every archive 
period WeeWX will emit an archive record consisting of the accumulated loop 
packet fields. Try running WeeWX directly, 
 you will see the 
loop packets (lines starting with LOOP:) and archive records (lines 
starting with REC:) on your console. The reason the archive records are 
important is that it is those fields and their data that are saved to 
database. If a field in an archive record exists in your database schema 
then the data from that field is saved to database, if the field does not 
exist in the database schema then the data is not saved to database. The 
legacy wview schema does not have very many sensor status fields, the 
wview_extended schema has significantly more fields which covers a few of 
your netatmo fields (outTempBatteryStatus, windBatteryStatus and 
rainBatterystatus) but a number are not included (wifi_status, out_rf_status, 
out_battery_vp, wind_rf_status, wind_battery_vp, rain_rf_status and 
rain_battery_vp). We have a couple of choices here, we can modify your 
database schema and add the extra fields or we can repurpose some of the 
unused fields in your database. If you use the wview_extended schema it 
comes with a number of generic battery and signal level fields so I would 
suggest we use those rather than modify your schema.

To repurpose the fields:

1. You need to be using the wview_extended schema, you indicated you have 
tried that. If you are still using that schema then that is fine, if not 
change back to it.

2. We need to get the data from the xxx_status and xxx_battery_vp fields 
into the fields were are going to use in the wview_extended schema, there 
are a number of ways we can do this, I suggest we use the netatmo driver 
sensor map to do this in the driver. We do this using a [[sensor_map]] 
stanza in the netatmo driver config stanza in weewx.conf. Edit 
/etc/weewx/weewx.conf, locate the [netatmo] stanza and add the 
[[sensor_map]] stanza as follows:

[netatmo]

[[sensor_map]]
wifi_status = ''
# map wifi status to field signal1
signal1 = *.NAMain.wifi_status
out_rf_status = 
# map out rf status status to field signal2
signal2 = *.NAModule1.rf_status
wind_rf_status = 
# map wind rf status to field signal3
signal3 = *.NAModule2.rf_status
rain_rf_status = 
# map rain rf status to field signal4
signal4 = *.NAModule4.rf_status
out_battery_vp = 
# map out battery vp to field batteryStatus1
batteryStatus1 = *.NAModule1.battery_vp
wind_battery_vp = 
# map wind battery vp to field batteryStatus2
batteryStatus2 = *.NAModule2.battery_vp
rain_battery_vp = 
# map rain battery vp to field batteryStatus3
batteryStatus3 = *.NAModule3.battery_vp

3. Save weewx.conf and run WeeWX directly again. You should now see loop 
packets and archive records that contain fields signal1, signal2, signal3. 
signal4, batteryStatus1, batteryStatus2 and batteryStatus3. These fields 
should have the wifi status, rf status and battery vp status data you saw 
previously. If not or nothing happens check the WeeWX log for errors and 
post a log extract back here.

You now have all of the status fields being saved to database, now we need 
to configure the Seasons skin to display them. There are a couple of things 
to do here; first we need to make some changes to the file 
/etc/weewx/skins/Seasons/sensors.inc to include the new fields we are 
using. Secondly, we need to add a few entries to the Seasons skin config 
file  /etc/weewx/skins/Seasons/skin.conf. The changes to sensors.inc are