View previous topic :: View next topic |
Author |
Message |
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Fri Nov 11, 2005 4:26 pm Post subject: Handling Metric data from Vantage |
|
|
It would be super cool if you could add the ability for wview to handle metric data from Vantage.
Could it be as simple as setting a bit to *not* turn on conversion and leave all values as is.. just adding in the metric symbols?
For us non-US blokes who like our "metrics"
Chris |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Fri Nov 11, 2005 6:25 pm Post subject: |
|
|
You've got your metrics - just leave the VP console and rain collector US, and wview will give you all the metrics you want...
What else do you want?
There are many non-US blokes using wview now - see the site list. |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Fri Nov 11, 2005 6:31 pm Post subject: |
|
|
Not gonna happen just so the console is metric. My gosh, you can get so much more data out of the html pages generated by wview. Use something else (or nothing at all) if you need to play with the console so bad. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Fri Nov 11, 2005 7:34 pm Post subject: |
|
|
a) Lots of people in the world do not have a computer in front of them 24/7
b) Even more people aren't used to or simply don't understand many US/imperial units.
Just a couple thoughts... no offense intended. |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Fri Nov 11, 2005 7:40 pm Post subject: |
|
|
But they have the VP console in front of them 24/7? I think you are confused.
Look at: http://200.58.146.28/wview/index.html
Does that look "metric-enough" for you? I don't think anyone using that site has to know US units, do you? All labels are metric, all values, heck, even the text is configurable to foreign languages. Again, what do you want?
It is a heck of a lot more likely (and useful) that you or anyone else is going to have a web browser available than a VP console.
No offense taken, I just can't believe you are making a stink about not being able to see metric on that dim little VP console. It is nothing but a data logger and interface to weather data to me. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Fri Nov 11, 2005 9:55 pm Post subject: |
|
|
ya.. unfortunately my wife doesn't quite see it that way she thinks of it more like... "You payed $450 for a thing that isn't even in units that I understand!?"
I just browsed through the Vantage SDK documents included in your distribution and it seems as though the rain data is collected in "clicks" rather than any actual measurement... everything else seems to be logged in US units so that would explain why the conversions are OK.
It's just the Rain collector that is the issue because it tracks it in "clicks"... so it might be easier to do than you might think? Just check what rain_type the collector is using... and then deal with the proper "clicks" as a result?
Section XXI:
#3:
To read what the current rain collector type is:
1. Use "EEBRD 2B 01" to read the current setup bits into the
variable setup_bits.
2. Calculate: rain_type = setup_bits & 0x30
3. rain_type will have one of the following values: 0x00 = 0.01
in, 0x10 = 0.2 mm, or 0x20 = 0.1 mm
I guess it all depends how you wrote it, so it might be quite hard for you to add that in.
Oh well. Thanks for the thoughts anyway. |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Sat Nov 12, 2005 12:58 am Post subject: |
|
|
And my wife would say:
Quote: | You've spent 1600 hours working on something they get for free... why? |
Oh, and thanks for the protocol lesson, I hadn't looked at that document before |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Sat Nov 12, 2005 9:26 am Post subject: |
|
|
Ya... those wives... always the voice of reason.
Well, if you could put "dealing with different clicks" in your 3.0 version in a few years that'd be great... in terms of creating a website and serving up data, your software pretty much kicks butt over anything else out there.
You should really put a paypal link somewhere on your site too... nothing wrong with donation-ware. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Sat Nov 12, 2005 9:42 am Post subject: |
|
|
Think of it this way....
0.2mm equals 0.007874 inches
0.1mm equals 0.003937 inches
that's a lot more precise than 0.1 inch increments.
For places that don't get much rain... that can make a huge difference!
Have I convinced you yet? Any other tacts I can take? |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Sat Nov 12, 2005 3:20 pm Post subject: |
|
|
Nope, and it is 0.01 inch, not 0.1...
And the Sourceforge homepage for wview allows PayPal donations. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Sat Nov 12, 2005 4:04 pm Post subject: |
|
|
darn. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Sat Nov 12, 2005 4:06 pm Post subject: |
|
|
alright... name your price (just kidding)
can't fault me for trying |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Sat Nov 12, 2005 4:26 pm Post subject: |
|
|
ok. last question, i promise.
The wlk files... they store the raw data right? So they would have the "clicks" from the rain gauge?
Is there any way you could perhaps store the "click" data in the database rather than the converted rain values? |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Sat Nov 12, 2005 5:06 pm Post subject: |
|
|
You are really wrapped around the axle on this - if you choose metric units for wview, it will store all data in the relational database in metric values - thus why would you want clicks? It stores tenths of cm if so configured for metric...
The WLK files are US, the stupid VP console is US, everything else will be metric including relational databases.
The clicks MUST represent 0.01 inches in the WLK files for wview - take the damn adapter off your rain collector and go on with life. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Sat Nov 12, 2005 11:26 pm Post subject: |
|
|
heh.
you've only started to experience my stubborness... in fact.. I'm so stubborn... I've converted the data *back* on my wview webpage.
so THERE!
http://www.murkyview.com/wview/
And here's the javascript to do it people can just replace the rain values with this in the .htx file. If you are using 0.1mm increments, you will need to change the "0.2" in the first calculation to 0.1
Code: |
<script type="text/javascript">
var fixmonthrain = (((<!--monthlyRain--> * 0.3937) / 0.01) * 0.2);
fixmonthrain = Math.round(fixmonthrain*100) / 100;
document.write(fixmonthrain);
</script>mm
|
|
|
Back to top |
|
|
|