Re: [weewx-user] Re: Belchertown error in log about lightning

2023-05-20 Thread Tim Tuck

Hi Gary,

Thanks for your detailed analysis, I will delve further into the 
Belchertown configuration.


regards

Tim


--
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/7e420125-2013-754f-4e2d-f1fab19ffb27%40skybase.net.


Re: [weewx-user] Re: Belchertown error in log about lightning

2023-05-20 Thread gjr80
>From what you provide the Ecowitt gateway driver is performing as expected 
and I don't believe lightning_strike_count being None has anything to do 
with your Belchertown problem.

The Ecowitt gateway API provides lightning count as a cumulative value (and 
since WeeWX requires a per-period value), the driver calculates WeeWX field 
lightning_strike_count by taking the difference between successive 
cumulative lightning count values. When the driver is first started there 
is no previous value, and consequently the driver cannot calculate 
lightning_strike_count, so it returns the value None and that is what 
appears in the first loop packet (remember None means a sensor exists but 
WeeWX could not get valid data). This behaviour is identical to that for 
WeeWX field rain in almost all drivers. Subsequent loop packets include a 
numeric value, in your case 0, when the driver is run directly and again 
when WeeWX is run directly. In the archive records generated by WeeWX the 
initial loop packet None value has no effect and the archive record 
lightning_strike_count value is calculated (by WeeWX) as the sum of the 
loop packet values seen during the archive period (None values are 
effectively ignored). 

Whilst I don't use the Belchertown skin, as far as I can tell the 
Belchertown skin does not update plots with loop packet data, rather it 
updates plots with archive record data. Also, if you look at the error 
message in your first post, the error is generated when the Belchertown 
skin is obtaining archive record data; nothing to do (directly) with loop 
packet data. Both of these point to the issue being a mis-configuration in 
the Belchertown skin config file or the [StdReport] [[Belchertown]] stanza 
in weewx.conf. 

Gary
On Saturday, 20 May 2023 at 17:18:46 UTC+10 ti...@skybase.net wrote:

> Hi Gary,
>
> Thanks for your assistance, see comments below...
> On 20/5/23 07:42, gjr80 wrote:
>
> [snip]
>
>
> So, troubleshooting. The fact you are plotting lightning data leads me to 
> assume you do indeed have a WH57 lightning sensor linked to your Ecowitt 
> gateway device?
>
> Yes
>
> Do you see lightning data in the Ecowitt WSView Plus or WS View apps? 
>
> Yes
>
> Stop then restart WeeWX, let WeeWX run for at least two full archive 
> periods and then post a log extract showing the full WeeWX startup and the 
> reporting cycle for each archive period. Run WeeWX directly 
> , this will show 
> loop packet (LOOP:) and archive record (REC:) data on the console. Does 
> lightning_strike_count appear in the loop packets and archive records, 
> and what value do they show?
>
> weewx log output attached and in there I see 'lightning_strike_count': 
> '0', in LOOP and 'lightning_strike_count': '0.0', in REC
>
> But running the gw1000 driver via PYTHONPATH=/usr/share/weewx/ python3 -m 
> user.gw1000 --test-driver shows...
>
>  'lightning_strike_count': 'None'
>
> See logs attached for both.
>
> thanks
>
> Tim
>

-- 
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/ffcc4813-cf07-401c-8470-594ea564231cn%40googlegroups.com.


Re: [weewx-user] Problems with weewx on MacOS

2023-05-20 Thread Tom Keffer
By default, V4.10.2 does not include a 'rotate' logging handler. It has to
be added.

By any chance, do you have a [Logging] section in weewx.conf? If so, what
does it say?

On Sat, May 20, 2023 at 1:38 AM seano...@gmail.com 
wrote:

