Indoor data on WunderStation?

382 views
Skip to first unread message

Tony Gilbert

unread,
Mar 13, 2016, 5:35:22 AM3/13/16
to pywws
thanks for the great software now installed and running well with my new Fine Offset 3081 (except for the repeating USB TIMEOUT every few days and the station insisting on running down my rPi battery via USB instead of its own AAs.).

I'm curious about the data sent via rf_underground rapidfire updates. Is there a place to see what is actually sent? My regular browser view shows Weather Underground data populating as expected and updating every 48 seconds or so...

... but the new(-ish) WunderStation app on my iPad includes an "Indoor" widget for Temp and Humidity which is claiming "no data" whilst all my other indicators are currently updating to the adjacent widgets in the same app!? I'm not aware of any other location on Weather Underground where indoor data is displayed so I'm wondering whether it's being sent by pywws?

Cheers
Tony

Jim Easterbrook

unread,
Mar 13, 2016, 5:46:44 AM3/13/16
to py...@googlegroups.com
On 13/03/16 02:51, Tony Gilbert wrote:
>
> I'm curious about the data sent via rf_underground rapidfire updates.
> Is there a place to see what is actually sent? My regular browser
> view shows Weather Underground data populating as expected and
> updating every 48 seconds or so...

48 seconds is the "rapidfire" interval. It's built in to the weather
station hardware.

> ... but the new(-ish) WunderStation app on my iPad includes an
> "Indoor" widget for Temp and Humidity which is claiming "no data"
> whilst all my other indicators are currently updating to the adjacent
> widgets in the same app!? I'm not aware of any other location on
> Weather Underground where indoor data is displayed so I'm wondering
> whether it's being sent by pywws?

Currently pywws doesn't send indoor temperature. It's a recent addition
to their upload protocol.
http://wiki.wunderground.com/index.php/PWS_-_Upload_Protocol

There are potential security implications of sending this - do you turn
your heating down or off when you go away on holiday?

I want to have a rethink of how weather 'services' are configured. It's
all a bit of a dog's breakfast since other things have been shoehorned
in to the original concept and needs an overhaul.

In the meantime, you could copy the weather underground service template
to a convenient directory, edit it to add the 'indoortempf' and
'indoorhumidity' fields, then set 'template' in your weather.ini file's
[underground] section to point to your new template.
--
Jim Easterbrook <http://www.jim-easterbrook.me.uk/>

Tony Gilbert

unread,
Mar 13, 2016, 11:22:05 PM3/13/16
to pywws

On Sunday, 13 March 2016 20:46:44 UTC+11, Jim Easterbrook wrote:

48 seconds is the "rapidfire" interval. It's built in to the weather
station hardware.
 
Yep! Thanks.

 
Currently pywws doesn't send indoor temperature. It's a recent addition
to their upload protocol.
http://wiki.wunderground.com/index.php/PWS_-_Upload_Protocol

I'll stop looking! Thanks.

There are potential security implications of sending this - do you turn
your heating down or off when you go away on holiday?

Agreed, and I'll be interested to see what the uptake is.  Personally, I'm in Australia, don't use heating or aircon, and the indoor temp is the same whether I'm home or not, so no personal security concerns but I accept that's not the global perspective.

I want to have a rethink of how weather 'services' are configured. It's
all a bit of a dog's breakfast since other things have been shoehorned
in to the original concept and needs an overhaul.
 
But only a minor one, I'm thinking! ;-)

In the meantime, you could copy the weather underground service template
to a convenient directory, edit it to add the 'indoortempf' and
'indoorhumidity' fields, then set 'template' in your weather.ini file's
[underground] section to point to your new template.

Aah - genius - thanks!  I haven't explored templates yet, but I'll be straight onto it.

Thanks again, and cheers,
Tony

Hayden Thring

unread,
Mar 14, 2016, 9:39:21 PM3/14/16
to pywws
id like indoor too, just make it off by default to get around sec worries

Tony Gilbert

unread,
Mar 14, 2016, 10:14:33 PM3/14/16
to pywws
so to save anyone searching the doco, here's my steps to implement on Weather Underground - YMMV.  (Thanks Jim!)

Check the template location.

pywws-version -v


My template wasn't in the 

/usr/local/lib/python2.7/dist-packages/pywws/examples/templates


folder, as I'd imagined, but rather in the parallel

.../pywws/services

folder. 

I selected
underground_template_3080.txt
and copied it to my home directory as

~/weather/templates/underground_template_3080.txt


Then I added the following #hum-in and #temp_in lines shown in bold (I don't believe it matters what order they go in, but I kept them with their outdoor mates

[...]
#hum_out      "'humidity'       : '%.d',"#
#hum_in       "'indoorhumidity' : '%.d',"#
#temp_out     "'tempf'          : '%.1f'," "" "temp_f(x)"#
#temp_in      "'indoortempf'    : '%.1f'," "" "temp_f(x)"#
[...]


Changed ~/weather/data/weather.ini template = key in the [underground] section to reference the FQN path of the new template file, and restarted live-logger.  Given that the template folder is referenced in the [paths] section I'm guessing that fully qualifying the pathname may have been overkill, but I didn't think of that until later!

Presto!

Jim Easterbrook

unread,
Mar 15, 2016, 3:22:50 AM3/15/16
to py...@googlegroups.com
On 15/03/16 01:39, Hayden Thring wrote:
> id like indoor too, just make it off by default to get around sec worries

Which is yet another configuration setting, hence my desire to rethink
how 'services' are configured.
Reply all
Reply to author
Forward
0 new messages