[weewx-user] network driver for data from intercepted json

2019-03-05 Thread Kevin Creason
Hello everyone,
I recently installed weewx on an ubuntu server. I selected one of the 
LaCrosse devices during the config run though it was incorrect and I'll 
need to reconfigure that but first I'll have to build something.

I have one of the LaCrosse costco specials, the C83100 which is not 
natively available to grab data from. However, I have managed to intercept 
the data with mitmproxy and can see the JSON data that it is posting back 
to the LaCrosse APIs.

I was wondering where to start in figuring out the DATA value in the json, 
and then how to get it entered into the database, if I am looking at 
something doable and going about this the right way, if there is anything 
to learn from someone going down this path before.

I see several variations of the data like the sample below. The data first 
six characters often corresponds to serial numbers of the display/gateway 
or a sensor but some I cannot account for.

{
"Data": "187A791D0680B747EAAA60",
"GatewaySerial": "2D812F",
"DisplaySerial": "2D812F",
"OnDisplay": false,
"Firmware": "2.2.1",
"Diagnostics.Heap": 31808,
"Diagnostics.Chip": 5186310,
"Diagnostics.SDK": "1.5.4.1(39cb9a32)",
"Diagnostics.CpuFreq": 80,
"Diagnostics.FlashSize": 3,
"Diagnostics.Reset": 5,
"Diagnostics.ResetTime": 1551830413,
"Diagnostics.Restarts": 126,
"Diagnostics.UserBin": 0
}

Other data fields:

"187A791B05609947EAAA62"

"187A791D0680B747EAAA60"


"*357023*0617F0330A"  ## outside temp/humidity sensor

"*3C3279*0A01AA3EA6" . ## rain sensor

"187A791105608D47EAAA68"

"187A791505C0A147EAAAB6"

"0DF5910AAA0258"

"187A791708109A47EAAA73"

"0DF5910CAA017A"

"187A79190990A547EAAA9A"

"*2D812F*0027701AF1"

"*3C3279*0201AA3EBA"

"0C7D3408AA078AAAE4"

"187A791104908A47EAAA5B"

"187A791306209D47EAAA8B"

"*2D812F*0027B01CFD"

"187A791504909447EAAA81"

"0DF5910CAA01FAAA89"

"*2D812F*0027E01ABC"

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread Andrew Milner
That's Chrome and Google for you!!

I've got a pic of a nice sunny verandah now also …..



On Wednesday, 6 March 2019 00:30:07 UTC+2, monmul wrote:
>
> Yes it was!how freakin weird! Thanks for the help and the prompts!
>
> On Wednesday, 6 March 2019 11:27:18 UTC+13, monmul wrote:
>>
>> Surely it cannot be something to do with clearing the cache on my 
>> browsersthat does not seem realistic!
>>
>> On Wednesday, 6 March 2019 11:24:44 UTC+13, monmul wrote:
>>>
>>> Hah! If I look it up on my phoneI get the correct jpg?
>>>
>>> On Wednesday, 6 March 2019 11:16:49 UTC+13, monmul wrote:

 I am browsing from 2 different pcsone  a chromebook using Chrome 
 and one my desktop using Chromium. I have tried both 
 www.wilsonbayweather.com and 
 www.wilsonbayweather.com/index.html..both give the same 
 image.this is weird!why would the various weather icons and data 
 change but not the jpg.I will contact my web host and see if they can 
 throw any light on it. Thanks again!

 On Wednesday, 6 March 2019 10:56:52 UTC+13, gjr80 wrote:
>
> So when I look at your site I see ChangeImage.jpg. Since that is what 
> is on your WeeWX server it sounds to me like FTP and your web site are 
> working as they should. Certainly Australia is seeing the correct 
> page/image! It sounds like when you are looking at a page locally that it 
> is not working. When you are browsing and seeing that wrong image what 
> address are you entering in your browser and what device are you browsing 
> from?
>
> Gary
>


-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread rich T
Try clearing the cache on the chromebook and pc.  

