Re: [weewx-user] Re: Monitoring RESTful API calls sending weather data

2022-07-06 Thread vince
Sorry - no I don't know of any.  What you're asking is rather unique and 
for me, I don't even understand why it seems so important to you.

Many years ago at $work we had a lot of elaborate rsyslog (I think) rewrite 
rules to save special things to discrete files, but it's been so long that 
I can't remember the exact details.  I think 'example 2' 
of 
https://www.thegeekdiary.com/etc-rsyslog-conf-setup-a-filter-to-discard-or-redirect-messages/
 
gives one example you might fiddle with.

There are a lot of syslog daemons with varying capabilities, so I don't 
know what's in the os you're running.

The other very heavy option would be running Splunk (which might not even 
work on a pi) which can do just about anything you can cook up, but you are 
seriously upping the compute horsepower and complexity ante if you go down 
that path.

-- 
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/99e540e7-48d6-4b9e-9272-4e8f6912606en%40googlegroups.com.


Re: [weewx-user] Re: Monitoring RESTful API calls sending weather data

2022-07-06 Thread Kruse Ludington
Hi again Vince and thank you also Tom. I agree to the point that the source 
for the overriden function "can't really afford to change" - but wouild 
assume any updated version however when I do update would include another 
copy of the same file so I'd have to go replace it each time with my own 
etc Rethinking this... even later extensions such as say to send to 
"Meteoservices" is also inherited from that original function so if I 
changed the original at that parent level it woiuld cap[ture those too?

I used to write alot of code in my previous life for trading systems on 
wall street but that was a long time ago - so that along with the fact this 
is on my spare time which I have very little of and I am new to Python and 
MQTT etc... not sure it it's worth the hassle to figure out how to do it in 
an elegant proper manner. I guess I'll continue to search high and low when 
I have the time to figure out how to, from within HA, to listen to the 
network traffic - which I don't think I will find - or as a second option 
to find some plugin that will scrape logs... sigh...

So while I look for a way for HA to listen to network traffic - do 
either of you guys know of any very lightweight processes I could put on 
the RPI to listent to traffic and publish to MQTT? The cron job is a good 
idea but that's still scraping the logs rather than listnining to traffic, 
correct?

On Wednesday, July 6, 2022 at 8:20:03 PM UTC-4 tke...@gmail.com wrote:

> This monkey patch would be pretty safe. The function process_record() is 
> intended to be overridden by subclasses, so it can't really afford to 
> change.
>
> Not to mention, log entries can change too!
>
> On Wed, Jul 6, 2022 at 1:48 PM vince  wrote:
>
>> Some creative syslog config file rewrite rules might be able to generate 
>> separate output file(s) and associated data in a format you can parse with 
>> HA, but how to do it depends on your os and which syslog daemon(s) you are 
>> running.
>>
>> Personally, I'd use a cron job to publish to MQTT every few minutes and 
>> simply have HA subscribe to those topics.
>>
>> If you do it by patching weewx, you'll have to keep that patch valid as 
>> weewx changes, so that's probably less good a direction to follow.
>>
>> On Tuesday, July 5, 2022 at 8:44:08 PM UTC-7 rklud...@gmail.com wrote:
>>
>>> The below 3 lines (I put blank lines between them for readability) from 
>>> my weewx.log, regarding my AmbientWeather WS-2902C weather station:
>>>
>>> Jul 5 23:00:30 kruse-pi weewx[701] INFO weewx.restx:
>>> Windy: Published record 2022-07-05 23:00:00 EDT (1657076400)
>>>
>>> Jul 5 23:00:30 kruse-pi weewx[701] INFO weewx.restx: 
>>> WindGuru: Published record 2022-07-05 23:00:00 EDT (1657076400)
>>>
>>> Jul 5 23:00:30 kruse-pi weewx[701] INFO weewx.restx: CWOP: Published 
>>> record 2022-07-05 23:00:00 EDT (1657076400)
>>>
>>>
>>> There are many others but that is a simple example of three weather 
>>> sites where I am pushing weather data.
>>>
>>> This instance of Weewx is running on a Raspberry PI 4B 8GB running a 1TB 
>>> SSD (rather than a micro SD card) for performance reasons.
>>>
>>> Also on that same RPI, I have Home Assistant Supervised running in a 
>>> docker. 
>>>
>>> I don't care what the mechanism is other than something elegant (ideally 
>>> by listening to network traffic, not by log scraping), reliable and 
>>> lightweight, but I am trying to determine the best way to be notified 
>>> within Home Assistant the most recent time I have sent data to each of 
>>> these websites, being updated each time another API call is successfully 
>>> made.
>>>
>>> Home Assistant supports MQTT, but out of the box functionality for weewx 
>>> as I understand it MQTT is only available for sending the weather data to 
>>> destination/s via MQTT, not reporting when RESTful API calls are 
>>> successfully published, which is the notification I need. Is there an 
>>> extension for this or would it be something I need to create myself 
>>> (notifications about successful API calls)?
>>>
>>> Best Regards,
>>>
>>> -R. Kruse Ludington
>>>
>>> 📱(M): +1.201.925.4410 <(201)%20925-4410>
>>> 📞(O): +1.862.308.7040 <(862)%20308-7040>
>>> 📞(H): +1.201.857.8307 <(201)%20857-8307>
>>> 📠(F): +1.201.857.7188 <(201)%20857-7188>
>>>
>> -- 
>>
> 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/2265112d-89e2-4f51-91c2-0fa01d0ff98dn%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

