[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle Update

2019-05-03 Thread rich T
Just an update:

Currently using WeeWX version 3.9.1 and Belchertown Skin 1.0rc8 with MQTT.  
So far everything seems to be tracking.  Next to add my additional I2C 
sensors to the mix. 

On Tuesday, April 16, 2019 at 10:21:13 PM UTC-4, rich T wrote:

> Just an update on receiving Davis Vantage weather data with a RTL-SDR 
> dongle. Currently using WeeWX version 3.9.1 and receiving/displaying all 
> data, including additional UV sensor, from the ISS. Additionally, receiving 
> data from the BME280 I2C sensor for pressure readings. Drivers I'm 
> currently using are:
>
> weewx-rtldavis  https://github.com/lheijst/weewx-rtldavis
> bme280wx  https://gitlab.com/wjcarpenter/bme280wx
>
> Next going to try to add an AS3935 lightning sensor to the mix.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle Update

2019-04-23 Thread rich T
Luc

A few showers came through this evening and everything is tracking the same 
between all consoles and the driver.  It probably was the some signal loss 
when the extremely heavy rains came through the other evening.

Rich 

On Tuesday, April 23, 2019 at 10:19:23 AM UTC-4, Luc Heijst wrote:

> On Sunday, 21 April 2019 01:54:08 UTC-3, rich T wrote:
>>
>> Not saying there is an issue, but just check it at your end.
>>
>
> Rich,
>
> Today it's very rainy in Paramaribo. Total 68.2 mm rain in the morning. 
> There is more rain expected this noon.
>
> Both meteostick and rtldavis show the same rain values.
>
> Luc
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle Update

2019-04-23 Thread Luc Heijst
On Sunday, 21 April 2019 01:54:08 UTC-3, rich T wrote:
>
> Not saying there is an issue, but just check it at your end.
>

Rich,

Today it's very rainy in Paramaribo. Total 68.2 mm rain in the morning. 
There is more rain expected this noon.

Both meteostick and rtldavis show the same rain values.

Luc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle Update

2019-04-20 Thread rich T
Luc

Not saying there is an issue, but just check it at your end.  It could be 
where I have my SDR/PI and the console set up. During that timeframe we did 
have very heavy rainfall. Other than that, if you use a BMP280 or BME280 
with an offset , the driver tracks with the console.

Rich

On Saturday, April 20, 2019 at 8:53:30 PM UTC-4, Luc Heijst wrote:

> On Saturday, 20 April 2019 00:32:42 UTC-3, rich T wrote:
>>
>> Did you observed any differences with the rain total?
>>
>> I will have a look the coming days.. Until a week ago we had the longest 
> period without rain here and recently I reorganized all my pi-systems and 
> got no reliable data.
> Also I have two Vantage Pro 2 systems. I will check the results of the 
> meteostick with the rtldavis.driver which will both read the data of three 
> Davis stations (ISS, wind and leaf-soil).
>
> Luc
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle Update

2019-04-19 Thread Luc Heijst
On Friday, 19 April 2019 15:41:17 UTC-3, kobuki wrote:
>
> Right, but the point is, another driver most likely won't fix it.
>

I installed the (depreciated) Adafruit driver (Adafruit_Python_BMP-master) 
for the BMP280. Same pressure results as you already pointed out.
I have now set a correction of -4.0 hPa in weewx-rtldavis.
 [StdCalibrate] 
[[Corrections]]
pressure = pressure - 4.0 # BMP280 sensor reading too high

Luc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle Update

2019-04-19 Thread rich T
Luc

The BME280 sensor I have is running off slightly. See below:

Vantage Pro2 Console: 29.68
Acurite Console: 29.64
Hamliton Wall Barometer: ~29.69
Rtldavis with BME280wx: 29.72

Do have a BMP280 module laying around, might switch to that to see what the 
differences are after the storms go through the area later tonite.

Rich





On Friday, April 19, 2019 at 1:35:30 PM UTC-4, Luc Heijst wrote:

> On Tuesday, 16 April 2019 23:21:13 UTC-3, rich T wrote:
>>
>> Drivers I'm currently using are:
>> bme280wx  https://gitlab.com/wjcarpenter/bme280wx
>>
>> Rich,
>
> I followed the instructions for my BMP280 sensor in your link because 
> WJCarpenter wrote in the release notes of bme280wx: "This interface seems 
> to work correctly for a BMP280 as well" 
>
> I did gave it a try and I think WJCarpenter is wrong. The pressure 
> readings I get from my BMP280 sensor are way higher than my other preasure 
> readings, see table below.
>
> Vantage Pro console:1009.23794422608
> Meteostick: 1009.266
> Weather365 Wetterbox:   1010.935
> Rtldavis with BME280wx: 1013.28862385024
>
> BTW. The BMP280 module has I2C address 0x77, so I had to change that in 
> the BME280 setting.
>
> So, work to do to find a better BMP280 driver.
>
> Luc 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle Update

2019-04-19 Thread kobuki
Right, but the point is, another driver most likely won't fix it. If it 
does, please do tell me which. Until then, it's possible to try using a 
fixed offset to correct the reading and see if it can fix it long term. 
Such an offset is not unusual with this chip.

On Friday, April 19, 2019 at 8:37:33 PM UTC+2, Luc Heijst wrote:
>
> On Friday, 19 April 2019 15:09:03 UTC-3, kobuki wrote:
>>
>> Most cheap modules use chips of unknown origin and I've seen variance 
>> between samples in the past
>>
>
> My Adafruit BMP280 chip wasn't cheap:12.95 euro. I have seen other 
> 'BMP280' chips priced as low as 3.75 Euro
>
> Luc
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle Update

2019-04-19 Thread Luc Heijst
On Friday, 19 April 2019 15:09:03 UTC-3, kobuki wrote:
>
> Most cheap modules use chips of unknown origin and I've seen variance 
> between samples in the past
>

My Adafruit BMP280 chip wasn't cheap:12.95 euro. I have seen other 'BMP280' 
chips priced as low as 3.75 Euro

Luc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle Update

2019-04-19 Thread kobuki
It's most likely not the driver but the sensor itself. The BMP280/BME280 
chips are protocol compatible WRT their common command set, there is 
practically no room for error when reading out values between the 2. Your 
chip is probably off. Most cheap modules use chips of unknown origin and 
I've seen variance between samples in the past. I've built literally many 
dozens of devices using them so I know first hand... They're cheap but you 
get what you pay for. Mostly they're OK, though. Try a simple offset in 
weewx.conf, it should be alright. If it's crawling away after a few days 
providing the offset and with various pressure levels, it has a linearity 
error -> wastebin.

On Friday, April 19, 2019 at 7:35:30 PM UTC+2, Luc Heijst wrote:
>
> On Tuesday, 16 April 2019 23:21:13 UTC-3, rich T wrote:
>>
>> Drivers I'm currently using are:
>> bme280wx  https://gitlab.com/wjcarpenter/bme280wx
>>
>> Rich,
>
> I followed the instructions for my BMP280 sensor in your link because 
> WJCarpenter wrote in the release notes of bme280wx: "This interface seems 
> to work correctly for a BMP280 as well" 
>
> I did gave it a try and I think WJCarpenter is wrong. The pressure 
> readings I get from my BMP280 sensor are way higher than my other preasure 
> readings, see table below.
>
> Vantage Pro console:1009.23794422608
> Meteostick: 1009.266
> Weather365 Wetterbox:   1010.935
> Rtldavis with BME280wx: 1013.28862385024
>
> BTW. The BMP280 module has I2C address 0x77, so I had to change that in 
> the BME280 setting.
>
> So, work to do to find a better BMP280 driver.
>
> Luc 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle Update

2019-04-19 Thread Luc Heijst
On Tuesday, 16 April 2019 23:21:13 UTC-3, rich T wrote:
>
> Drivers I'm currently using are:
> bme280wx  https://gitlab.com/wjcarpenter/bme280wx
>
> Rich,

I followed the instructions for my BMP280 sensor in your link because 
WJCarpenter wrote in the release notes of bme280wx: "This interface seems 
to work correctly for a BMP280 as well" 

I did gave it a try and I think WJCarpenter is wrong. The pressure readings 
I get from my BMP280 sensor are way higher than my other preasure readings, 
see table below.

Vantage Pro console:1009.23794422608
Meteostick: 1009.266
Weather365 Wetterbox:   1010.935
Rtldavis with BME280wx: 1013.28862385024

BTW. The BMP280 module has I2C address 0x77, so I had to change that in the 
BME280 setting.

So, work to do to find a better BMP280 driver.

Luc 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle Update

2019-04-18 Thread rich T
Added the AS3935 Lightning Sensor to the mix.  So far everything is working 
as expected.  The service I'm using for the lightning sensor is:

https://github.com/weewx/weewx/wiki/as3935


On Tuesday, April 16, 2019 at 10:21:13 PM UTC-4, rich T wrote:

> Just an update on receiving Davis Vantage weather data with a RTL-SDR 
> dongle. Currently using WeeWX version 3.9.1 and receiving/displaying all 
> data, including additional UV sensor, from the ISS. Additionally, receiving 
> data from the BME280 I2C sensor for pressure readings. Drivers I'm 
> currently using are:
>
> weewx-rtldavis  https://github.com/lheijst/weewx-rtldavis
> bme280wx  https://gitlab.com/wjcarpenter/bme280wx
>
> Next going to try to add an AS3935 lightning sensor to the mix.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-24 Thread Luc Heijst
To all,

Some progress with the rtldavis program and the weewx-rtldavis driver.
See this thread in the weewx development forum: 
https://groups.google.com/forum/m/#!topic/weewx-development/jhGleLxu-p0

Luc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-18 Thread Luc Heijst

>
> On Monday, 18 March 2019 20:32:15 UTC-3, rich T wrote:
>>
>> Trying to run the as a standalone driver but it crashes within 10 seconds.
>>
>
Rich,

Although the standalone version is very limited in its functions, the 
'show-packets' option should not end after 10 seconds.
It now runs as long as process rtldavis is active.

Fixed in commit 762ad49 


Luc 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-18 Thread Luc Heijst
On Monday, 18 March 2019 20:32:15 UTC-3, rich T wrote:
>
> Trying to run the as a standalone driver but it crashes within 10 seconds.
>

Rich,

The standalone driver is very limited in its functions. It is there because 
each driver should have a stand-alone section.
In the standalone version the received data from rtldavis is not parsed and 
the program ends as soon as the buffer is empty.
There is a typo in the code for the err: data, but that should not change 
anything.

Something else:
Sometime rtldavis stopped with reading and outputting data (this happend 
once a day or less). I could not detect the cause so far and therefore 
weewx-rtld checks if the rtldavis process is stalled.

The 'rtldavis process is stalled' timeout is currently 45 seconds. When 
this timeout is exceeded, weewx-rtld will end with a WeeWxIOError message 
and restart itself after 1 minute.

I realize this 45 sec timeout is too short for the US version, because the 
US init can take 133 seconds.

I will extend this timeout to 150 seconds.

if int(time.time()) - time_last_received > 150:
raise weewx.WeeWxIOError("rtldavis process stalled")

Luc
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-18 Thread rich T
Luc 

Trying to run the as a standalone driver but it crashes within 10 seconds.

pi@raspberrypi:/home/weewx $ sudo PYTHONPATH=bin python 
bin/user/rtldavis.py --cmd="/home/pi/work/bin/rtldavis -tf US -tr 1"
data: ['19:26:26.232530 rtldavis.go VERSION=0.9\n']
data: ['19:26:26.232825 tr=1 fc=0 ex=0 actChan=[0] maxChan=1\n']
data: ['19:26:26.233278 BitRate: 19200\n']
data: ['19:26:26.233301 SymbolLength: 14\n']
data: ['19:26:26.233315 SampleRate: 268800\n']
data: ['19:26:26.233328 Preamble: 1100101110001001\n']
data: ['19:26:26.233340 PreambleSymbols: 16\n']
data: ['19:26:26.233354 PreambleLength: 224\n']
data: ['19:26:26.233368 PacketSymbols: 80\n']
data: ['19:26:26.233382 PacketLength: 1120\n']
data: ['19:26:26.233396 BlockSize: 512\n']
data: ['19:26:26.233409 BufferLength: 2048\n']
data: ['Found Rafael Micro R820T tuner\n']
data: ['19:26:26.624188 {ChannelIdx:0 ChannelFreq:902355835 FreqError:0}\n']
data: ['Exact sample rate is: 268800.001367 Hz\n']
data: ['19:26:26.807179 Init channels: wait max 133 seconds for a message 
of each transmitter\n']
data: []
err: []

Rich
On Monday, March 18, 2019 at 5:10:08 AM UTC-4, Luc Heijst wrote:
>
> Hi Rich,
>
> No it is not! I decided to keep the rtldavis program and the weewx driver 
> for it in one place. Sorry!
>
> The right link is: 
> https://github.com/lheijst/weewx-rtldavis/archive/master.zip
>
> I will change the readme.
>
> Luc
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-18 Thread Luc Heijst
Hi Rich,

No it is not! I decided to keep the rtldavis program and the weewx driver for 
it in one place. Sorry!

The right link is: https://github.com/lheijst/weewx-rtldavis/archive/master.zip

I will change the readme.

Luc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-17 Thread rich T
Luc 

I Followed your instructions to install the driver, but when I get to step 
2., I receive a 404 error.  Is the Link correct?

Installation

1) install pre-requisites

1.a) install weewx
*http://weewx.com/docs.html* 