On Tuesday, March 5, 2019 at 5:24:44 PM UTC-5, monmul wrote:
>
> Hah! If I look it up on my phoneI get the correct jpg?
>
> On Wednesday, 6 March 2019 11:16:49 UTC+13, monmul wrote:
>>
>> I am browsing from 2 different pcsone  a chromebook using Chrome and 
>> one my desktop using Chromium. I have tried both www.wilsonbayweather.com 
>> and www.wilsonbayweather.com/index.html..both give the same 
>> image.this is weird!why would the various weather icons and data 
>> change but not the jpg.I will contact my web host and see if they can 
>> throw any light on it. Thanks again!
>>
>> On Wednesday, 6 March 2019 10:56:52 UTC+13, gjr80 wrote:
>>>
>>> So when I look at your site I see ChangeImage.jpg. Since that is what is 
>>> on your WeeWX server it sounds to me like FTP and your web site are working 
>>> as they should. Certainly Australia is seeing the correct page/image! It 
>>> sounds like when you are looking at a page locally that it is not working. 
>>> When you are browsing and seeing that wrong image what address are you 
>>> entering in your browser and what device are you browsing from?
>>>
>>> Gary
>>>
>>

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread monmul
Yes it was!how freakin weird! Thanks for the help and the prompts!

On Wednesday, 6 March 2019 11:27:18 UTC+13, monmul wrote:
>
> Surely it cannot be something to do with clearing the cache on my 
> browsersthat does not seem realistic!
>
> On Wednesday, 6 March 2019 11:24:44 UTC+13, monmul wrote:
>>
>> Hah! If I look it up on my phoneI get the correct jpg?
>>
>> On Wednesday, 6 March 2019 11:16:49 UTC+13, monmul wrote:
>>>
>>> I am browsing from 2 different pcsone  a chromebook using Chrome and 
>>> one my desktop using Chromium. I have tried both 
>>> www.wilsonbayweather.com and 
>>> www.wilsonbayweather.com/index.html..both give the same 
>>> image.this is weird!why would the various weather icons and data 
>>> change but not the jpg.I will contact my web host and see if they can 
>>> throw any light on it. Thanks again!
>>>
>>> On Wednesday, 6 March 2019 10:56:52 UTC+13, gjr80 wrote:

 So when I look at your site I see ChangeImage.jpg. Since that is what 
 is on your WeeWX server it sounds to me like FTP and your web site are 
 working as they should. Certainly Australia is seeing the correct 
 page/image! It sounds like when you are looking at a page locally that it 
 is not working. When you are browsing and seeing that wrong image what 
 address are you entering in your browser and what device are you browsing 
 from?

 Gary

>>>

-- 
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] Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-05 Thread Luc Heijst
On Tuesday, 5 March 2019 19:23:31 UTC-3, mwall wrote:
>
>
> luc, please do NOT put barometer code into any sdr driver.  reading 
> pressure from the bme or other pi/arduino-specific hardware does not belong 
> in an sdr driver.  it belongs in a separate service.
>
> m
>

Thanks for the explanation, Matthew. What I meant was a provision for 
reading the barometer code on the same machine as the sdr driver. I did not 
study yet what and how.

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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread Tom Robertson
Have you cleared your browser cache?

-
Tom
On Mar 5, 2019, 4:24 PM -0600, monmul , wrote:
> Hah! If I look it up on my phoneI get the correct jpg?
>
> On Wednesday, 6 March 2019 11:16:49 UTC+13, monmul wrote:
> > I am browsing from 2 different pcsone  a chromebook using Chrome and 
> > one my desktop using Chromium. I have tried both www.wilsonbayweather.com 
> > and www.wilsonbayweather.com/index.html..both give the same 
> > image.this is weird!why would the various weather icons and data 
> > change but not the jpg.I will contact my web host and see if they can 
> > throw any light on it. Thanks again!
> >
> > On Wednesday, 6 March 2019 10:56:52 UTC+13, gjr80 wrote:
> > > So when I look at your site I see ChangeImage.jpg. Since that is what is 
> > > on your WeeWX server it sounds to me like FTP and your web site are 
> > > working as they should. Certainly Australia is seeing the correct 
> > > page/image! It sounds like when you are looking at a page locally that it 
> > > is not working. When you are browsing and seeing that wrong image what 
> > > address are you entering in your browser and what device are you browsing 
> > > from?
> > > Gary
> --
> 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.

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread monmul
Surely it cannot be something to do with clearing the cache on my 
browsersthat does not seem realistic!