[weewx-user] Re: National Weather Service location IDs

2022-07-06 Thread an oldman
if you are looking for the pfm try this address
https://forecast.weather.gov/product_sites.php?site=NWS&product=PFM
it list all the pfms

On Wednesday, July 6, 2022 at 9:11:39 PM UTC-5 vince wrote:

> That is a GREAT find.   Comes up right on the money for me.
>
> Forecast office is SEW(foid in weewx.conf)
> Forecast zone is WAZ558   (lid in weewx.conf)
>
> On Wednesday, July 6, 2022 at 6:33:23 PM UTC-7 wfs...@gmail.com wrote:
>
>> if you plug your lat and lon into the weather.gov api, a la
>> https://api.weather.gov/points/39.7832,-89.6644
>> you'll get a bunch of info back that might contain what you're looking 
>> for.  I'm not familiar with the terms LID and FOID
>> In my case it tells me
>> my forecast office is ILX
>> my grid coordinates are 46,54
>> my forecast zone is ILZ051
>> my county zone is ILC167
>> my fire weather zone is ILZ051
>>
>> api documentation at 
>> API Web Service (weather.gov) 
>> 
>>
>> On Wednesday, July 6, 2022 at 3:41:56 PM UTC-5 mcu...@gmail.com wrote:
>>
>>> I have been relentlessly searching for a list of NWS LIDs for the 
>>> forecast module and cannot even find a mention of them on their site or 
>>> Wikican somone push me in the right direction I am trying to get the 
>>> Foid and lid for Columbia SC.  I beleive the Foid to be CAE but the 6 digit 
>>> ID is the problem. 
>>> Thank-you
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b39b8488-d27b-421c-acb5-b7e4f53c3232n%40googlegroups.com.


[weewx-user] Re: National Weather Service location IDs

2022-07-06 Thread vince
That is a GREAT find.   Comes up right on the money for me.

Forecast office is SEW(foid in weewx.conf)
Forecast zone is WAZ558   (lid in weewx.conf)

On Wednesday, July 6, 2022 at 6:33:23 PM UTC-7 wfs...@gmail.com wrote:

> if you plug your lat and lon into the weather.gov api, a la
> https://api.weather.gov/points/39.7832,-89.6644
> you'll get a bunch of info back that might contain what you're looking 
> for.  I'm not familiar with the terms LID and FOID
> In my case it tells me
> my forecast office is ILX
> my grid coordinates are 46,54
> my forecast zone is ILZ051
> my county zone is ILC167
> my fire weather zone is ILZ051
>
> api documentation at 
> API Web Service (weather.gov) 
> 
>
> On Wednesday, July 6, 2022 at 3:41:56 PM UTC-5 mcu...@gmail.com wrote:
>
>> I have been relentlessly searching for a list of NWS LIDs for the 
>> forecast module and cannot even find a mention of them on their site or 
>> Wikican somone push me in the right direction I am trying to get the 
>> Foid and lid for Columbia SC.  I beleive the Foid to be CAE but the 6 digit 
>> ID is the problem. 
>> Thank-you
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/627098f0-bc88-4ea3-aca5-84e0a1be1168n%40googlegroups.com.


[weewx-user] Re: Raspberry to raspberry vsftpD can not login???

2022-07-06 Thread NightTripper
The user and password work with other programs. vsftpd is in stock 
configuration.  DNS is not in the equation as I'm using an IP address.  
Using stock Pi OS with LAMP installed.  I'll try to get out there and get 
some logs.

Thank you
Night

On Wednesday, July 6, 2022 at 3:40:30 PM UTC-5 vince wrote:

> It could be many things.  Passwords.  FTP server configuration.  DNS. Typo 
> in your username/password.   Many things.
>
> I'd start with ensuring it works from the shell 'without' involving weewx. 
>  That will validate your os setup.
>
> But if you don't tell us your os+configuration and provide some logs and 
> shell session transcripts, nobody's going to be able to guess a solution.
>
>

-- 
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/cd32b62e-21c1-488a-a8e2-dd00db6c1db9n%40googlegroups.com.


[weewx-user] Re: National Weather Service location IDs