1.b) install golang
eg: on raspberry pi:
sudo apt-get install golang

2) download the driver

wget -O weewx-sdr.zip 
*https://github.com/matthewwall/weewx-rtldavis/archive/master.zip* 


Thanks
Rich 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-17 Thread Luc Heijst
On Sunday, 17 March 2019 17:30:17 UTC-3, Phil Green wrote:
>
> So what to I have to do to make it work?
> Or is it something in the program which you can fix?


Sorry, I can't think of anything you can do. 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-17 Thread Phil Green
So what to I have to do to make it work?
Or is it something in the program which you can fix?

Regards
Phil

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-17 Thread rich T
I believe v3 versions and up have built in Bias tees which is set by the 
software (true or false) depending if you want to use the bias tee.

Rich

On Sunday, March 17, 2019 at 3:58:09 PM UTC-4, Luc Heijst wrote:

> On Sunday, 17 March 2019 16:02:23 UTC-3, Phil Green wrote:
>>
>> However, I am still not receiving anything.
>>
>
> Hi Phil,
>
> I'm sitting here with a blush on my face. 
>
> I have modified program rtldavis to work with EU frequencies and multi 
> Davis transmitters while I don't know almost nothing about RTL-SDR (both 
> hardware and software).
>
> I have had a similar situation on my Raspberry PI (i.e. not receiving any 
> data packets) after I had uninstalled librtlsdr0
> The reason why I uninstalled librtlsdr0 was the error: "rtlsdr.go:503: 
> undefined reference to `rtlsdr_set_bias_tee'".
> After I installed librtlsdr0 again, the data packets were received 
> normally.
>
> I'm afraid this won't much any help for you. I'm sorry.
>
> Luc
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-17 Thread Luc Heijst
On Sunday, 17 March 2019 16:02:23 UTC-3, Phil Green wrote:
>
> However, I am still not receiving anything.
>

Hi Phil,

I'm sitting here with a blush on my face. 

I have modified program rtldavis to work with EU frequencies and multi 
Davis transmitters while I don't know almost nothing about RTL-SDR (both 
hardware and software).

I have had a similar situation on my Raspberry PI (i.e. not receiving any 
data packets) after I had uninstalled librtlsdr0
The reason why I uninstalled librtlsdr0 was the error: "rtlsdr.go:503: 
undefined reference to `rtlsdr_set_bias_tee'".
After I installed librtlsdr0 again, the data packets were received normally.

