[weewx-user] Re: Is there a way to augment loop packet with a data coming from database ?

2023-02-12 Thread 'Peter Fletcher' via weewx-user
I'm not 100% clear what you are trying to do here. I don't think that you 
can actually add data to the loop packet 'on the fly'. I am also not sure 
why you would want to do *anything* with tide height every loop. It is 
self-evidently a rather slow-changing datum, and could easily be dealt with 
at archive frequency. What you can certainly do is write a service that is 
triggered every time an archive packet is generated and processed which 
either gets data from somewhere (?MQTT) and saves it in the weewx database 
or gets data from the database and does something with it (or both).

On Sunday, February 12, 2023 at 2:27:58 AM UTC-5 eric9...@gmail.com wrote:

> Hi everybody:
>
> I have created a new data ("hauteur") in the database to graph the sea 
> tide. It works like a charm. See at http://chevrerie-du-cap.com/meteo/ at 
> the bottom.
>
> Now I would like to send the tide level observation with MQTT, then I need 
> it in the loop packet.
>
> So, is there a way to augment loop packet with a data coming from database 
> ?
>
> It tried to extend the field map of the GW1000 driver, but it doesn't work
>
> [[field_map_extensions]]
> hauteur = hauteur(data_binding=wx_binding)
> 
> 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/4d6ad33a-532d-496a-b0af-41baeb0938ebn%40googlegroups.com.


[weewx-user] Re: Is there a way to augment loop packet with a data coming from database ?

2023-02-12 Thread 'Peter Fletcher' via weewx-user
I'm not 100% clear what you are trying to do here. I don't think that you 
can actually add data to the loop packet 'on the fly'. What you can 
certainly do is write a service that is triggered every time a loop packet 
is received and processed which either gets data from somewhere (?MQTT) and 
saves it in the weewx database or gets data from the database and does 
something with it (or both).

On Sunday, February 12, 2023 at 2:27:58 AM UTC-5 eric9...@gmail.com wrote:

> Hi everybody:
>
> I have created a new data ("hauteur") in the database to graph the sea 
> tide. It works like a charm. See at http://chevrerie-du-cap.com/meteo/ at 
> the bottom.
>
> Now I would like to send the tide level observation with MQTT, then I need 
> it in the loop packet.
>
> So, is there a way to augment loop packet with a data coming from database 
> ?
>
> It tried to extend the field map of the GW1000 driver, but it doesn't work
>
> [[field_map_extensions]]
> hauteur = hauteur(data_binding=wx_binding)
> 
> 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/9cb9b926-43fb-4fe1-98d4-072501027ff9n%40googlegroups.com.


Re: [weewx-user] Data only sent to Wunderground, not to any other restx destination

2023-02-12 Thread Tom Keffer
Your problem is that your logger is corrupted. To fix, see the wiki
article *Corrupt
station memory
*
.

The reason why WU is working, but the others are not, is because you are
using Rapidfire, which posts LOOP packets, not the archive records
everything else uses.


On Sun, Feb 12, 2023 at 10:37 AM tha...@gmail.com  wrote:

> Hi guys,
>
> I recently upgraded my weewx install from python2 to python3 and updated
> to weewx version 4.10.1. Now, even though I have WUnderground, PWSWeather,
> AWEKAS and WOW configured, data is only sent to Wunderground. There's no
> errors in the log (I have debug turned on too). Data is just never sent.
> Here's what the log looks like from startup showing that they all should be
> going. Any ideas?
>
> Sun Feb 12 18:17:13 2023 user.info weewx[8177] INFO weewx.engine: Loading
> station type Vantage (weewx.drivers.vantage)
> Sun Feb 12 18:17:13 2023 user.debug weewx[8177] DEBUG
> weewx.drivers.vantage: Driver version is 3.5.2
> Sun Feb 12 18:17:13 2023 user.debug weewx[8177] DEBUG
> weewx.drivers.vantage: Option loop_request=1
> Sun Feb 12 18:17:13 2023 user.debug weewx[8177] DEBUG
> weewx.drivers.vantage: Opened up serial port /dev/ttyUSB0; baud 19200;
> timeout 4.00
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG
> weewx.drivers.vantage: Successfully woke up Vantage console
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG
> weewx.drivers.vantage: Hardware type is 17
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG
> weewx.drivers.vantage: ISS ID is 1
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG
> weewx.drivers.vantage: Hardware name: Vantage Vue
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Loading service weewx.engine.StdTimeSynch
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Finished loading service weewx.engine.StdTimeSynch
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Loading service weewx.engine.StdConvert
> Sun Feb 12 18:17:14 2023 user.info weewx[8177] INFO weewx.engine:
> StdConvert target unit is 0x1
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Finished loading service weewx.engine.StdConvert
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Loading service weewx.engine.StdCalibrate
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Finished loading service weewx.engine.StdCalibrate
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Loading service weewx.engine.StdQC
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Finished loading service weewx.engine.StdQC
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Loading service weewx.wxservices.StdWXCalculate
> Sun Feb 12 18:17:14 2023 user.info weewx[8177] INFO weewx.wxservices:
> StdWXCalculate will use data binding wx_binding
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.manager: Daily
> summary version is 4.0
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Finished loading service weewx.wxservices.StdWXCalculate
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Loading service weewx.wxxtypes.StdWXXTypes
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Finished loading service weewx.wxxtypes.StdWXXTypes
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Loading service weewx.wxxtypes.StdPressureCooker
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Finished loading service weewx.wxxtypes.StdPressureCooker
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Loading service weewx.wxxtypes.StdRainRater
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Finished loading service weewx.wxxtypes.StdRainRater
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Loading service weewx.wxxtypes.StdDelta
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Finished loading service weewx.wxxtypes.StdDelta
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Loading service weewx.engine.StdArchive
> Sun Feb 12 18:17:14 2023 user.info weewx[8177] INFO weewx.engine: Archive
> will use data binding wx_binding
> Sun Feb 12 18:17:14 2023 user.info weewx[8177] INFO weewx.engine: Record
> generation will be attempted in 'hardware'
> Sun Feb 12 18:17:14 2023 user.info weewx[8177] INFO weewx.engine: Using
> archive interval of 300 seconds (specified by hardware)
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Use
> LOOP data in hi/low calculations: 1
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Finished loading service weewx.engine.StdArchive
> Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine:
> Loading 