2022-07-06 Thread wfs...@gmail.com
if you plug your lat and lon into the weather.gov api, a la
https://api.weather.gov/points/39.7832,-89.6644
you'll get a bunch of info back that might contain what you're looking 
for.  I'm not familiar with the terms LID and FOID
In my case it tells me
my forecast office is ILX
my grid coordinates are 46,54
my forecast zone is ILZ051
my county zone is ILC167
my fire weather zone is ILZ051

api documentation at 
API Web Service (weather.gov) 


On Wednesday, July 6, 2022 at 3:41:56 PM UTC-5 mcu...@gmail.com wrote:

> I have been relentlessly searching for a list of NWS LIDs for the forecast 
> module and cannot even find a mention of them on their site or Wikican 
> somone push me in the right direction I am trying to get the Foid and lid 
> for Columbia SC.  I beleive the Foid to be CAE but the 6 digit ID is the 
> problem. 
> Thank-you
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/82cbc07e-8584-4b89-8410-03f278b5ecf6n%40googlegroups.com.


Re: [weewx-user] Re: Monitoring RESTful API calls sending weather data

2022-07-06 Thread Tom Keffer
This monkey patch would be pretty safe. The function process_record() is
intended to be overridden by subclasses, so it can't really afford to
change.

Not to mention, log entries can change too!

On Wed, Jul 6, 2022 at 1:48 PM vince  wrote:

> Some creative syslog config file rewrite rules might be able to generate
> separate output file(s) and associated data in a format you can parse with
> HA, but how to do it depends on your os and which syslog daemon(s) you are
> running.
>
> Personally, I'd use a cron job to publish to MQTT every few minutes and
> simply have HA subscribe to those topics.
>
> If you do it by patching weewx, you'll have to keep that patch valid as
> weewx changes, so that's probably less good a direction to follow.
>
> On Tuesday, July 5, 2022 at 8:44:08 PM UTC-7 rklud...@gmail.com wrote:
>
>> The below 3 lines (I put blank lines between them for readability) from
>> my weewx.log, regarding my AmbientWeather WS-2902C weather station:
>>
>> Jul 5 23:00:30 kruse-pi weewx[701] INFO weewx.restx:
>> Windy: Published record 2022-07-05 23:00:00 EDT (1657076400)
>>
>> Jul 5 23:00:30 kruse-pi weewx[701] INFO weewx.restx:
>> WindGuru: Published record 2022-07-05 23:00:00 EDT (1657076400)
>>
>> Jul 5 23:00:30 kruse-pi weewx[701] INFO weewx.restx: CWOP: Published
>> record 2022-07-05 23:00:00 EDT (1657076400)
>>
>>
>> There are many others but that is a simple example of three weather sites
>> where I am pushing weather data.
>>
>> This instance of Weewx is running on a Raspberry PI 4B 8GB running a 1TB
>> SSD (rather than a micro SD card) for performance reasons.
>>
>> Also on that same RPI, I have Home Assistant Supervised running in a
>> docker.
>>
>> I don't care what the mechanism is other than something elegant (ideally
>> by listening to network traffic, not by log scraping), reliable and
>> lightweight, but I am trying to determine the best way to be notified
>> within Home Assistant the most recent time I have sent data to each of
>> these websites, being updated each time another API call is successfully
>> made.
>>
>> Home Assistant supports MQTT, but out of the box functionality for weewx
>> as I understand it MQTT is only available for sending the weather data to
>> destination/s via MQTT, not reporting when RESTful API calls are
>> successfully published, which is the notification I need. Is there an
>> extension for this or would it be something I need to create myself
>> (notifications about successful API calls)?
>>
>> Best Regards,
>>
>> -R. Kruse Ludington
>>
>> 📱(M): +1.201.925.4410 <(201)%20925-4410>
>> 📞(O): +1.862.308.7040 <(862)%20308-7040>
>> 📞(H): +1.201.857.8307 <(201)%20857-8307>
>> 📠(F): +1.201.857.7188 <(201)%20857-7188>
>>
> --
> 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/2265112d-89e2-4f51-91c2-0fa01d0ff98dn%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/CAPq0zEDyEqRecFCnkKeteWBS1krcda%3DF9QvkPSS3H0gY6ayn9Q%40mail.gmail.com.


[weewx-user] Re: National Weather Service location IDs

2022-07-06 Thread vince
I might add there's a map for the forecast offices (FOID) too.
https://www.weather.gov/srh/nwsoffices

Just look at the URL it uses when you click on the map.

On Wednesday, July 6, 2022 at 1:57:06 PM UTC-7 vince wrote:

> That is the hard part for sure.
>
> I just found a nice online reference
> Just use the map, Luke :-)
>
> https://www.weather.gov/pimar/PubZone
>
> https://www.weather.gov/source/pimar/PubZone/sc_zone.jpg
>
>
> On Wednesday, July 6, 2022 at 1:41:56 PM UTC-7 mcu...@gmail.com wrote:
>
>> I have been relentlessly searching for a list of NWS LIDs for the 
>> forecast module and cannot even find a mention of them on their site or 
>> Wikican somone push me in the right direction I am trying to get the 
>> Foid and lid for Columbia SC.  I beleive the Foid to be CAE but the 6 digit 
>> ID is the problem. 
>> Thank-you
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/24e79fe6-887a-442f-8985-50ac2fcd1796n%40googlegroups.com.