I'm afraid this won't much any help for you. I'm sorry.

Luc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-17 Thread Phil Green
Forgot to say the screenshot of the spectrum is one burst from the weather 
station at the lowest frequency range.

On Sunday, March 17, 2019 at 7:02:23 PM UTC, Phil Green wrote:
>
> Hi Luc,
> Thanks for the prompt response.
> Yes, I have now sorted the configuration of GO.
>
> However, I am still not receiving anything.
> I will attach the command line capture of both no offset and +27000 offset 
> according to my device if I calibrate it will a known signal.
> I have also attached a screenshot of the spectrum using an SDR program 
> with the +27kHz offset.
>
> Please advise on your suggestions.
>
> Thanks
> Phil
>
>
> On Sunday, March 17, 2019 at 5:21:22 PM UTC, Luc Heijst wrote:
>>
>> Hi Phil,
>>
>> My instructions are nor clear, sorry.
>> Add the following 3 lines at the ens of your .profile file.
>> export GOROOT=/usr/lib/go 
>> export GOPATH=$HOME/work 
>> export PATH=$PATH:$GOROOT/bin:$GOPATH/bin 
>> Then save the file.
>> To activate the changes in the profile right away, type command:
>> source ~/.profile 
>>
>> The program doesn't run at its own on future restarts.
>> I have set a cronjob for program weewx (with the weewx-rtld driver 
>> installed) which will start program rtldavis.
>>
>> crontab -e
>> Add at the end:
>> @reboot /home/weewx/util/init.d/weewx.debian restart
>>
>> The weewx-rtld driver can be found here: 
>> https://github.com/lheijst/weewx-rtld
>>
>> Beware: the first action is to get program rtldavis collecting the raw 
>> data. Without this raw data the weewx-rtld program is useless.
>>
>> After each successful data collection program rtldavis reports the 
>> frequency-offset between the RTL-SDR dongle and the Davis transmitter of 
>> that message.
>> Program rtldavis has an option to preset an overall frequency correction: 
>> -fc xxx (in Hz) for all configured transmitters (often there is only one 
>> transmitter).
>>
>> Please report the output of program rtldavis to get more information what 
>> is happening.
>>
>> Luc
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-17 Thread Luc Heijst
Hi Phil,

