Thread: Code gurus
View Single Post
flatbutt flatbutt is online now
I see you
 
flatbutt's Avatar
 
Join Date: Nov 2002
Location: NJ
Posts: 30,171
Quote:
Originally Posted by TimT View Post
Corresponded with the guy who wrote the snippets.... There is now joy

//GeoLoactionByIP myLocation = new GeoLoactionByIP();

AskGeoService askGeo = new AskGeoService();

//myLocation.queryLocation();

//m_weatherData = new WeatherUndergroundData("here was your key", myLocation.latitude, myLocation.longitude);

string lat = "32."; // "32.0";

string longi = "34.";// "34.7";

//askGeo.queryLocation(myLocation.latitude, myLocation.longitude);

askGeo.queryLocation(lat, longi);

weatherData = new WeatherUndergroundData("here place your key", lat, longi);

int minutes = (int)(askGeo.currentOffserMS / 1000 / 60);

Debug.Print("\tTZ offset(+DST)=" + minutes + " minutes");

ntpService.SetTimeZoneOffset(minutes);



Its just a little gizmo that displays current and two day future weather...

Next I am going to tackle the touch screen coding....

you need a girlfriend.
__________________
Si non potes inimicum tuum vincere, habeas eum amicum and ride a big blue trike.
"'Bipartisan' usually means that a larger-than-usual deception is being carried out."
Old 03-11-2014, 05:45 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #18 (permalink)