Re: [weewx-user] National Weather Service location IDs

2022-07-06 Thread p q
https://www.weather.gov/gis/PublicZones

You can open the DBF in Excel.

On Wed, Jul 6, 2022 at 1:41 PM MIchael Cumbee  wrote:

> I have been relentlessly searching for a list of NWS LIDs for the forecast
> module and cannot even find a mention of them on their site or Wikican
> somone push me in the right direction I am trying to get the Foid and lid
> for Columbia SC.  I beleive the Foid to be CAE but the 6 digit ID is the
> problem.
> Thank-you
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/c888275d-e415-4ac6-91a7-a13fa4124138n%40googlegroups.com
> 
> .
>


-- 
Peter Quinn
(415)794-2264

-- 
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/CAA1SM23TVJGqMXoTCg9jUAaU4ZhPFwFbMyQg%3Dj8vqTcs%2BYszQA%40mail.gmail.com.


[weewx-user] Re: National Weather Service location IDs

2022-07-06 Thread vince
That is the hard part for sure.

I just found a nice online reference
Just use the map, Luke :-)

https://www.weather.gov/pimar/PubZone

https://www.weather.gov/source/pimar/PubZone/sc_zone.jpg


On Wednesday, July 6, 2022 at 1:41:56 PM UTC-7 mcu...@gmail.com wrote:

> I have been relentlessly searching for a list of NWS LIDs for the forecast 
> module and cannot even find a mention of them on their site or Wikican 
> somone push me in the right direction I am trying to get the Foid and lid 
> for Columbia SC.  I beleive the Foid to be CAE but the 6 digit ID is the 
> problem. 
> Thank-you
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/befa3423-3916-49a7-aee1-b434c08c33fen%40googlegroups.com.


[weewx-user] Re: Monitoring RESTful API calls sending weather data

2022-07-06 Thread vince
Some creative syslog config file rewrite rules might be able to generate 
separate output file(s) and associated data in a format you can parse with 
HA, but how to do it depends on your os and which syslog daemon(s) you are 
running.

Personally, I'd use a cron job to publish to MQTT every few minutes and 
simply have HA subscribe to those topics.

If you do it by patching weewx, you'll have to keep that patch valid as 
weewx changes, so that's probably less good a direction to follow.

On Tuesday, July 5, 2022 at 8:44:08 PM UTC-7 rklud...@gmail.com wrote:

> The below 3 lines (I put blank lines between them for readability) from my 
> weewx.log, regarding my AmbientWeather WS-2902C weather station:
>
> Jul 5 23:00:30 kruse-pi weewx[701] INFO weewx.restx:
> Windy: Published record 2022-07-05 23:00:00 EDT (1657076400)
>
> Jul 5 23:00:30 kruse-pi weewx[701] INFO weewx.restx: 
> WindGuru: Published record 2022-07-05 23:00:00 EDT (1657076400)
>
> Jul 5 23:00:30 kruse-pi weewx[701] INFO weewx.restx: CWOP: Published 
> record 2022-07-05 23:00:00 EDT (1657076400)
>
>
> There are many others but that is a simple example of three weather sites 
> where I am pushing weather data.
>
> This instance of Weewx is running on a Raspberry PI 4B 8GB running a 1TB 
> SSD (rather than a micro SD card) for performance reasons.
>
> Also on that same RPI, I have Home Assistant Supervised running in a 
> docker. 
>
> I don't care what the mechanism is other than something elegant (ideally 
> by listening to network traffic, not by log scraping), reliable and 
> lightweight, but I am trying to determine the best way to be notified 
> within Home Assistant the most recent time I have sent data to each of 
> these websites, being updated each time another API call is successfully 
> made.
>
> Home Assistant supports MQTT, but out of the box functionality for weewx 
> as I understand it MQTT is only available for sending the weather data to 
> destination/s via MQTT, not reporting when RESTful API calls are 
> successfully published, which is the notification I need. Is there an 
> extension for this or would it be something I need to create myself 
> (notifications about successful API calls)?
>
> Best Regards,
>
> -R. Kruse Ludington
>
> 📱(M): +1.201.925.4410 <(201)%20925-4410>
> 📞(O): +1.862.308.7040 <(862)%20308-7040>
> 📞(H): +1.201.857.8307 <(201)%20857-8307>
> 📠(F): +1.201.857.7188 <(201)%20857-7188>
>

-- 
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/2265112d-89e2-4f51-91c2-0fa01d0ff98dn%40googlegroups.com.


[weewx-user] National Weather Service location IDs