My instructions are nor clear, sorry.
Add the following 3 lines at the ens of your .profile file.
export GOROOT=/usr/lib/go 
export GOPATH=$HOME/work 
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin 
Then save the file.
To activate the changes in the profile right away, type command:
source ~/.profile 

The program doesn't run at its own on future restarts.
I have set a cronjob for program weewx (with the weewx-rtld driver 
installed) which will start program rtldavis.

crontab -e
Add at the end:
@reboot /home/weewx/util/init.d/weewx.debian restart

The weewx-rtld driver can be found 
here: https://github.com/lheijst/weewx-rtld

Beware: the first action is to get program rtldavis collecting the raw 
data. Without this raw data the weewx-rtld program is useless.

After each successful data collection program rtldavis reports the 
frequency-offset between the RTL-SDR dongle and the Davis transmitter of 
that message.
Program rtldavis has an option to preset an overall frequency correction: 
-fc xxx (in Hz) for all configured transmitters (often there is only one 
transmitter).

Please report the output of program rtldavis to get more information what 
is happening.

Luc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-17 Thread Phil Green
Hi Luc,
I have tried the GO program on a couple of Linux machines following your 
instructions. However I don’t receive anything. The dongle I have works fine on 
other programs. If I tune into the 868MHz band I can see the brief 
transmissions from my Vantage Vue. The dongle is detected using lsusb and the 
program runs without any errors. 
In your instructions 

Create ~/profile

sudo nano ~/.profile
export GOROOT=/usr/lib/go
export GOPATH=$HOME/work
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
source ~/.profile

I already have a .profile file, do I put the export lines and the source line 
in the file?

If I just run them from the command line then the program runs, (but only on 
that login, not on future retarts) however if I put them in the .profile file, 
my login on the machine doesn’t login me in so I have to restore the machine. I 
am running under Mac Parallels. 

Does your program automatically work out the frequency offset on the dongle?
Regards
Phil

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-14 Thread rich T
Luc

Thanks...issue is fixed.

Rich

On Thursday, March 14, 2019 at 6:15:10 PM UTC-4, Luc Heijst wrote:

