Giter Site home page Giter Site logo

colbylwilliams / xweather Goto Github PK

View Code? Open in Web Editor NEW
67.0 10.0 58.0 6.81 MB

A weather app for iOS and Android built with Xamarin

License: MIT License

C# 95.23% Shell 4.60% Smalltalk 0.17%
xamarin weather android ios mobile-center xamarin-ios xamarin-android

xweather's Issues

ForecastString method not returning correct day in some situations

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.

Flip on the x86 architecture setting in the Android project

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.

[iOS] Mobile Center Crash Group #10 - ArgumentOutOfRange Exception

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)

Crash
Code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.