2022-07-06 Thread MIchael Cumbee
I have been relentlessly searching for a list of NWS LIDs for the forecast 
module and cannot even find a mention of them on their site or Wikican 
somone push me in the right direction I am trying to get the Foid and lid 
for Columbia SC.  I beleive the Foid to be CAE but the 6 digit ID is the 
problem. 
Thank-you

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


[weewx-user] Re: Raspberry to raspberry vsftpD can not login???

2022-07-06 Thread vince
It could be many things.  Passwords.  FTP server configuration.  DNS. Typo 
in your username/password.   Many things.

I'd start with ensuring it works from the shell 'without' involving weewx. 
 That will validate your os setup.

But if you don't tell us your os+configuration and provide some logs and 
shell session transcripts, nobody's going to be able to guess a solution.

-- 
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/0b7beace-f52e-414f-8df9-a2e7b528033en%40googlegroups.com.


Re: [weewx-user] Monitoring RESTful API calls sending weather data

2022-07-06 Thread Tom Keffer
Honestly, scraping the logs isn't so bad.

An alternative would be to monkey-patch the member function
weewx.restx.RESTThread.process_record(). The replacement version would
first call the original version, then, once it returns, post success by
whatever means you choose to Home Assistant.

On Tue, Jul 5, 2022 at 8:44 PM Kruse Ludington 
wrote:

> The below 3 lines (I put blank lines between them for readability) from my
> weewx.log, regarding my AmbientWeather WS-2902C weather station:
>
> Jul 5 23:00:30 kruse-pi weewx[701] INFO weewx.restx:
> Windy: Published record 2022-07-05 23:00:00 EDT (1657076400)
>
> Jul 5 23:00:30 kruse-pi weewx[701] INFO weewx.restx:
> WindGuru: Published record 2022-07-05 23:00:00 EDT (1657076400)
>
> Jul 5 23:00:30 kruse-pi weewx[701] INFO weewx.restx: CWOP: Published
> record 2022-07-05 23:00:00 EDT (1657076400)
>
>
> There are many others but that is a simple example of three weather sites
> where I am pushing weather data.
>
> This instance of Weewx is running on a Raspberry PI 4B 8GB running a 1TB
> SSD (rather than a micro SD card) for performance reasons.
>
> Also on that same RPI, I have Home Assistant Supervised running in a
> docker.
>
> I don't care what the mechanism is other than something elegant (ideally
> by listening to network traffic, not by log scraping), reliable and
> lightweight, but I am trying to determine the best way to be notified
> within Home Assistant the most recent time I have sent data to each of
> these websites, being updated each time another API call is successfully
> made.
>
> Home Assistant supports MQTT, but out of the box functionality for weewx
> as I understand it MQTT is only available for sending the weather data to
> destination/s via MQTT, not reporting when RESTful API calls are
> successfully published, which is the notification I need. Is there an
> extension for this or would it be something I need to create myself
> (notifications about successful API calls)?
>
> Best Regards,
>
> -R. Kruse Ludington
>
> 📱(M): +1.201.925.4410
> 📞(O): +1.862.308.7040
> 📞(H): +1.201.857.8307
> 📠(F): +1.201.857.7188
>
> --
> 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/181d19b93b8.29af.c5c13ad976ec84a62e2892bf98a0657b%40gmail.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/CAPq0zECJzT3OzmW7bNxOhaJOX8022N_0vxTvJH%3Dc3re6Sa95yg%40mail.gmail.com.


[weewx-user] Raspberry to raspberry vsftpD can not login???

2022-07-06 Thread NightTripper
I'm running WeeWX on a Raspberry Piv3b. It's been running for years with no 
other check-ins other than updates.  I started a Raspberry Pi v4 4gig as a 
home server.  I'm running vsftpd on it and I've turned vfw off.  I can use 
the local and outside networks to transfer files into out of, and change 
them in, the html folder.  I set up WeeWX to use a working user name and 
password to ftp on my local network.  And I'm using the local IP address.  
But WeeWX can not login?  Any tips from someone running the same 
configuration?

-- 
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/2bb34c88-7b7a-4bb6-a2ca-e800b28ede88n%40googlegroups.com.


Re: [weewx-user] Need to supress UV readings going to Weather Underground (WU)

2022-07-06 Thread StarMan703
Hello Tom thank you very much, that has stopped WU showing a maxed out UV 
on WU! BTW excellent customer service, Thank You!

On Wednesday, July 6, 2022 at 7:59:57 AM UTC-4 tke...@gmail.com wrote:

> You could try forcing UV to null. In weewx.conf:
>
> [StdCalibrate]
>   [[Corrections]]
> UV = None
>
>
>
> On Tue, Jul 5, 2022 at 7:09 PM StarMan703  wrote:
>
>> I have a 2004 Vantage Pro2 and have started getting sporadic UV readings 
>> when sending data up to  Weather Underground (WU). Problem is I "do not 
>> have a UV sensor". I did inspect the outside enclosure and found ants were 
>> in there playing cards, staying up late and laying eggs. My air compressor 
>> helped them move out.
>>
>> I pull the loop data locally for a taskbar display and am able to use 
>> "sed" to strip out the "16.0" random reading.
>>
>>  I would like to supress WEEWX output of UV readings going to WU?
>>
>> -- 
>> 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/eb9aa289-bd3e-4112-b3ff-25867dd864f0n%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/d94b4b49-cb99-40cf-99cf-af293e66fde4n%40googlegroups.com.


[weewx-user] Re: Need to supress UV readings going to Weather Underground (WU)

2022-07-06 Thread StarMan703
Hey wfs I have to admit i got tired of replacing batteries so replaced the 
supercap 10F with a 20F but that was almost 2 months ago. Could be related 
who knows?

On Wednesday, July 6, 2022 at 7:56:10 AM UTC-4 wfs...@gmail.com wrote:

> I don't post to WU but I have noticed this too lately with my VP1 
> station.  I'll get the occasional UV reading of 16.0 without having a UV 
> sensor.  I get a "missing image" icon on my modified standard skin web 
> page.  I don't recall this ever being a problem in the past.
>
> On Tuesday, July 5, 2022 at 9:09:08 PM UTC-5 StarMan703 wrote:
>
>> I have a 2004 Vantage Pro2 and have started getting sporadic UV readings 
>> when sending data up to  Weather Underground (WU). Problem is I "do not 
>> have a UV sensor". I did inspect the outside enclosure and found ants were 
>> in there playing cards, staying up late and laying eggs. My air compressor 
>> helped them move out.
>>
>> I pull the loop data locally for a taskbar display and am able to use 
>> "sed" to strip out the "16.0" random reading.
>>
>>  I would like to supress WEEWX output of UV readings going to WU?
>>
>

-- 
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/a44bf3b4-5bdb-406a-a86f-80d6b1162b0fn%40googlegroups.com.


Re: [weewx-user] Need to supress UV readings going to Weather Underground (WU)

2022-07-06 Thread Tom Keffer
You could try forcing UV to null. In weewx.conf:

[StdCalibrate]
  [[Corrections]]
UV = None



On Tue, Jul 5, 2022 at 7:09 PM StarMan703  wrote:

> I have a 2004 Vantage Pro2 and have started getting sporadic UV readings
> when sending data up to  Weather Underground (WU). Problem is I "do not
> have a UV sensor". I did inspect the outside enclosure and found ants were
> in there playing cards, staying up late and laying eggs. My air compressor
> helped them move out.
>
> I pull the loop data locally for a taskbar display and am able to use
> "sed" to strip out the "16.0" random reading.
>
>  I would like to supress WEEWX output of UV readings going to WU?
>
> --
> 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/eb9aa289-bd3e-4112-b3ff-25867dd864f0n%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/CAPq0zECwOjBTp%3DmgHa2HMXiNVnq1MpGWZE7bOwQu%3DJ0CsAOW5Q%40mail.gmail.com.


[weewx-user] Re: Need to supress UV readings going to Weather Underground (WU)

2022-07-06 Thread wfs...@gmail.com
I don't post to WU but I have noticed this too lately with my VP1 station.  
I'll get the occasional UV reading of 16.0 without having a UV sensor.  I 
get a "missing image" icon on my modified standard skin web page.  I don't 
recall this ever being a problem in the past.

On Tuesday, July 5, 2022 at 9:09:08 PM UTC-5 StarMan703 wrote:

> I have a 2004 Vantage Pro2 and have started getting sporadic UV readings 
> when sending data up to  Weather Underground (WU). Problem is I "do not 
> have a UV sensor". I did inspect the outside enclosure and found ants were 
> in there playing cards, staying up late and laying eggs. My air compressor 
> helped them move out.
>
> I pull the loop data locally for a taskbar display and am able to use 
> "sed" to strip out the "16.0" random reading.
>
>  I would like to supress WEEWX output of UV readings going to WU?
>

-- 
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/8aced58f-3799-4e1e-b95b-94d87c2e7480n%40googlegroups.com.


Re: [weewx-user] issue when trying to depict rain data from different weewx databases in Seasons skin (current and High/Low)

2022-07-06 Thread Tom Keffer
That would be one way to do it, but at that point, you're probably better
off going to a parameterized solution using $getVar().

I encourage you to take a look at Cheetah's documentation
. It's not great, but
it has a lot of useful tricks in it.



On Wed, Jul 6, 2022 at 12:15 AM Rainer Lang  wrote:

