Quick Way of Querying a Vantage Vue

56 views
Skip to first unread message

Seth Poh

unread,
Mar 1, 2020, 10:32:42 PM3/1/20
to weewx-user
Hi all,

I am running a project where I needed to monitor the weather and GPS reception of a location over the course of a week. I just needed the data to be logged locally. 

For my weather station I have a Vantage Vue linked to a wireless console. The console is installed with a WeatherLink USB Data Logger which is connected to a Raspberry PI 3b+ running Raspbian Buster. I have installed Weewx and was able to see the output from running sudo weewx weewx.conf.

The GPS is just connected via serial to usb connection. There I run GPSD and was able to have a python script that queries the GPS every few seconds.

I would like to do the same with the Vantage Vue, such that python script will continuously run and query the GPS and the various weather parameters measured at that moment. 

I am an absolute beginner in using Weewx and is still wrapping my head around it. Anyone have a quick suggestion how this can be done or how the commands might be?

Thank you.

mwall

unread,
Mar 1, 2020, 11:07:01 PM3/1/20
to weewx-user
is your weather station moving around?

a long time ago i wrote weewx-gpsd - a driver to collect gps data from any gps receiver that is supported by gpsd.  we used it to keep track of vehicle positions, then correlated the data with weather data and other vehicle system parameters.

weewx-gpsd is written as a driver, so if you use that you would run two instances of weewx - one to collect gps data, and another to collect data from the weather station.  then use wee_reports to combine the data.

it would be pretty easy to convert weewx-gpsd to a service, then use data from that to augment whatever you get from the weather station.

take a look at the weewx-maxbotix driver/service for an example of how to combine driver/service code into a single weewx module.  or just feel free to use the code from weewx-gpsd however you need it.

m

mwall

unread,
Mar 1, 2020, 11:08:24 PM3/1/20
to weewx-user

Seth Poh

unread,
Mar 2, 2020, 12:04:38 AM3/2/20
to weewx-user
Hi mwall,

Thanks for your suggestion and the link. 

The weather station will be stationary. We are planning to use weather station and gps combination in an urban environment to ascertain the suitability of various locations for drone operation. The gps receiver is there to determine the number or satellites visible during the course of a day.

For the gps part I am just getting the various gps data by commands like -

gpsd.fix.latitude
gpsd.fix.longitude
gpsd.satellites_used

I was initially hopping to do the same for the weather station where I can just request for the windspeed,  direction...

Will definitely give your suggestion a go and combine gps and weather info under weewx.
Reply all
Reply to author
Forward
0 new messages