colbylwilliams / xweather Goto Github PK
View Code? Open in Web Editor NEWA weather app for iOS and Android built with Xamarin
License: MIT License
A weather app for iOS and Android built with Xamarin
License: MIT License
Method in question:
public static string ForecastString (this WuLocation location, TemperatureUnits unit, DateTime? date = null)
in WeatherConditionsExtensions.cs
--
Scenario:
Late last night I was testing the weather bot and asked for Saturday's weather. This was ~1:55am. What I found is that the date math done in here to determine the correct "period" yielded a period of 4 (Saturday - Thurs == 2; 2 * 2 (for day/night) == 4); however, the location.TxtForecasts
collection still had Wednesday data at the start of the dictionary, so the 'correct' period would have been 6.
Not sure if the data was stale/cached from earlier service calls on Wed. night, but we may want to 'anchor' the period calculation based on what the first day in the collection is.
If someone builds the Android project out of the box and deploys to an x86 Atom-based emulator, they'll get the following in the "Deploying to Device" pad:
Deploying package to 'emulator-5554'
The package does not support the device architecture (x86). You can change the supported architectures in the Android Build section of the Project Options.
Deployment failed. Architecture not supported.
Only x86_64
is currently flipped on, so only 64-bit emulators and devices will be deployed to.
Flip the setting on for x86
(and any other pertinent architectures):
Check the release settings too.
DateTimeFormatInfo.set_Calendar (System.Globalization.Calendar value)
System.ArgumentOutOfRangeException: Not a valid calendar for the given culture. Parameter name: value
DateTimeFormatInfo.set_Calendar (System.Globalization.Calendar value)
CultureInfo.get_DateTimeFormat ()
CultureInfo.GetFormat (System.Type formatType)
DateTimeFormatInfo.get_CurrentInfo ()
DateTime.ToShortTimeString ()
LocationTvCell.SetData (XWeather.WuLocation location)
Another point: I think I had to force-quit and restart the app after I changed the unit settings to have them take effect
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.