On Wednesday, 6 March 2019 11:24:44 UTC+13, monmul wrote:
>
> Hah! If I look it up on my phoneI get the correct jpg?
>
> On Wednesday, 6 March 2019 11:16:49 UTC+13, monmul wrote:
>>
>> I am browsing from 2 different pcsone  a chromebook using Chrome and 
>> one my desktop using Chromium. I have tried both www.wilsonbayweather.com 
>> and www.wilsonbayweather.com/index.html..both give the same 
>> image.this is weird!why would the various weather icons and data 
>> change but not the jpg.I will contact my web host and see if they can 
>> throw any light on it. Thanks again!
>>
>> On Wednesday, 6 March 2019 10:56:52 UTC+13, gjr80 wrote:
>>>
>>> So when I look at your site I see ChangeImage.jpg. Since that is what is 
>>> on your WeeWX server it sounds to me like FTP and your web site are working 
>>> as they should. Certainly Australia is seeing the correct page/image! It 
>>> sounds like when you are looking at a page locally that it is not working. 
>>> When you are browsing and seeing that wrong image what address are you 
>>> entering in your browser and what device are you browsing from?
>>>
>>> Gary
>>>
>>

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread monmul
Hah! If I look it up on my phoneI get the correct jpg?

On Wednesday, 6 March 2019 11:16:49 UTC+13, monmul wrote:
>
> I am browsing from 2 different pcsone  a chromebook using Chrome and 
> one my desktop using Chromium. I have tried both www.wilsonbayweather.com 
> and www.wilsonbayweather.com/index.html..both give the same 
> image.this is weird!why would the various weather icons and data 
> change but not the jpg.I will contact my web host and see if they can 
> throw any light on it. Thanks again!
>
> On Wednesday, 6 March 2019 10:56:52 UTC+13, gjr80 wrote:
>>
>> So when I look at your site I see ChangeImage.jpg. Since that is what is 
>> on your WeeWX server it sounds to me like FTP and your web site are working 
>> as they should. Certainly Australia is seeing the correct page/image! It 
>> sounds like when you are looking at a page locally that it is not working. 
>> When you are browsing and seeing that wrong image what address are you 
>> entering in your browser and what device are you browsing from?
>>
>> Gary
>>
>

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread monmul
I am browsing from 2 different pcsone  a chromebook using Chrome and 
one my desktop using Chromium. I have tried both www.wilsonbayweather.com 
and www.wilsonbayweather.com/index.html..both give the same 
image.this is weird!why would the various weather icons and data 
change but not the jpg.I will contact my web host and see if they can 
throw any light on it. Thanks again!

On Wednesday, 6 March 2019 10:56:52 UTC+13, gjr80 wrote:
>
> So when I look at your site I see ChangeImage.jpg. Since that is what is 
> on your WeeWX server it sounds to me like FTP and your web site are working 
> as they should. Certainly Australia is seeing the correct page/image! It 
> sounds like when you are looking at a page locally that it is not working. 
> When you are browsing and seeing that wrong image what address are you 
> entering in your browser and what device are you browsing from?
>
> Gary
>

-- 
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.


Re: [weewx-user] Re: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread gjr80
So when I look at your site I see ChangeImage.jpg. Since that is what is on 
your WeeWX server it sounds to me like FTP and your web site are working as 
they should. Certainly Australia is seeing the correct page/image! It sounds 
like when you are looking at a page locally that it is not working. When you 
are browsing and seeing that wrong image what address are you entering in your 
browser and what device are you browsing from?

