wviewweather.com Forum Index wviewweather.com
wview and Weather Topics
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Handling Metric data from Vantage

 
Post new topic   Reply to topic    wviewweather.com Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Fri Nov 11, 2005 4:26 pm    Post subject: Handling Metric data from Vantage Reply with quote

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

Chris
Back to top
View user's profile Send private message MSN Messenger
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Fri Nov 11, 2005 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Fri Nov 11, 2005 6:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Fri Nov 11, 2005 7:34 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Fri Nov 11, 2005 7:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Fri Nov 11, 2005 9:55 pm    Post subject: Reply with quote

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!?" Smile

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
View user's profile Send private message MSN Messenger
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Sat Nov 12, 2005 12:58 am    Post subject: Reply with quote

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 Laughing
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Sat Nov 12, 2005 9:26 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Sat Nov 12, 2005 9:42 am    Post subject: Reply with quote

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? Smile
Back to top
View user's profile Send private message MSN Messenger
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Sat Nov 12, 2005 3:20 pm    Post subject: Reply with quote

Nope, and it is 0.01 inch, not 0.1...

And the Sourceforge homepage for wview allows PayPal donations.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Sat Nov 12, 2005 4:04 pm    Post subject: Reply with quote

darn.
Back to top
View user's profile Send private message MSN Messenger
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Sat Nov 12, 2005 4:06 pm    Post subject: Reply with quote

alright... name your price (just kidding) Wink

can't fault me for trying
Back to top
View user's profile Send private message MSN Messenger
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Sat Nov 12, 2005 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Sat Nov 12, 2005 5:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Sat Nov 12, 2005 11:26 pm    Post subject: Reply with quote

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.

Razz

so THERE! Wink

http://www.murkyview.com/wview/

And here's the javascript to do it Very Happy 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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> Wish List All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group