Skip to main content

Posts

Showing posts with the label weather

Weather forecasting using X++

In todays competitive business world, there are many factors which determine the profit or loss. Climatic conditions has its own impact and is becoming increasingly important for the corporates. Like Demand forecast, weather forecast can be very helpful in business planning. This Job is an attempt to predict the weather conditions in advance and organize things in such a way which will help the companies not only to optimize their resources but also maximize their profits. In the example, I used Yahoo released rss weather feeds: http://weather.yahoo.com/rss and XML programming to get the climatic conditionsThe format of the URL for the feed is: http://xml.weather.yahoo.com/forecastrss?p=USNY0996&u=f p is a US zip or a Yahoo! Weather location ID u is the temp. units. ‘F’ for Fahrenheit (default) and ‘C’ for celcius static void weatherForecast(Args _args) { XmlDocument doc = new XmlDocument(); XmlNamespaceManager ns; XmlNodeList nodes; ...