Gary

-- 
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] Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-05 Thread Ruben Navarro Huedo
I will wait for it Luc.

El martes, 5 de marzo de 2019, 22:45:23 (UTC+1), Luc Heijst escribió:
>
> Hi Ruben,
>
> The python and go programs are ready for alpha-testing.
>
> What need to be done is:
>
>- Write installation and user instructions
>- Remove personal data from the programs like skins, passwords etc. 
>- Create a deliver zip file
>- Test the installation
>- Currently there is no provision for pressure (barometer) data; we 
>need a pressure sensor and code in the driver to read the sensor data 
>
> Luc
>
> On Tuesday, 5 March 2019 16:07:37 UTC-3, Ruben Navarro Huedo wrote:
>>
>> Luc: Tell me if you need beta-testing.
>>
>

-- 
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] Receiving Davis Vantage weather data with a RTL-SDR dongle

2019-03-05 Thread Luc Heijst
Hi Ruben,

The python and go programs are ready for alpha-testing.

What need to be done is:

   - Write installation and user instructions
   - Remove personal data from the programs like skins, passwords etc. 
   - Create a deliver zip file
   - Test the installation
   - Currently there is no provision for pressure (barometer) data; we need 
   a pressure sensor and code in the driver to read the sensor data 

Luc

On Tuesday, 5 March 2019 16:07:37 UTC-3, Ruben Navarro Huedo wrote:
>
> Luc: Tell me if you need beta-testing.
>

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread monmul
Curiouser and curiouser. Attached the image I see from my public website 
(staticJpg.jpg)...and also the weewx native output on the Pi 
(ChangeImage.jpg) file:///var/www/html/weewx/index.html

On Wednesday, 6 March 2019 10:13:50 UTC+13, gjr80 wrote:
>
> So at 7:10 my time 10:10 (?) your time I am seeing a daytime photo of a 
> verandah with water and mountains in the background. That is quite 
> different to the night time image I first saw last night and the 'black 
> box' later last night. Give you image only updates on your WeeWX server 
> once an hour just wondering what basis you have for thinking it is not 
> working.
>
> Gary
>

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread gjr80
So at 7:10 my time 10:10 (?) your time I am seeing a daytime photo of a 
verandah with water and mountains in the background. That is quite different to 
the night time image I first saw last night and the 'black box' later last 
night. Give you image only updates on your WeeWX server once an hour just 
wondering what basis you have for thinking it is not working.

Gary

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread monmul
So this was after I had gone to bedstill showing image1 
uploadingand still getting a static image (the source of which I cannot 
find on the web server) on my web page.

6 01:20:22 WeatherPi weewx[19404]: ftpupload: Attempting connection to 
43.245.53.39
Mar  6 01:20:22 WeatherPi weewx[19404]: ftpupload: Connected to 43.245.53.39
Mar  6 01:20:22 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/dayradiation.png
Mar  6 01:20:22 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/index.html
Mar  6 01:20:22 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/dayrain.png
Mar  6 01:20:22 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/daywinddir.png
Mar  6 01:20:23 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/daywindvec.png
Mar  6 01:20:23 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/daywind.png
Mar  6 01:20:23 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/daytempdew.png
Mar  6 01:20:23 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/image1.jpg
Mar  6 01:20:23 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/dayinside.png
Mar  6 01:20:24 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/dayuv.png
Mar  6 01:20:24 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/mobile.html
Mar  6 01:20:24 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/week.html
Mar  6 01:20:24 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/daybarometer.png
Mar  6 01:20:24 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/month.html
Mar  6 01:20:24 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/daytempchill.png
Mar  6 01:20:25 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/dayrx.png
Mar  6 01:20:25 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/dayhumidity.png
Mar  6 01:20:25 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/year.html
Mar  6 01:20:25 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/alltime.html
Mar  6 01:20:25 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/xstats/index.html
Mar  6 01:20:26 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/smartphone/wind.html
Mar  6 01:20:26 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/smartphone/index.html
Mar  6 01:20:26 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/smartphone/radar.html
Mar  6 01:20:26 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/smartphone/rain.html
Mar  6 01:20:26 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/smartphone/barometer.html
Mar  6 01:20:26 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/smartphone/temp_outside.html
Mar  6 01:20:27 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/NOAA/NOAA-2019.txt
Mar  6 01:20:27 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/NOAA/NOAA-2019-03.txt
Mar  6 01:20:27 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/RSS/weewx_rss.xml
Mar  6 01:20:27 WeatherPi weewx[19404]: ftpgenerator: ftp'd 29 files in 
5.46 seconds
Mar  6 01:20:27 WeatherPi weewx[19404]: reportengine: Running report 'RSYNC'
Mar  6 01:20:27 WeatherPi weewx[19404]: reportengine: Found configuration 
file /etc/weewx/skins/Rsync/skin.conf for report 'RSYNC'
Mar  6 01:20:27 WeatherPi weewx[19404]: rsyncgenerato

