I'm currently working on an IoT and Azure presentation building a Xamarin.Forms app to gather sensors data from mobile devices (Raspberry Pi will come next).  Mobile device don't usually have a built-in temperature sensor but would it be possible to get the local temperature using the location and an external service for free?  Sure thing!  After a quick search on the Interwebs I found OpenWeatherMap that have a Web API and a free pricing tier.

By using the latitude and longitude, you get a nice JSON result easily consumable in .NET or JavaScript.

"weather":[{"id":804,"main":"clouds","description":"overcast clouds","icon":"04n"}],


blog comments powered by Disqus

Page List

Month List