> Great, Tom, thank you - the proposed (1st) solution looks quite smart and
> is TESTED NOW - and works as expected.
> Looks as if I have to enlarge my Python and Cheetah generator knowledge
> significantly.
>
> The 2nd will be helpful to implement that into my neowx-material skin
> which was already parameterized before the Seasons skin was "rejuvenated"
> into its new also parameterized coding.
> When I have some more time, I'll also be looking into migrating my Seasons
> skin ...
>
> And I take it, that if I want to include more data-bindings, I just
> enlarge the $archive_data array by more elements ... (1st solution)
>
> thanks again
> cheers
> Rainer
>
> On 06.07.2022 01:42, Tom Keffer wrote:
>
> It looks like you are using an older version of Seasons (before it was
> parameterized). The variable $archive[1] is the result of evaluating $day,
> which makes it an instance of weewx.tags.TimespanBinder, built using
> default values in the initializer. At this point, it's too late to ask it
> to be built using a custom value for data_binding.
>
> What to do? You could introduce a new set of timespans, this time
> including your custom binding. It would look like (NOT TESTED):
>
> #set $archive_data = [('day', $day, $day(data_binding='rpi24-binding')),
> ('week', $week, $week(data_binding='rpi24-binding')), ('month', $month,
> $month(data_binding='rpi24-binding')), ('year', $year,
> $year(data_binding='rpi24-binding')), ('rainyear', $rainyear,
> $rainyear(data_binding='rpi24-binding'))]
>
> then use that when necessary:
>
> 
>   
> $archive[2].rainRate.max.format(add_label=False)
>  
>
> Another approach would be to update to the parameterized version of
> Seasons, which does its evaluation of TimespanBinder later, allowing it to
> be modified in a more straightforward way:
>
>  
>
>$getVar('%s.%s(data_binding='rpi24-binding')' % ($timespan,
> $x)).max.format(add_label=False)
>  
>
> -tk
>
>
> On Tue, Jul 5, 2022 at 2:57 PM 'Rainer Lang' via weewx-user <
> weewx-user@googlegroups.com> wrote:
>
>> After some more digging I have advanced:
>>
>> my 2nd issue, that the monthly and weekly data is not shown seems to be
>> solved:
>> while in the imagegenerator the week/month means 7 days back and 30 days
>> back from the current date,
>> $week and $month seem to mean the calender week and calender month - a
>> few tests with fake rain data in the database confirmed that
>>
>> remains the issue how to show the values from the remote database in the
>> High/Low portion of the High/Low table
>>
>> at http://www.weewx.com/docs/customizing.htm#Using_multiple_bindings
>> the example goes:
>>
>> 
>>   
>> Inside Temperature, Vantage
>> $current.inTemp
>>   
>>   
>> Inside Temperature, WMR100
>> > class="stats_data">$latest*($data_binding='wmr100_binding')*.inTemp
>>   
>> 
>>
>>
>> this translated into my hilo.inc code
>> 
>> $obs.label.rain
>> #for $archive in $archive_data
>> 
>>   $archive[1].rain.sum.format(add_label=False)
>> #end for
>> $unit.label.rain
>>  
>>  
>> $obs.label.rainRate
>> #for $archive in $archive_data
>> 
>>   
>> $archive[1].rainRate.max.format(add_label=False)
>> 
>> #end for
>> $unit.label.rainRate
>> 
>>
>> should in my understanding then be:
>>
>> 
>> $archive[1]*($data_binding='rpi24-binding')*
>> .rain.sum.format(add_label=False)
>> resp.
>>
>> 
>>   
>> $archive[1]*($data_binding='rpi24-binding')*.
>> rainRate.max.format(add_label=False)
>>  
>>
>> where "rpi24-binding" is my database binding of the remote database
>>
>> however, this produces a Cheetah Syntax error
>>
>> Jul  5 23:26:15 raspberrypi weewx[31166] ERROR weewx.cheetahgenerator:
>> Evaluation of template /etc/weewx/skins/Seasons/index.html.tmpl failed with
>> exception ''
>> Jul  5 23:26:15 raspberrypi weewx[31166] ERROR weewx.cheetahgenerator:
>>  Ignoring template /etc/weewx/skins/Seasons/index.html.tmpl
>> Jul  5 23:26:15 raspberrypi weewx[31166] ERROR weewx.cheetahgenerator:
>>  Reason: keyword can't be an expression (, line 1)
>> Jul  5 23:26:15 raspberrypi weewx[31166] ERROR weewx.cheetahgenerator:
>>   Traceback (most recent call last):
>> Jul  5 23:26:15 raspberrypi weewx[31166] ERROR weewx.cheetahgenerator:
>> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 348, in
>> generate
>> Jul  5 23:26:15 raspberrypi weewx[31166] ERROR weewx.cheetahgenerator:
>>   unicode_string = compiled_template.respond()
>> Jul  5 23:26:15 raspberrypi weewx[31166] ERROR weewx.c

Re: [weewx-user] issue when trying to depict rain data from different weewx databases in Seasons skin (current and High/Low)

