Skip to content

Dylan-Ay/Ma-Meteo

Repository files navigation

Desktop Weather App

Welcome! 👋

Thanks for checking out this personal project.

The Project

Desktop Weather App in JavaScript using a Web Components architecture with Electron.js. I used two APIs: OpenWeather to retrieve weather information and Geoapify to retrieve city results from the search bar.

Web Components is a suite of different technologies allowing you to create reusable custom elements — with their functionality encapsulated away from the rest of your code — and utilize them in your web apps without using a framework like React which I considered overkill for this kind of project.

License ❗

  • The source code is publicly visible for evaluation purposes only and may not be reused without explicit prior permission.

  • The application releases are free to download and use for personal and educational purposes only.

Getting Started

First, run the development server:

npm install
# and
npm run start
# and
npm run dev:css

Current functionalities :

  • Searching for any city in the world thanks to Geoapify API by clicking the city result it'll retrieve the weather for this actual city.

  • The current and 24 hours weather information includes the temperature, the temperature as it feels, the weather icon, the wind speed, the humidity rate, the atmospheric pressure, the times of sunrise and sunset and a summary of the weather's day.

  • The data is saved in your browser's local storage so that it can be printed when you reload or close the app.

  • You can access a history of your search terms under the search bar. These components are clickable and allow you to quickly print the weather forecast for the selected city.

  • The daily weather of the next 7 days for the selected city (max temp, min temp, weather description, sunrise, sunset)

  • I also created a dark theme which you can switch using the toggle situated in the top right corner of the app.

  • Health indicators : Air pollution and UV Index data

  • A cache was implemented to avoid an excess of API calls.

Futures functionalities :

  • Weather maps
  • Rain chart
  • Activities near the selected city
  • More informations about the city

Stacks used :

  • JavaScript Web Components / Electron.js
  • Tailwind
  • OpenWeather API
  • Geoapify API

About

Application de données météorologiques avec Electron en Web Components et les APIs OpenWeatherMap et Geoapify.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors