Coder Social home page Coder Social logo

lab3-restapi's Introduction

[GTI785 Systèmes d'applications mobiles]
Lab 3 : JSON et REST API

Présentation

L'objectif de ce 3ème laboratoire est d'arriver à faire communiquer l'application avec une API externe, OpenWeather, afin d'afficher des informations sur les prévisions méteo à venir. Le TP se limite à simplement afficher les résultats d'une requête pour une prévision en temps réel localisée dans la ville choisie par l'utilisateur.

Pour ma part, le concept à été poussé plus loin en fournissant des informations plus complètes à l'aide d'un design travaillé et de nouvelles fonctionnalités pour se rapprocher du rendu d'une véritable application de météo.

Voici une capture d'écran du résultat souhaité :

image

Et voici le rendu final :

image

Parmis les fonctionnalités ajoutées :

  • Prévision pour la journée et les 7 jours suivants.
  • Rafraichissement périodique des données et à tout moment via l'icône situé dans la barre d'actions.
  • Écran de paramètres accessibles via le menu de la barre d'actions permettant par exemple de changer les unités de mesures utilisées.

De plus une documentation du code est disponible à l'adresse suivante : https://krow10.github.io/Lab3-RestAPI/

Installation

Récupérer la dernière version de l'apk depuis la page de publication ou compilez là vous même à l'aide de Gradle !

License

Distribué sous la license MIT. Voir le fichier LICENSE pour plus d'informations.

Contact

Etienne Donneger - [email protected]

Remerciements

  • OpenWeather - OpenWeather platform is a set of elegant and widely recognisable APIs. Powered by convolutional machine learning solutions, it is capable of delivering all the weather information necessary for decision-making for any location on the globe.
  • HelloCharts for Android - Charts/graphs library for Android compatible with API 8+, several chart types with support for scaling, scrolling and animations.
  • Alexey Onufriev - Free Weather Icons

lab3-restapi's People

Contributors

0237h avatar

Watchers

 avatar  avatar

lab3-restapi's Issues

Tabs not fully updating after changing settings

Device : Samsung Galaxy S20 FE / Android 11.0

Steps :

  • Go to the settings (overflow menu).
  • Change the units setting (from metric to imperial for example).
  • Go back to the app.
  • Switch some tabs to see if values are all updated

Expected result :

All values, especially temperature and wind speed, should be set according to the unit system currently in use.

Actual result :

Some tabs still presents values from the old setting and temperature graphs from daily forecast tabs are either blank, bugged, or present wrong data. This issue is resolved after switching back and forth between tabs effectively reloading the fragments.

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.