> Rich,
>
> Sorry about that. fixeded in commit d38de5f 
> 
>  
>
> Luc
>
>
>
>
> Luc
>
> I get an error when trying to running the program.  I have the latest 
> main.go file.
>
> pi@raspberrypi:~ $ cd $GOPATH/src/github.com/lheijst/rtldavis
> pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ git submodule init
> pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ git submodule 
> update
> pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ go install -v .
> github.com/lheijst/rtldavis
> # github.com/lheijst/rtldavis
> ./main.go:212: undefined: channelFreq
> ./main.go:216: undefined: channelFreq
> ./main.go:218: undefined: channelFreq
> pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ 
> $GOPATH/bin/rtldavis -tr 1 -tf US -startfreq 90200 -endfreq 92800 
> -stepfreq 4
> flag provided but not defined: -startfreq
> Usage of /home/pi/work/bin/rtldavis:
>   -ex int
>  extra loopPeriod time in msec
>   -tf string
>  transmitter frequencies: EU or US (default "EU")
>   -tr int
>  transmitters to listen for: tr1=1, tr2=2, tr3=4, tr4=8, tr5=16 
> tr6=32, tr7=64, tr8=128 (default 1)
>   -u log undefined signals
>   -v log extra information to /dev/stderr (default true)
>
> Thanks
> Rich
>
>
> -- 
> 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/ZjDVbSmwmZY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> weewx-user+...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout. 
>
>
> --
> [image: Avast logo]  
>
> This email has been checked for viruses by Avast antivirus software. 
> www.avast.com  
>
> <#1242457093.20190314191503@gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-14 Thread L.J.M. Heijst
Title: Re: [weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle


Rich,

Sorry about that. fixeded in commit d38de5f 

Luc







Luc

I get an error when trying to running the program.  I have the latest main.go file.

pi@raspberrypi:~ $ cd $GOPATH/src/github.com/lheijst/rtldavis
pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ git submodule init
pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ git submodule update
pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ go install -v .
github.com/lheijst/rtldavis
# github.com/lheijst/rtldavis
./main.go:212: undefined: channelFreq
./main.go:216: undefined: channelFreq
./main.go:218: undefined: channelFreq
pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ $GOPATH/bin/rtldavis -tr 1 -tf US -startfreq 90200 -endfreq 92800 -stepfreq 4
flag provided but not defined: -startfreq
Usage of /home/pi/work/bin/rtldavis:
  -ex int
     extra loopPeriod time in msec
  -tf string
     transmitter frequencies: EU or US (default "EU")
  -tr int
     transmitters to listen for: tr1=1, tr2=2, tr3=4, tr4=8, tr5=16 tr6=32, tr7=64, tr8=128 (default 1)
  -u log undefined signals
  -v log extra information to /dev/stderr (default true)

Thanks
Rich


-- 
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/ZjDVbSmwmZY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






	
		
			

			
		
		
			
This email has been checked for viruses by Avast antivirus software.
www.avast.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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-14 Thread rich T
Luc

I get an error when trying to running the program.  I have the latest 
main.go file.

pi@raspberrypi:~ $ cd $GOPATH/src/github.com/lheijst/rtldavis
pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ git submodule init
pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ git submodule update
pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ go install -v .
github.com/lheijst/rtldavis
# github.com/lheijst/rtldavis
./main.go:212: undefined: channelFreq
./main.go:216: undefined: channelFreq
./main.go:218: undefined: channelFreq
pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ 
$GOPATH/bin/rtldavis -tr 1 -tf US -startfreq 90200 -endfreq 92800 
-stepfreq 4
flag provided but not defined: -startfreq
Usage of /home/pi/work/bin/rtldavis:
  -ex int
extra loopPeriod time in msec
  -tf string
transmitter frequencies: EU or US (default "EU")
  -tr int
transmitters to listen for: tr1=1, tr2=2, tr3=4, tr4=8, tr5=16 tr6=32, 
tr7=64, tr8=128 (default 1)
  -u log undefined signals
  -v log extra information to /dev/stderr (default true)

Thanks
Rich


-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-14 Thread Luc Heijst
New test function in program rtldavis

To all,

The rtldavis program has now an embedded frequency test function.
With this function the frequencies can be detected used by Davis Vantage 
weather stations.

Usage: $GOPATH/bin/rtldavis -tr 1 -tf US -startfreq 90200 -endfreq 
92800 -stepfreq 4

Warning: For the US, AU and NZ bands this test will take a long time!

-stepfreq 1: 4 days!
-stepfreq 2: 2 days!
-stepfreq 4: 24 h
-stepfreq 8: 12 h


Below the output of the test for the EU frequency band

My command was: $GOPATH/bin/rtldavis -tr 15 -startfreq 86800 -endfreq 
86860 -stepfreq 2000
Note: I used -tr 15 because I have 4 transmitters, but you will get better 
results to do the test with just one sensor.

$GOPATH/bin/rtldavis -tr 1 -startfreq 86800 -endfreq 86860 
-stepfreq 2000

08:33:08.507848 TESTFREQ 1: Frequency 86800: NOK
08:33:25.009595 TESTFREQ 2: Frequency 868002000: NOK
...
08:39:11.631768 TESTFREQ 23: Frequency 868044000: NOK
08:39:28.132553 TESTFREQ 24: Frequency 868046000: NOK
08:39:42.645072 TESTFREQ 25: Frequency 868048000 (freqError=3999): OK, 
msg.data: F20AF7FF80C09F85
08:39:56.081804 TESTFREQ 26: Frequency 86805 (freqError=335): OK, 
msg.data: F269C0C0E084
08:40:12.582245 TESTFREQ 27: Frequency 868052000: NOK
08:40:29.083291 TESTFREQ 28: Frequency 868054000: NOK
...
08:42:08.090752 TESTFREQ 34: Frequency 868066000: NOK
08:42:24.591295 TESTFREQ 35: Frequency 868068000: NOK
08:42:31.260564 TESTFREQ 36: Frequency 86807 (freqError=-1309): OK, 
msg.data: E07A05006B04
08:42:31.643522 TESTFREQ 37: Frequency 868072000 (freqError=7117): OK, 
msg.data: 83016F31190076D3
08:42:34.643106 TESTFREQ 38: Frequency 868074000 (freqError=5597): OK, 
msg.data: F2498A5000C091F9
08:42:44.073708 TESTFREQ 39: Frequency 868076000 (freqError=2658): OK, 
msg.data: 50FF7500485B
08:42:45.392137 TESTFREQ 40: Frequency 868078000 (freqError=1285): OK, 
msg.data: E3006F120100D6D6
08:42:48.081458 TESTFREQ 41: Frequency 86808 (freqError=-310): OK, 
msg.data: F229C0C0F1EC
08:42:55.757607 TESTFREQ 42: Frequency 868082000 (freqError=-2895): OK, 
msg.data: 51006AFF73009624
08:42:56.886751 TESTFREQ 43: Frequency 868084000 (freqError=-4454): OK, 
msg.data: A0733D0013B9
08:43:08.883213 TESTFREQ 44: Frequency 868086000 (freqError=-6600): OK, 
msg.data: A1016A0003006AF3
08:43:25.389468 TESTFREQ 45: Frequency 868088000: NOK
08:43:41.890787 TESTFREQ 46: Frequency 86809: NOK
...
08:53:52.563306 TESTFREQ 83: Frequency 868164000: NOK
08:54:09.069653 TESTFREQ 84: Frequency 868166000: NOK
08:54:24.140318 TESTFREQ 85: Frequency 868168000 (freqError=-8497): OK, 
msg.data: F2498A5040C09C35
08:54:37.578287 TESTFREQ 86: Frequency 86817 (freqError=142): OK, 
msg.data: F229C0C0F1EC
08:54:54.079549 TESTFREQ 87: Frequency 868172000: NOK
08:55:10.580273 TESTFREQ 88: Frequency 868174000: NOK
...
08:56:49.587907 TESTFREQ 94: Frequency 868186000: NOK
08:57:06.089362 TESTFREQ 95: Frequency 868188000: NOK
08:57:16.139749 TESTFREQ 96: Frequency 86819 (freqError=-2123): OK, 
msg.data: F209CEFFC0C0A305
08:57:16.757656 TESTFREQ 97: Frequency 868192000 (freqError=6352): OK, 
msg.data: 51006BFF710086F2
08:57:19.888636 TESTFREQ 98: Frequency 868194000 (freqError=5415): OK, 
msg.data: 43007CFFC30025D3
08:57:23.001305 TESTFREQ 99: Frequency 868196000 (freqError=4096): OK, 
msg.data: E07A05006B04
08:57:29.577161 TESTFREQ 100: Frequency 868198000 (freqError=2329): OK, 
msg.data: F22A00FF40C04F05
08:57:29.881575 TESTFREQ 101: Frequency 86820 (freqError=-1211): OK, 
msg.data: 41006BFFC100827B
08:57:33.652214 TESTFREQ 102: Frequency 868202000 (freqError=-2126): OK, 
msg.data: 83007C315B003757
08:57:35.814617 TESTFREQ 103: Frequency 868204000 (freqError=-1629): OK, 
msg.data: 50FF7500485B
08:57:47.390072 TESTFREQ 104: Frequency 868206000 (freqError=-5924): OK, 
msg.data: E3007C12030030CF
08:58:03.891633 TESTFREQ 105: Frequency 868208000: NOK
08:58:20.393632 TESTFREQ 106: Frequency 86821: NOK
08:58:36.909603 TESTFREQ 107: Frequency 868212000: NOK
...
09:08:47.506290 TESTFREQ 144: Frequency 868286000: NOK
09:09:04.007169 TESTFREQ 145: Frequency 868288000: NOK
09:09:05.635746 TESTFREQ 146: Frequency 86829 (freqError=-7983): OK, 
msg.data: F209CEFF40C0B89D
09:09:22.136064 TESTFREQ 147: Frequency 868292000: NOK
09:09:38.637292 TESTFREQ 148: Frequency 868294000: NOK
...
09:11:34.191784 TESTFREQ 155: Frequency 868308000: NOK
09:11:50.692624 TESTFREQ 156: Frequency 86831: NOK
09:11:50.881275 TESTFREQ 157: Frequency 868312000 (freqError=-885): OK, 
msg.data: C1012A0003005B77
09:11:54.386142 TESTFREQ 158: Frequency 868314000 (freqError=6129): OK, 
msg.data: E3011D120300B5F8
09:11:57.651033 TESTFREQ 159: Frequency 868316000 (freqError=3815): OK, 
msg.data: F20AFCFF40C097CE
09:12:01.928609 TESTFREQ 160: Frequency 868318000 (freqError=1144): OK, 
msg.data: 8032AD0014C7
09:12:04.005218 TESTFREQ 161: 

[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-13 Thread Luc Heijst
Hi Rich,

Both transmitters work with the same sets of frequencies, so it is likely they 
both fail or succeed at a given frequency.

It is a good idea to start a tread in weewx-development, which I just did, so 
we can continue from there.

Luc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-13 Thread rich T
Luc

The approach sounds like a good way to proceed. Currently running option 
-tr 3 and receiving the same results. Do you think we should move this to 
weewx-development group?

Rich

On Wednesday, March 13, 2019 at 7:10:21 PM UTC-4, Luc Heijst wrote:

> Hi Rich, 
>
> We need another approach. As I said before, the frequencies of RFM69 
> didn’t work for my EU transmitter either. 
> Note: the lowest and highest frequencies in the RFM69 table were not 
> modified by me, so that can’t be a cause here. 
>
> I plan to write a testprogram as follows. 
> 1. Start with a frequency in the lower US band. 
> 2. Start the init proces to see if any messages can be read. When you 
> configure both of your sensors with parameter -tr 7 this process may take 
> less time. 
> 3a. When a message is read succesful; continue right away. This frequency 
> is (more or less) good. 
> 3b. When a timeout occurred; this frequency is no good. Also continue. 
> 4. Increase the frequency with a certain amount. The amount must be small 
> enough not to miss any good frequencies. 
> 5a. When the increased frequency is bigger than the max frequency (at the 
> end of the US band), we are ready to analyse the logging. 
> 5b. If not, continue with step 2. 
>
> The logfile will show a list with evenly spreaded frequencies and for each 
> frequency a true or false message received. 
> With this info we create our first new hopping list. The program will show 
> for each received message a frequency error for that channel. 
> With the frequency error data we can fine-tune each channel frequency. 
>
> Note: On my test site the rtldavis program will function normaly with 
> maximum frequency errors of + and - 10,000 Hz. 
>
> What do you think? 
>
> Luc 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-13 Thread Luc Heijst
Hi Rich,

We need another approach. As I said before, the frequencies of RFM69 didn’t 
work for my EU transmitter either.
Note: the lowest and highest frequencies in the RFM69 table were not modified 
by me, so that can’t be a cause here.

I plan to write a testprogram as follows.
1. Start with a frequency in the lower US band. 
2. Start the init proces to see if any messages can be read. When you configure 
both of your sensors with parameter -tr 7 this process may take less time.
3a. When a message is read succesful; continue right away. This frequency is 
(more or less) good.
3b. When a timeout occurred; this frequency is no good. Also continue.
4. Increase the frequency with a certain amount. The amount must be small 
enough not to miss any good frequencies.
5a. When the increased frequency is bigger than the max frequency (at the end 
of the US band), we are ready to analyse the logging.
5b. If not, continue with step 2.

The logfile will show a list with evenly spreaded frequencies and for each 
frequency a true or false message received.
With this info we create our first new hopping list. The program will show for 
each received message a frequency error for that channel.
With the frequency error data we can fine-tune each channel frequency.

Note: On my test site the rtldavis program will function normaly with maximum 
frequency errors of + and - 10,000 Hz.

What do you think?

Luc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-13 Thread rich T
Hi Luc

I re-compiled the code with the frequencies you provided and here is what I 
get:

pi@raspberrypi:~/work/src/github.com/lheijst/rtldavis $ 
$GOPATH/bin/rtldavis  -tf US
17:53:20.344708 rtldavis.go VERSION=0.7
17:53:20.345197 tr=1 actChan=[0] maxChan=1 *transmitterId=0 msgIdToChan=[0 
9 9 9 9 9 9 9]
17:53:20.345320 idLoopPeriods=[256250 262500 268750 275000 
281250 287500 293750 30]
17:53:20.346105 BitRate: 19200
17:53:20.346146 SymbolLength: 14
17:53:20.346184 SampleRate: 268800
17:53:20.346216 Preamble: 1100101110001001
17:53:20.346249 PreambleSymbols: 16
17:53:20.346282 PreambleLength: 224
17:53:20.346315 PacketSymbols: 80
17:53:20.346350 PacketLength: 1120
17:53:20.346385 BlockSize: 512
17:53:20.346419 BufferLength: 2048
Found Rafael Micro R820T tuner
17:53:20.758912 main.go:157: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
Exact sample rate is: 268800.001367 Hz
17:53:20.940735 Init loopTimer and wait for messages on channel 0: 
loopTimer=273064896 idLoopPeriods=256250 loopPeriod=13325000
17:55:34.192393 ID:0 packet missed
17:55:34.192703 Init channels: wait for messages
17:55:34.193092 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
17:57:47.443103 ID:0 packet missed
17:57:47.443399 Init channels: wait for messages
17:57:47.443576 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:00:00.694699 ID:0 packet missed
18:00:00.694871 Init channels: wait for messages
18:00:00.695034 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:02:13.945499 ID:0 packet missed
18:02:13.945600 Init channels: wait for messages
18:02:13.945712 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:04:27.196393 ID:0 packet missed
18:04:27.196494 Init channels: wait for messages
18:04:27.196609 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:06:40.448300 ID:0 packet missed
18:06:40.448578 Init channels: wait for messages
18:06:40.448853 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:08:53.699277 ID:0 packet missed
18:08:53.699556 Init channels: wait for messages
18:08:53.699750 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:11:06.950125 ID:0 packet missed
18:11:06.950282 Init channels: wait for messages
18:11:06.950434 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:13:20.201020 ID:0 packet missed
18:13:20.201119 Init channels: wait for messages
18:13:20.201224 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:15:33.451275 ID:0 packet missed
18:15:33.451373 Init channels: wait for messages
18:15:33.451568 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:17:46.702804 ID:0 packet missed
18:17:46.702904 Init channels: wait for messages
18:17:46.703019 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:19:59.953423 ID:0 packet missed
18:19:59.953521 Init channels: wait for messages
18:19:59.953629 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:22:13.205513 ID:0 packet missed
18:22:13.205786 Init channels: wait for messages
18:22:13.205979 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:24:26.457365 ID:0 packet missed
18:24:26.457797 Init channels: wait for messages
18:24:26.458104 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:26:39.708999 ID:0 packet missed
18:26:39.709160 Init channels: wait for messages
18:26:39.709310 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}
18:28:52.959658 ID:0 packet missed
18:28:52.959891 Init channels: wait for messages
18:28:52.960037 main.go:185: Hop: {ChannelIdx: 0 ChannelFreq:902381897 
FreqError:0}

Thanks
Rich

On Sunday, March 3, 2019 at 2:33:07 PM UTC-5, Luc Heijst wrote:
>
> Recently my attention was brought to a SDR tool for receiving wireless 
> sensor data (TFA IT+ KlimaLogg Pro, LaCrosse, WeatherHub). See: 
> https://github.com/baycom/tfrec.
>
> I wrote a weewx driver which parsed and stored the tfrec data of my 9 
> KlimaLogg sensors. The weewx driver can be found here: 
> https://github.com/matthewwall/weewx-tfrc
>
> After this success I searched for a package that reads the radio data of 
> Vantage Pro weather stations with a (cheap) RTL-SDR dongle and found: the 
> rtldavis package on: https://github.com/bemasher/rtldavis.
>
> With this package were a few problems:
> 1. The development of the package stopped three years ago.
> 2. The set of European frequencies appeared not to be useful.
> 3. The package could only handle one transmitter (at a time).
> 4. The package is written in GO. Not a big issue, but the GO language is 
> new for me.
>
> With two Vantage Pro2 systems, an anemometer station and a leaf-soil 
> station the challenge was to get this package concurrently working for more 
> than one transmitter (four in my case).
>
> With some modifications of main.go and protocol.go and 

[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-13 Thread Luc Heijst
Rich,

You can read both transmitters simultanious with option -tr 3. 

AFAIK, the Davis console (and the weewx Vantage driver) won’t show the UV data 
when it is not coming from the same transmitter as the ISS. 

Anyhow, the rtldavis driver will read the data. I have my solar sensor mounted 
on the same pole as my anemometer. On a high location, while my ISS is at 1.5 m 
above groud level as advised. An other advantage of the rtldavis driver will be 
a five to ten time smaller resolution of temperature, leaf wetness and soil 
moistness.

Luc

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-13 Thread rich T
 Luc

Will use the frequencies you provided tonight when I get back into the 
area. My ISS is located approximately 50 feet from the console and is set 
as Id 0. Only additional sensor I have is the UV sensor, which I just 
recently added.

Rich

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-05 Thread Luc Heijst
Hi Jude,

There are several ways to read the weather data of Vantage Pro and Vue 
stations.

   - Via a Davis datalogger inserted in the Davis console
   - Via a Meteostick
   - Via a Moteino module
   - Via various other modules I can't come up now

All modules are working fine.

My program adds another way:

   - Via a RTL-SDR dongle (it's not new, I combined and modified existent 
   programs)

Luc

On Tuesday, 5 March 2019 18:45:13 UTC-3, Jude Mwenda wrote:
>
> Sorry, newbie here without a Davis Pro. Is it because getting the data out 
> into the weewx is inconsistent? or not working?
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-05 Thread Pat
Impressive! I am using a Moteino and have a 2nd on "standby" as a backup. I 
have 3 of the RTLSDR, so this could be something fun to try in my spare 
time when I come across some of that!

On Sunday, March 3, 2019 at 2:33:07 PM UTC-5, Luc Heijst wrote:
>
> Recently my attention was brought to a SDR tool for receiving wireless 
> sensor data (TFA IT+ KlimaLogg Pro, LaCrosse, WeatherHub). See: 
> https://github.com/baycom/tfrec.
>
> I wrote a weewx driver which parsed and stored the tfrec data of my 9 
> KlimaLogg sensors. The weewx driver can be found here: 
> https://github.com/matthewwall/weewx-tfrc
>
> After this success I searched for a package that reads the radio data of 
> Vantage Pro weather stations with a (cheap) RTL-SDR dongle and found: the 
> rtldavis package on: https://github.com/bemasher/rtldavis.
>
> With this package were a few problems:
> 1. The development of the package stopped three years ago.
> 2. The set of European frequencies appeared not to be useful.
> 3. The package could only handle one transmitter (at a time).
> 4. The package is written in GO. Not a big issue, but the GO language is 
> new for me.
>
> With two Vantage Pro2 systems, an anemometer station and a leaf-soil 
> station the challenge was to get this package concurrently working for more 
> than one transmitter (four in my case).
>
> With some modifications of main.go and protocol.go and trial and error I 
> could find a reasonable set of the European frequencies which are used in 
> the frequency hop sequence.
> The next step was to get the data of more than one sensor wich each its 
> own hopping timing. 
> The last step will be to parse the data packets and store the data in 
> Weewx. This part is easy because this was already done by me via the 
> parsing of the raw meteostick data in the weewx-meteostick driver, see: 
> https://github.com/matthewwall/weewx-meteostick.
>
> The hopping mechanism has some prograss today. The principle is as follows.
> 1. Wait long enough on a fixed frequency until you have seen at least one 
> message of each transmitter. For the five EU frequencies this process takes 
> 17 seconds or less. For the 51 US frequencies this will take about ten 
> times as much time.
> 2, Calculate with help of the lastVisitedTimes of all transmitters what 
> the nextVisitTimes (in the near future) will be and how many hops would be 
> needed to get here.
> 3. Detect the smallest nextVisitTime. This will be of the transmitter 
> which follows first.
> 4. Calculate the hop channel for this transmitter.
> 5. Calculate the loopPeriod for this transmitter. In case the signal of 
> this transmitter is missed we don't want to wait too long and miss packets 
> of other transmitters too.
> 6. Start the hop process and wait for new data.
>
> I combined the weewx-sdr and weewx-meteostick drivers fr this weewx-rtld 
> driver.
> The results so far:
>
> The first 1000 messages were read with the new driver.
> Average percentage of received signals is 94,8 %, see table.
>
>  ok missed tot  pctGood
>  341  19 360  94,7
>  335  16 351  95,4
>  324  20 344  94,2
>   --   
> tot 1000  55 1055  94,8
>
> The FreqError in general varies between -1000 and +1000.
> When abs(FreqError) > 1 the weewx-rtld driver will restart program 
> rtldavis.
>
> For a comparison between the Meteostick and rtld driver data see: 
> http://www.lucdesign.nl/_weewx/bootstrap_rtld/hour.html
>
> There is one challence left: how to get local barometer data in my 
> Raspberry PI? 
> I could use a BMP280 pressure/temp sensor... so, more to come.
>
> Cheers, Luc
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.