> Hi,
>
> I have done many successful installations of weewx on raspberry pi and I
> previously installed weewx on MacOS successfully. About a month ago, the
> MacOS station stopped reporting so I have been troubleshooting it. I can't
> figure out what is going on because I am very poor with python. Can anyone
> give me any suggestions? I have tried to remove and reinstall python3 using
> brew - currently version 3.10.8 is running when I type 'python3 --version'.
>
> I also updated weewx to 4.10.2 and from what i can see everything is
> installed and working, including all dependencies. But still when I
> run 'sudo python3 ./bin/weewxd weewx.conf' I get python errors. Please can
> someone see below and give me any suggestions? Thank you
>
> apple@Mac-mini weewx % sudo python3 ./bin/weewxd weewx.conf
> Traceback (most recent call last):
>   File 
> "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py",
> line 565, in configure
> handler = self.configure_handler(handlers[name])
>   File 
> "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py",
> line 723, in configure_handler
> klass = self.resolve(cname)
>   File 
> "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py",
> line 383, in resolve
> name = s.split('.')
> AttributeError: 'NoneType' object has no attribute 'split'
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File "/Users/Shared/weewx/./bin/weewxd", line 249, in 
> main()
>   File "/Users/Shared/weewx/./bin/weewxd", line 98, in main
> weeutil.logger.setup(options.log_label, config_dict)
>   File "/Users/Shared/weewx/bin/weeutil/logger.py", line 139, in setup
> logging.config.dictConfig(log_dict)
>   File 
> "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py",
> line 811, in dictConfig
> dictConfigClass(config).configure()
>   File 
> "/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py",
> line 572, in configure
> raise ValueError('Unable to configure handler '
> ValueError: Unable to configure handler 'rotate'
> apple@Mac-mini weewx %
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/298c4f09-6ad2-40af-90c6-4469811ac778n%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/CAPq0zECx336Nnq59hX8KPhLvHPwpmvhj2YFOutREag4Ju4Cnpw%40mail.gmail.com.


Re: [weewx-user] FTP Skin weewx - not synchronize a particular file

2023-05-20 Thread Tom Keffer
Not an unreasonable request, but at this point there is no way to do that.

What you can do is put the counter file and weewx files in separate
directories, then FTP only the latter.

On Fri, May 19, 2023 at 11:38 PM Remy LAVABRE 
wrote:

> Thanks for your reply Tom.
> Yes the FTP skin transfers all files from the Apache WEEWX server to an
> external server such as a site host for example.
> The problem is for example when there is a HTML page view counter text
> file. That of the main server if it changes overwrites that of the mirror
> server... To avoid this, would it be possible to provide in the skin.conf
> configuration file of the FTP skin a list of files not to be copied in FTP?
> Thanks Tom
>
> *Rémy LAVABRE*
>
>
> Le ven. 19 mai 2023 à 20:29, Tom Keffer  a écrit :
>
>> Not understanding the question. Page view files normally live on the
>> webserver. WeeWX FTP only moves files from the weewx host to the webserver,
>> not the other way around.
>>
>> On Wed, May 17, 2023 at 5:07 AM Remy Lavabre 
>> wrote:
>>
>>> Good morning,
>>> Is there a way with the FTP skin not to synchronize a particular file
>>> between the appache weewx server and a copy at a host, such as a page view
>>> counter file?
>>> THANKS
>>>
>>> --
>>> 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/2d7e0a3b-8fa6-41b2-a836-8921be08ac7en%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "weewx-user" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/weewx-user/05b0DmvRyoY/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> weewx-user+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/CAPq0zEDWL99gmfU_CP1sucV3ZD96qEZJHmXYz00rDUh3AbJD%2BQ%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CADhm9Yf2u9XvvkgOrWa_QiBfEM18e5_AH%2BNQdcrd%3DNtpiUcTMg%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zECqy_e3H%3DvzPwj1A5TbT-4DLbS28OZ6BzcpJeE76zN_ew%40mail.gmail.com.


[weewx-user] Problems with weewx on MacOS

2023-05-20 Thread seano...@gmail.com
Hi,

I have done many successful installations of weewx on raspberry pi and I 
previously installed weewx on MacOS successfully. About a month ago, the 
MacOS station stopped reporting so I have been troubleshooting it. I can't 
figure out what is going on because I am very poor with python. Can anyone 
give me any suggestions? I have tried to remove and reinstall python3 using 
brew - currently version 3.10.8 is running when I type 'python3 --version'.

I also updated weewx to 4.10.2 and from what i can see everything is 
installed and working, including all dependencies. But still when I 
run 'sudo python3 ./bin/weewxd weewx.conf' I get python errors. Please can 
someone see below and give me any suggestions? Thank you

apple@Mac-mini weewx % sudo python3 ./bin/weewxd weewx.conf
Traceback (most recent call last):
  File 
"/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py",
 
line 565, in configure
handler = self.configure_handler(handlers[name])
  File 
"/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py",
 
line 723, in configure_handler
klass = self.resolve(cname)
  File 
"/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py",
 
line 383, in resolve
name = s.split('.')
AttributeError: 'NoneType' object has no attribute 'split'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/Shared/weewx/./bin/weewxd", line 249, in 
main()
  File "/Users/Shared/weewx/./bin/weewxd", line 98, in main
weeutil.logger.setup(options.log_label, config_dict)
  File "/Users/Shared/weewx/bin/weeutil/logger.py", line 139, in setup
logging.config.dictConfig(log_dict)
  File 
"/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py",
 
line 811, in dictConfig
dictConfigClass(config).configure()
  File 
"/usr/local/Cellar/python@3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py",
 
line 572, in configure
raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'rotate'
apple@Mac-mini weewx % 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/298c4f09-6ad2-40af-90c6-4469811ac778n%40googlegroups.com.


Re: [weewx-user] Re: Belchertown error in log about lightning

2023-05-20 Thread Tim Tuck

Hi Gary,

Thanks for your assistance, see comments below...

On 20/5/23 07:42, gjr80 wrote:
[snip]


So, troubleshooting. The fact you are plotting lightning data leads me 
to assume you do indeed have a WH57 lightning sensor linked to your 
Ecowitt gateway device?


Yes


Do you see lightning data in the Ecowitt WSView Plus or WS View apps?

Yes
Stop then restart WeeWX, let WeeWX run for at least two full archive 
periods and then post a log extract showing the full WeeWX startup and 
the reporting cycle for each archive period. Run WeeWX directly 
, this will 
show loop packet (LOOP:) and archive record (REC:) data on the 
console. Does lightning_strike_count appear in the loop packets and 
archive records, and what value do they show?
weewx log output attached and in there I see 'lightning_strike_count': 
'0', in LOOP and 'lightning_strike_count': '0.0', in REC


But running the gw1000 driver via PYTHONPATH=/usr/share/weewx/ python3 
-m user.gw1000 --test-driver shows...


 'lightning_strike_count': 'None'

See logs attached for both.

thanks

Tim

--
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/56ef27c1-a13f-9b3d-9f34-68db9c3c1399%40skybase.net.
timt@metoffice:~$ sudo weewxd /etc/weewx/weewx.conf
Type beaufort has been deprecated. Use unit beaufort instead.
LOOP:   2023-05-20 16:55:04 AEST (1684565704) 'altimeter': 
'30.033126906380247', 'appTemp': '58.97692092101752', 'barometer': 
'30.030467662605236', 'batteryStatus2': '4', 'batteryStatus3': '1.3', 
'batteryStatus4': '1.7', 'beaufort': '0', 'cloudbase': '2190.2738459355787', 
'dateTime': '1684565704', 'daymaxwind': '5.0', 'dayRain': '0.0', 'dewpoint': 
'49.608202511986875', 'ET': 'None', 'extraTemp9': '60.44', 'extraTemp10': 
'85.28', 'heatindex': '57.9370005', 'humidex': '61.12115527851948', 
'inDewpoint': '56.532051046686114', 'inHumidity': '58', 'inTemp': '72.14', 
'lightning_distance': '14.912908608', 'lightning_last_det_time': '1683941871', 
'lightning_strike_count': 'None', 'lightningcount': '0', 'luminosity': '820.0', 
'maxSolarRad': '0.0030320883090602774', 'monthRain': '0.2519685039370079', 
'outHumidity': '71', 'outTemp': '59.0', 'pressure': '29.96998431375', 
'radiation': '6.471981057616417', 'rain': 'None', 'rainRate': '0.0', 
'relbarometer': '1015.3', 'soilMoist1': '32', 'soilMoist2': '36', 'stormRain': 
'0.0', 'usUnits': '1', 'UV': '0', 'uvradiation': '0.0', 'weekRain': '5.7', 
'wh51_ch1_sig': '4', 'wh51_ch2_sig': '4', 'wh57_sig': '4', 'windchill': '59.0', 
'windDir': 'None', 'windGust': '1.565859296357513', 'windrun': 'None', 
'windSpeed': '0.0', 'wn34_ch1_batt': '1.36', 'wn34_ch1_sig': '4', 
'wn34_ch2_batt': '1.36', 'wn34_ch2_sig': '4', 'ws90_batt': '3.18', 'ws90_sig': 
'4', 'yearRain': '13.720472440944883'
LOOP:   2023-05-20 16:55:34 AEST (1684565734) 'altimeter': 
'30.033126906380247', 'appTemp': '58.120913768738134', 'barometer': 
'30.030488681303616', 'batteryStatus2': '4', 'batteryStatus3': '1.3', 
'batteryStatus4': '1.7', 'beaufort': '0', 'cloudbase': '2188.602252637784', 
'dateTime': '1684565734', 'daymaxwind': '5.0', 'dayRain': '0.0', 'dewpoint': 
'49.43555752249717', 'ET': 'None', 'extraTemp9': '60.44', 'extraTemp10': 
'85.28', 'heatindex': '57.739', 'humidex': '60.86270731980295', 'inDewpoint': 
'56.532051046686114', 'inHumidity': '58', 'inTemp': '72.14', 
'lightning_distance': '14.912908608', 'lightning_last_det_time': '1683941871', 
'lightning_strike_count': '0', 'lightningcount': '0', 'luminosity': '780.0', 
'maxSolarRad': '0.0016256788674181978', 'monthRain': '0.2519685039370079', 
'outHumidity': '71', 'outTemp': '58.82', 'pressure': '29.96998431375', 
'radiation': '6.156274664561957', 'rain': '0.0', 'rainRate': '0.0', 
'relbarometer': '1015.3', 'soilMoist1': '32', 'soilMoist2': '36', 'stormRain': 
'0.0', 'usUnits': '1', 'UV': '0', 'uvradiation': '0.0', 'weekRain': '5.7', 
'wh51_ch1_sig': '4', 'wh51_ch2_sig': '4', 'wh57_sig': '4', 'windchill': 
'58.82', 'windDir': '111', 'windGust': '1.565859296357513', 'windrun': 'None', 
'windSpeed': '1.1184709259696521', 'wn34_ch1_batt': '1.36', 'wn34_ch1_sig': 
'4', 'wn34_ch2_batt': '1.36', 'wn34_ch2_sig': '4', 'ws90_batt': '3.18', 
'ws90_sig': '4', 'yearRain': '13.720472440944883'
LOOP:   2023-05-20 16:56:04 AEST (1684565764) 'altimeter': 
'30.033126906380247', 'appTemp': '57.99491376873813', 'barometer': 
'30.030488681303616', 'batteryStatus2': '4', 'batteryStatus3': '1.3', 
'batteryStatus4': '1.7', 'beaufort': '1', 'cloudbase': '2188.602252637784', 
'dateTime': '1684565764', 'daymaxwind': '5.0', 'dayRain': '0.0', 'dewpoint': 
'49.43555752249717', 'ET': 'None', 'extraTemp9': '60.625', 
'extraTemp10': '85.28', 'heatindex': '57.739', 'humidex': 

Re: [weewx-user] FTP Skin weewx - not synchronize a particular file

2023-05-20 Thread Remy LAVABRE
Thanks for your reply Tom.
Yes the FTP skin transfers all files from the Apache WEEWX server to an
external server such as a site host for example.
The problem is for example when there is a HTML page view counter text
file. That of the main server if it changes overwrites that of the mirror
server... To avoid this, would it be possible to provide in the skin.conf
configuration file of the FTP skin a list of files not to be copied in FTP?
Thanks Tom

*Rémy LAVABRE*


Le ven. 19 mai 2023 à 20:29, Tom Keffer  a écrit :

> Not understanding the question. Page view files normally live on the
> webserver. WeeWX FTP only moves files from the weewx host to the webserver,
> not the other way around.
>
> On Wed, May 17, 2023 at 5:07 AM Remy Lavabre 
> wrote:
>
>> Good morning,
>> Is there a way with the FTP skin not to synchronize a particular file
>> between the appache weewx server and a copy at a host, such as a page view
>> counter file?
>> THANKS
>>
>> --
>> 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/2d7e0a3b-8fa6-41b2-a836-8921be08ac7en%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/05b0DmvRyoY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEDWL99gmfU_CP1sucV3ZD96qEZJHmXYz00rDUh3AbJD%2BQ%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CADhm9Yf2u9XvvkgOrWa_QiBfEM18e5_AH%2BNQdcrd%3DNtpiUcTMg%40mail.gmail.com.