Skip to content

spyrosel/meteoclima-android

 
 

Repository files navigation

meteoclima-android

(English - Αγγλικά)

This is an open source weather app for android desiged to use gridded and in situ data provided from the Atmosphere and Climate Dynamics Group of the Harokopio University of Athens (ACDG/HUA).

All the files except the php files inside the folder named "server-side" are part of the gradle project (Java) created using the Android Studio.

The files inside "server-side" are the php code used by the app to retrieve the forecasts of the closest gridded point to the current location from the server's MySQL database.

It is a simple web service that takes as parameters the longtitude and the latitude of a point (users current location) and returns, in JSON format, the closest gridded point's forecasts for the current day and the next 4 days. It uses the Haversine formula to calculate the closest location.

Due to service discontinuation of ACDG/HUA weather forecast data the app adapted to use data from http://openweathermap.org.

You can read more details on the Wiki (in Greek).

(Greek - Ελληνικά)

Το meteoclima-android μία open source εφαρμογή πρόγνωση καιρού για το Android που σχεδιάστικε για να προβάλλει τα δεδομένα που παρέχονται από την Ομάδα Ατμοσφαιρικής και Κλιματικής Δυναμικής του Χαροκοπείου Πανεπιστημίου Αθηνών (ACDG / HUA).

Όλα τα αρχεία εκτός από τα αρχεία php μέσα στο φάκελο με το όνομα «server-side» είναι μέρος του gradle project (Java) που δημιουργήθηκε με το Android Studio.

Τα αρχεία μέσα στον φάκελο server-side είναι ο PHP κώδικας που χρησιμοποιείται από την εφαρμογή για να ανακτήσει τις προβλέψεις για το πλησιέστερο πλεγματικό σημείο από τη βάση δεδομένων MySQL του διακομιστή.

Είναι ένα απλό web service που παίρνει ως παραμέτρους το γεωγραφικό μήκος και το γεωγραφικό πλάτος ενός σημείου (την τρέχουσα θέση του χρήστη) και επιστρέφει, σε μορφή JSON, τις προβλέψεις για το πλησιέστερο πλεγματικό σημείο για την τρέχουσα ημέρα και τις 4 επόμενες ημέρες. Χρησιμοποιεί τον τύπο Haversine για να υπολογίσει το πιο κοντινό πλεγματικό σημείο και να επιστρέψει τις σωστές προβλέψεις.

Λόγω της διακοπής παροχής δεδομένων από την ομάδα ACDG / HUA η εφαρμογή προσαρμόστηκε ώστε να χρησιμοποιεί δεδομένα από το http://openweathermap.org.

Περισσότερες πληροφορίες μπορείτε να βρείτε στο Wiki

Κώδικας με άδεια EUPL v1.1 και περιεχομένο με CC-BY-SA 4.0.

About

An open source weather app for Android OS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 99.3%
  • PHP 0.7%