On Tuesday, 5 March 2019 23:55:29 UTC+13, gjr80 wrote:
>
> Ok, but now when I look at your site image1.jpg does not the display. When 
> you deleted your jpg files you didn't touch anything on your WeeWX machine 
> did you? Your image is only produced every hour so if you did delete it on 
> the WeeWX machine then it could take up to an hour for it to be re-created 
> and subsequently uploaded to the web server. Keep an eye on your WeeWX log 
> to see if/when image1.jpg is uploaded. Guess it is getting late there now, 
> I will have a look later and see what is there.
>
> Gary
>

-- 
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.


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

2019-03-05 Thread Ruben Navarro Huedo
Luc: Tell me if you need beta-testing.

I was testing some time ago rtldavis and i hadn't good success.

Now i am receiving my Davis with a Moteino.

Looking for your news ;-)

-- 
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] Weather Channel with WeeWX *HELP*

2019-03-05 Thread Gary Laurance
I am using Accurite 5 in 1 station with WeeWX running for over a year with 
everything working great. I input my data to Weather Underground.Have a 
question about my data. Is there a way I can input to the Weather Channel 
for more accurite weather in our area. Cant seem to find the right info to 
do this, can anyone help me if possible.
Gary

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread Andrew Milner
There seems to be an image there, but it is just a black square with a 
border.  When I looked earlier there was a very dark image of something 
that I could not make out - but it was definitely not the same as what is 
showing now.  Is there any way you can point the camera at a clock or 
something that is visible and which changes as time passes??





On Tuesday, 5 March 2019 12:55:29 UTC+2, gjr80 wrote:
>
> Ok, but now when I look at your site image1.jpg does not the display. When 
> you deleted your jpg files you didn't touch anything on your WeeWX machine 
> did you? Your image is only produced every hour so if you did delete it on 
> the WeeWX machine then it could take up to an hour for it to be re-created 
> and subsequently uploaded to the web server. Keep an eye on your WeeWX log 
> to see if/when image1.jpg is uploaded. Guess it is getting late there now, 
> I will have a look later and see what is there.
>
> Gary
>

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread Andrew Milner
there seems to be an image there - but it is just a black square with a 
border.



On Tuesday, 5 March 2019 12:55:29 UTC+2, gjr80 wrote:
>
> Ok, but now when I look at your site image1.jpg does not the display. When 
> you deleted your jpg files you didn't touch anything on your WeeWX machine 
> did you? Your image is only produced every hour so if you did delete it on 
> the WeeWX machine then it could take up to an hour for it to be re-created 
> and subsequently uploaded to the web server. Keep an eye on your WeeWX log 
> to see if/when image1.jpg is uploaded. Guess it is getting late there now, 
> I will have a look later and see what is there.
>
> Gary
>

-- 
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: No data update

2019-03-05 Thread Thomas Keffer
You will also need to purge your database of any non-positive values.

You may have to install the tool sqlite3, if you haven't already:
*sudo apt-get install sqlite3*