2022-07-06 Thread Rainer Lang
Great, Tom, thank you - the proposed (1st) solution looks quite smart 
and is TESTED NOW - and works as expected.
Looks as if I have to enlarge my Python and Cheetah generator knowledge 
significantly.


The 2nd will be helpful to implement that into my neowx-material skin 
which was already parameterized before the Seasons skin was 
"rejuvenated" into its new also parameterized coding.
When I have some more time, I'll also be looking into migrating my 
Seasons skin ...


And I take it, that if I want to include more data-bindings, I just 
enlarge the $archive_data array by more elements ... (1st solution)


thanks again
cheers
Rainer

On 06.07.2022 01:42, Tom Keffer wrote:
It looks like you are using an older version of Seasons (before it was 
parameterized). The variable $archive[1] is the result of evaluating 
$day, which makes it an instance of weewx.tags.TimespanBinder, built 
using default values in the initializer. At this point, it's too late 
to ask it to be built using a custom value for data_binding.


What to do? You could introduce a new set of timespans, this time 
including your custom binding. It would look like (NOT TESTED):


#set $archive_data = [('day', $day, 
$day(data_binding='rpi24-binding')), ('week', $week, 
$week(data_binding='rpi24-binding')), ('month', $month, 
$month(data_binding='rpi24-binding')), ('year', $year, 
$year(data_binding='rpi24-binding')), ('rainyear', $rainyear, 
$rainyear(data_binding='rpi24-binding'))]


then use that when necessary:


      
        $archive[2].rainRate.max.format(add_label=False)
     

Another approach would be to update to the parameterized version of 
Seasons, which does its evaluation of TimespanBinder later, allowing 
it to be modified in a more straightforward way:


 
       
       $getVar('%s.%s(data_binding='rpi24-binding')' % ($timespan, 
$x)).max.format(add_label=False)

     

-tk


On Tue, Jul 5, 2022 at 2:57 PM 'Rainer Lang' via weewx-user 
 wrote:


After some more digging I have advanced:

my 2nd issue, that the monthly and weekly data is not shown seems
to be solved:
while in the imagegenerator the week/month means 7 days back and
30 days back from the current date,
$week and $month seem to mean the calender week and calender month
- a few tests with fake rain data in the database confirmed that

remains the issue how to show the values from the remote database
in the High/Low portion of the High/Low table

at http://www.weewx.com/docs/customizing.htm#Using_multiple_bindings
the example goes:

  Inside Temperature,
Vantage $current.inTemp 
 Inside Temperature, WMR100 $latest/*($data_binding='wmr100_binding')*/.inTemp
 

this translated into my hilo.inc code

    $obs.label.rain
    #for $archive in $archive_data
    
$archive[1].rain.sum.format(add_label=False)
    #end for
    $unit.label.rain
 
 
    $obs.label.rainRate
    #for $archive in $archive_data
    
  
$archive[1].rainRate.max.format(add_label=False)
    
    #end for
    $unit.label.rainRate


should in my understanding then be:

/*

*/$archive[1]/*($data_binding='rpi24-binding')*/.rain.sum.format(add_label=False)
resp.


  

$archive[1]/*($data_binding='rpi24-binding')*/.rainRate.max.format(add_label=False)


where "rpi24-binding" is my database binding of the remote database

however, this produces a Cheetah Syntax error

Jul  5 23:26:15 raspberrypi weewx[31166] ERROR
weewx.cheetahgenerator: Evaluation of template
/etc/weewx/skins/Seasons/index.html.tmpl failed with exception
''
Jul  5 23:26:15 raspberrypi weewx[31166] ERROR
weewx.cheetahgenerator:  Ignoring template
/etc/weewx/skins/Seasons/index.html.tmpl
Jul  5 23:26:15 raspberrypi weewx[31166] ERROR
weewx.cheetahgenerator:  Reason: keyword can't be an
expression (, line 1)
Jul  5 23:26:15 raspberrypi weewx[31166] ERROR
weewx.cheetahgenerator:   Traceback (most recent call last):
Jul  5 23:26:15 raspberrypi weewx[31166] ERROR
weewx.cheetahgenerator:     File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 348, in generate
Jul  5 23:26:15 raspberrypi weewx[31166] ERROR
weewx.cheetahgenerator:   unicode_string =
compiled_template.respond()
Jul  5 23:26:15 raspberrypi weewx[31166] ERROR
weewx.cheetahgenerator:     File

"cheetah__etc_weewx_skins_Seasons_index_html_tmpl_1657056374_3328836_74907.py",
line 287, in respond
Jul  5 23:26:15 raspberrypi weewx[31166] ERROR
weewx.cheetahgenerator:     File
"/usr/lib/python3/dist-packages/Cheetah/Template.py", line 1707,
in _handleCheetahInclude
Jul  5 23:26:15 raspberrypi weewx[31166] ERROR
weewx.cheetahgenerator: 
self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
Jul  5 23:26:15 ra