Thread: Code gurus
View Single Post
TimT TimT is online now
Navin Johnson
 
TimT's Avatar
 
Join Date: Mar 2002
Location: Wantagh, NY
Posts: 8,860
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....

__________________
Don't feed the trolls. Don't quote the trolls
http://www.southshoreperformanceny.com
'69 911 GT-5
'75 914 GT-3
and others

Last edited by TimT; 03-11-2014 at 05:28 PM..
Old 03-11-2014, 05:25 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #17 (permalink)