Then delete any non-positive values:
*sudo sqlite3 /var/lib/weewx/weewx.sdb*
sqlite> *delete from archive where interval <= 0;*

-tk

On Mon, Mar 4, 2019 at 11:44 PM Teva MERVIN  wrote:

> Hello, I still have the same problem despite this change.
> Here are the logs:
>
> root@Nas:~# service weewx status
> ● weewx.service - LSB: weewx weather system
>Loaded: loaded (/etc/init.d/weewx; generated)
>Active: active (exited) since Tue 2019-03-05 07:30:25 +11; 11h ago
>  Docs: man:systemd-sysv-generator(8)
>   Process: 7572 ExecStart=/etc/init.d/weewx start (code=exited,
> status=0/SUCCESS)
>
> mars 05 08:04:53 Nas weewx[7587]: File
> "/usr/share/weewx/weewx/engine.py", line 601, in new_archive_record
> mars 05 08:04:53 Nas weewx[7587]: 
> dbmanager.addRecord(event.record, accumulator=self.old_accumulator)
> mars 05 08:04:53 Nas weewx[7587]: File
> "/usr/share/weewx/weewx/manager.py", line 246, in addRecord
> mars 05 08:04:53 Nas weewx[7587]: 
> self._addSingleRecord(record, cursor, log_level)
> mars 05 08:04:53 Nas weewx[7587]: File
> "/usr/share/weewx/weewx/manager.py", line 1212, in _addSingleRecord
> mars 05 08:04:53 Nas weewx[7587]:   _weight =
> self._calc_weight(record)
> mars 05 08:04:53 Nas weewx[7587]: File
> "/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight
> mars 05 08:04:53 Nas weewx[7587]:   raise
> ValueError("Non-positive value for record field 'interval': %s" %
> (record['interval'], ))
> mars 05 08:04:53 Nas weewx[7587]:   ValueError: Non-positive value
> for record field 'interval': 0
> mars 05 08:04:53 Nas weewx[7587]:   Exiting.
>
> Le samedi 16 février 2019 11:52:11 UTC+11, Teva MERVIN a écrit :
>>
>> Hello, I have problems with weewx.
>> Can you help me ?
>>
>> Feb 16 10:15:41 Nas weewx[22639]:   Non-positive value for record
>> field 'interval': 0
>> Feb 16 10:15:41 Nas weewx[22639]:   Traceback (most recent call
>> last):
>> Feb 16 10:15:41 Nas weewx[22639]: File
>> "/usr/share/weewx/weewx/engine.py", line 890, in main
>> Feb 16 10:15:41 Nas weewx[22639]:   engine.run()
>> Feb 16 10:15:41 Nas weewx[22639]: File
>> "/usr/share/weewx/weewx/engine.py", line 160, in run
>> Feb 16 10:15:41 Nas weewx[22639]: 
>>  self.dispatchEvent(weewx.Event(weewx.STARTUP))
>> Feb 16 10:15:41 Nas weewx[22639]: File
>> "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent
>> Feb 16 10:15:41 Nas weewx[22639]:   callback(event)
>> Feb 16 10:15:41 Nas weewx[22639]: File
>> "/usr/share/weewx/weewx/engine.py", line 520, in startup
>> Feb 16 10:15:41 Nas weewx[22639]: 
>>  self._catchup(self.engine.console.genStartupRecords)
>> Feb 16 10:15:41 Nas weewx[22639]: File
>> "/usr/share/weewx/weewx/engine.py", line 635, in _catchup
>> Feb 16 10:15:41 Nas weewx[22639]:   origin='hardware'))
>> Feb 16 10:15:41 Nas weewx[22639]: File
>> "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent
>> Feb 16 10:15:41 Nas weewx[22639]:   callback(event)
>> Feb 16 10:15:41 Nas weewx[22639]: File
>> "/usr/share/weewx/weewx/engine.py", line 601, in new_archive_record
>> Feb 16 10:15:41 Nas weewx[22639]: 
>>  dbmanager.addRecord(event.record, accumulator=self.old_accumulator)
>> Feb 16 10:15:41 Nas weewx[22639]: File
>> "/usr/share/weewx/weewx/manager.py", line 246, in addRecord
>> Feb 16 10:15:41 Nas weewx[22639]: 
>>  self._addSingleRecord(record, cursor, log_level)
>> Feb 16 10:15:41 Nas weewx[22639]: File
>> "/usr/share/weewx/weewx/manager.py", line 1212, in _addSingleRecord
>> Feb 16 10:15:41 Nas weewx[22639]:   _weight =
>> self._calc_weight(record)
>> Feb 16 10:15:41 Nas weewx[22639]: File
>> "/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight
>> Feb 16 10:15:41 Nas weewx[22639]:   raise
>> ValueError("Non-positive value for record field 'interval': %s" %
>> (record['interval'], ))
>> Feb 16 10:15:41 Nas weewx[22639]:   ValueError: Non-positive
>> value for record field 'interval': 0
>> Feb 16 10:15:41 Nas weewx[22639]:   Exiting.
>>
>> --
> 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.
>