[weewx-user] Data only sent to Wunderground, not to any other restx destination

2023-02-12 Thread tha...@gmail.com
Hi guys,

I recently upgraded my weewx install from python2 to python3 and updated to 
weewx version 4.10.1. Now, even though I have WUnderground, PWSWeather, 
AWEKAS and WOW configured, data is only sent to Wunderground. There's no 
errors in the log (I have debug turned on too). Data is just never sent. 
Here's what the log looks like from startup showing that they all should be 
going. Any ideas?

Sun Feb 12 18:17:13 2023 user.info weewx[8177] INFO weewx.engine: Loading 
station type Vantage (weewx.drivers.vantage)
Sun Feb 12 18:17:13 2023 user.debug weewx[8177] DEBUG 
weewx.drivers.vantage: Driver version is 3.5.2
Sun Feb 12 18:17:13 2023 user.debug weewx[8177] DEBUG 
weewx.drivers.vantage: Option loop_request=1
Sun Feb 12 18:17:13 2023 user.debug weewx[8177] DEBUG 
weewx.drivers.vantage: Opened up serial port /dev/ttyUSB0; baud 19200; 
timeout 4.00
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG 
weewx.drivers.vantage: Successfully woke up Vantage console
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG 
weewx.drivers.vantage: Hardware type is 17
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG 
weewx.drivers.vantage: ISS ID is 1
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG 
weewx.drivers.vantage: Hardware name: Vantage Vue
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Loading 
service weewx.engine.StdTimeSynch
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: 
Finished loading service weewx.engine.StdTimeSynch
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Loading 
service weewx.engine.StdConvert
Sun Feb 12 18:17:14 2023 user.info weewx[8177] INFO weewx.engine: 
StdConvert target unit is 0x1
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: 
Finished loading service weewx.engine.StdConvert
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Loading 
service weewx.engine.StdCalibrate
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: 
Finished loading service weewx.engine.StdCalibrate
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Loading 
service weewx.engine.StdQC
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: 
Finished loading service weewx.engine.StdQC
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Loading 
service weewx.wxservices.StdWXCalculate
Sun Feb 12 18:17:14 2023 user.info weewx[8177] INFO weewx.wxservices: 
StdWXCalculate will use data binding wx_binding
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.manager: Daily 
summary version is 4.0
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: 
Finished loading service weewx.wxservices.StdWXCalculate
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Loading 
service weewx.wxxtypes.StdWXXTypes
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: 
Finished loading service weewx.wxxtypes.StdWXXTypes
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Loading 
service weewx.wxxtypes.StdPressureCooker
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: 
Finished loading service weewx.wxxtypes.StdPressureCooker
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Loading 
service weewx.wxxtypes.StdRainRater
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: 
Finished loading service weewx.wxxtypes.StdRainRater
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Loading 
service weewx.wxxtypes.StdDelta
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: 
Finished loading service weewx.wxxtypes.StdDelta
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Loading 
service weewx.engine.StdArchive
Sun Feb 12 18:17:14 2023 user.info weewx[8177] INFO weewx.engine: Archive 
will use data binding wx_binding
Sun Feb 12 18:17:14 2023 user.info weewx[8177] INFO weewx.engine: Record 
generation will be attempted in 'hardware'
Sun Feb 12 18:17:14 2023 user.info weewx[8177] INFO weewx.engine: Using 
archive interval of 300 seconds (specified by hardware)
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Use 
LOOP data in hi/low calculations: 1
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: 
Finished loading service weewx.engine.StdArchive
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Loading 
service weewx.restx.StdStationRegistry
Sun Feb 12 18:17:14 2023 user.info weewx[8177] INFO weewx.restx: 
StationRegistry: Registration not requested.
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: 
Finished loading service weewx.restx.StdStationRegistry
Sun Feb 12 18:17:14 2023 user.debug weewx[8177] DEBUG weewx.engine: Loading 
service weewx.restx.StdPWSweather
Sun Feb 12 18:17:14 2023 user.info weewx[8177] INFO weewx.restx: 
PWSWeather: Data for station TUTUKAKA will be posted
Sun Feb 12 18:17:14 2023 user.debug weewx[8177]