Tuesday 9 April 2013

C'mawn, April Showers!
2013-04-09


No, I'm not pining for a porn actress.  I'm waiting patiently for it to rain.

New Toys
About a month back, I ordered a new weather station, which arrived about ten days ago; the dr.Tech WA-1070-T.  It's wireless.  It includes wind and precipitation.  It includes a solar recharger.

One unexpected omission from the package:  USB capture.  Dammit.  Chumped by an assumption on my part.

So, I'll be back to OCR'ing an LCD display.


Back to the Fixture

(If that statement mystifies you: I capture my 'local' weather data from the LCD display of a cheap home weather station.  A webcam snaps a picture of the display, and custom software quite literally interprets what's on the screen and passes the info along to the weather software proper.  Versus wiring in and programming the necessary circuitry to interface it electronically, it's the best/simplest/cheapest solution.  And I'm damned certain I'm infringing on some troll's patent, somewhere, in doing this.)

I've had the new station installed and in testing for about a week.  Since then, it's been bloody windy, causing me to suspect vibration of the 'transmitter' unit--not the rain gauge mechanism itself--as the source of spurious readings.  I'm supposed to get precipitation data in increments of 0.3 mm.  What I've been getting is a string of spurious readings, 15.2 mm at a time--and this after having secured the rain gauge to a flat, stable surface.  What I'm suspecting is a loose connection, in conjunction with resonant vibration in the sensor mast.

Making Ready
I've been upgrading the data-capture software, with two competing goals in mind:

Make it capture more data

Make it easier to use (GUI-squishy) and more configurable

Issue:  There'll be a number of new fields on the new display (wind speed and direction, and running-total precipitation).  The number of fields actually captured may vary and could change again in the future, when I try to upgrade to something even-better and chump myself again.  Honest-to-'Ghettimonster, I will be absolutely certain, next time, that it's got computer connectivity.  *makes coiling motions with left hand*

So, make the data fields configurable and more flexible

Issue:  We have a new, active, male feline addition to the households.  Prowling occurs, as do minor upsets, such as trying to perch on the Centretown Observatory Data Capture Stage, which began life as a microwave cart with a nordic moniker.  Disturbances to the webcam and/or the display panel (position and orientation) are a major pain, as viewpoints change, and the camera must be realigned simultaneously with the data-capture software. 

So, make it easier and faster to realign.

The revised version of the capture software now recognizes any number of user-definable data fields, in which the individual digits can be expressed as a box and the expected segments scanned automatically; or each individual segment can be defined to specific coordinates.  (E.g. on the new display, the leading digit for the barometric-pressure reading is either blank, or 1 (i.e. two segments.).)

The configuration file is so simple, yet flexible, it really deserves a full page of documentation.  The initial calibration is done by hand, field-by-field and character-by-character, and entered into the config file.  Following that, realignment is easier.  Once the camera has been levelled and roughly pointed in the right direction, the data search-boxes can be adjusted onscreen either globally, or by field.  A future version may use special markings for auto-calibration.Eventually, I'll add interface elements to manage configuration completely visually.

So, a few polishing touches to the data-capture software, and a one-time calibration, and I'll be collecting live data from the new station.  The only catch is that I need to see a little live action from the rain gauge; to see how real data are reported, before deciding how--or, indeed, whether--to handle rainfall readings.

Water, Water, Everywhere--And Not a Drop to Measure

It hasn't rained much, nor at the right times, since I set up the new equipment.  

It's supposed to rain tonight.  I've been following the front in on local radar.  It's... in the neighbourhood but kind-of regrouping.

To paraphrase The Simpsons' Apu Nahasapeemapetilon (big fan; love the blithe fatalism): 


Rain, rain
Go away
...and please come again!


(And that brings us to 410.4 millimetres of imaginary rain for today.)



No comments:

Post a Comment