-- 
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 

Re: [weewx-user] Re: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread gjr80
Ok, but now when I look at your site image1.jpg does not the display. When you 
deleted your jpg files you didn't touch anything on your WeeWX machine did you? 
Your image is only produced every hour so if you did delete it on the WeeWX 
machine then it could take up to an hour for it to be re-created and 
subsequently uploaded to the web server. Keep an eye on your WeeWX log to see 
if/when image1.jpg is uploaded. Guess it is getting late there now, I will have 
a look later and see what is there.

Gary

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread monmul
Thanks I will give that a try tomorrowits late here. I am thinking that 
you are right...and the problem lies in the FTP server. I will investigate 
and get back to you. Thank you for all your help!

On Tuesday, 5 March 2019 23:07:12 UTC+13, gjr80 wrote:
>
> Yes the former, your web host on the internet. Some folks can ssh into 
> their web server but I am gu swing you haven't done that. Do you have a 
> login that you can use via a browser to manage your hosting? That should 
> have some sort of file management tool.
>
> I am not convinced that the FTP is not working, I think it is.
>
> Gary
>
>

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread gjr80
Yes the former, your web host on the internet. Some folks can ssh into their 
web server but I am gu swing you haven't done that. Do you have a login that 
you can use via a browser to manage your hosting? That should have some sort of 
file management tool.

I am not convinced that the FTP is not working, I think it is.

Gary

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread monmul
By "delete image1.jpg from your web server" do you mean from the 
www.wilsonbayweather.com web server on the net or do you you mean the 
/var/www/html/weewx/ 
folder where it resides on my Pi? If the formernot sure how I would 
even do that?

On Tuesday, 5 March 2019 22:45:26 UTC+13, gjr80 wrote:
>
> Hang on, missed this in the log you posted:
>
> Mar  5 21:30:30 WeatherPi weewx[19404]: ftpupload: Uploaded file 
> /public_html/image1.jpg
>
> Looks like it is being uploaded. What happens if you delete image1.jpg 
> from your web server, does it get replaced (albeit with an old file) on the 
> next report cycle?
>
> Gary
>
>

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread gjr80
Hang on, missed this in the log you posted:

Mar  5 21:30:30 WeatherPi weewx[19404]: ftpupload: Uploaded file 
/public_html/image1.jpg

Looks like it is being uploaded. What happens if you delete image1.jpg from 
your web server, does it get replaced (albeit with an old file) on the next 
report cycle?

Gary

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread gjr80
Hmm, not seeing anything obvious. There is a check in the FTP generator that 
determines whether a file is to be uploaded or skipped, it may be that your 
image file is failing this test for some reason and hence not being uploaded. 
Unfortunately the log/debug doesn't tell us anything about this check. Might 
need Tom's expert eye when he comes along later.

Gary

-- 
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: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread monmul
weewx.conf attached - passwords etc changed.

