Go to file
Sander c1c3b46740 README 2023-05-22 05:26:54 +03:00
cmake initla commit 2023-05-16 03:05:52 +03:00
src bla 2023-05-22 04:57:06 +03:00
CMakeLists.txt w0-w 2023-05-17 03:40:40 +03:00
README.md README 2023-05-22 05:26:54 +03:00
wow.txt initla commit 2023-05-16 03:05:52 +03:00

README.md

NOMWeather

NOMWeather (not open maemo weather) fetches weather data from Open-Meteo.com (FOSS Weather API) and uses IP-API.com for lat/lon discovery via network.

  • Supports most locations on the planet
  • Temperature in celcius or fahrenheit
  • 7 day forecast
  • Optional wind data (km/h) and precipitation
  • Qt 17, CMake, CCache
  • QtWidgets & QtQuick

The application is called not open maemo weather because during development people kept referring to OMWeather (a legacy maemo application).

https://i.imgur.com/AwqiVGy.jpg

Repository

On Maemo Leste, nomweather is availabe as a package in the repository:

sudo apt install -y nomweather

It registers a startup item and can be launched from the menu.

Compile

The following command assumes you satisfy the Qt5 depedencies neccesary:

cmake -Bbuild .
make -Cbuild -j2
./build/bin/nomweather

Notes

  • Would be nice to support desktop widgets (like OMWeather). Currently unclear how to do this in a preferably Qt-oriented manner.
  • When supporting desktop widgets, it is probably best to encapsulate this app's business logic (fetching of API data) in a daemon so both GUI (QtQuick) and the widgets can use that.
  • This application works fine on desktop too (e.g: Ubuntu), the fonts are a bit big though.
  • There is a config file located at ~/.config/nomweather/settings.json where it saves user preferences.
  • This application was made fast (a week) and shortcuts were taken in the QML code.
  • Currently only supports landscape mode
  • Loading the graph takes 100ms on droid4, should be fine on n900 too. If more speed is needed, more logic related to the graph can be moved to C++.
  • To-do: QML theming (other colors)