On Tuesday, 5 March 2019 22:07:12 UTC+13, gjr80 wrote:
>
> Sorry I am a bit slow in this but I don't use ftp myself. I see files are 
> being uploaded from /public_html, just wondering if perhaps something is in 
> the wrong place. Can you post a copy of weewx.conf being careful to take 
> out any sensitive info, user names, passwords etc.
>
> Gary
>

-- 
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 CONFIGURATION FILE
#
# Copyright (c) 2009-2015 Tom Keffer 
# See the file LICENSE.txt for your rights.

##

# This section is for general configuration information.

# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 1

# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /

# Whether to log successful operations
log_success = True

# Whether to log unsuccessful operations
log_failure = True

# How long to wait before timing out a socket (FTP, HTTP) connection
socket_timeout = 20

# Do not modify this. It is used when installing and updating weewx.
version = 3.9.1

##

#   This section is for information about the station.

[Station]

# Description of the station location
location = "Wilson Bay, Queenstown, NZ"

# Latitude and longitude in decimal degrees
latitude = -45.0595
longitude = 168.567

# Altitude of the station, with unit it is in. This is downloaded from
# from the station if the hardware supports it.
altitude = 320, meter

# Set to type of station hardware. There must be a corresponding stanza
# in this file with a 'driver' parameter indicating the driver to be used.
station_type = Vantage

# If you have a website, you may specify an URL
#station_url = http://www.example.com

# The start of the rain year (1=January; 10=October, etc.). This is
# downloaded from the station if the hardware supports it.
rain_year_start = 1

# Start of week (0=Monday, 6=Sunday)
week_start = 6

##

[Vantage]
# This section is for the Davis Vantage series of weather stations.

# Connection type: serial or ethernet 
#  serial (the classic VantagePro)
#  ethernet (the WeatherLinkIP or Serial-Ethernet bridge)
type = serial

# If the connection type is serial, a port must be specified:
#   Debian, Ubuntu, Redhat, Fedora, and SuSE:
# /dev/ttyUSB0 is a common USB port name
# /dev/ttyS0   is a common serial port name
#   BSD:
# /dev/cuaU0   is a common serial port name
port = /dev/ttyUSB0

# If the connection type is ethernet, an IP Address/hostname is required:
host = 1.2.3.4

##
# The rest of this section rarely needs any attention. 
# You can safely leave it "as is."
##

# Serial baud rate (usually 19200)
baudrate = 19200

# TCP port (when using the WeatherLinkIP)
tcp_port = 2

# TCP send delay (when using the WeatherLinkIP):
tcp_send_delay = 0.5

# The id of your ISS station (usually 1). If you use a wind meter connected
# to a anemometer transmitter kit, use its id
iss_id = 1

# How long to wait for a response from the station before giving up (in
# seconds; must be greater than 2)
timeout = 4

# How long to wait before trying again (in seconds)
wait_before_retry = 1.2

# How many times to try before giving up:
max_tries = 4

# Vantage model Type: 1 = Vantage Pro; 2 = Vantage Pro2
model_type = 2

# The driver to use:
driver = weewx.drivers.vantage

##

#   This section is for uploading data to Internet sites

[StdRESTful]

[[StationRegistry]]
# To register this weather station with weewx, set this to true
register_this_station = false

[[AWEKAS]]
# This section is for configuring posts to AWEKAS.

# If you wish to do this, set the option 'enable' to true,
# and specify a username and password.
# To guard against parsing errors, put the password in quotes.
enable = false
username = replace_me
password = replace_me

[[CWOP]]
# This section is for configuring posts to CWOP.

# If you wish to do this, set the option 'enable' to true,
# and 

Re: [weewx-user] Re: Getting the RPi 3 with Davis Vantage up and running

2019-03-05 Thread gjr80
Sorry I am a bit slow in this but I don't use ftp myself. I see files are being 
uploaded from /public_html, just wondering if perhaps something is in the wrong 
place. Can you post a copy of weewx.conf being careful to take out any 
sensitive info, user names, passwords etc.

Gary

-- 
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.