weather: add plugin

This plugin fetches weather information in the same fashion as
Xmobar's Weather plugin. It fetches from NOAA's website (by default)
using their standard format for reporting data from weather stations
around the world.

Also enable in CI.

TODO:

Fill out the example configuration in the docfile.
This commit is contained in:
Ben Boeckel 2025-02-08 19:16:08 +01:00
parent 082ab41598
commit 11f7f38a3c
12 changed files with 1187 additions and 0 deletions

View file

@ -93,6 +93,9 @@ EXTERN_MODULE(niri_language);
#if defined(HAVE_PLUGIN_niri_workspaces)
EXTERN_MODULE(niri_workspaces);
#endif
#if defined(HAVE_PLUGIN_weather)
EXTERN_MODULE(weather);
#endif
#if defined(HAVE_PLUGIN_xkb)
EXTERN_MODULE(xkb);
#endif
@ -232,6 +235,9 @@ static void __attribute__((constructor)) init(void)
#if defined(HAVE_PLUGIN_niri_workspaces)
REGISTER_CORE_MODULE(niri-workspaces, niri_workspaces);
#endif
#if defined(HAVE_PLUGIN_weather)
REGISTER_CORE_MODULE(weather, weather);
#endif
#if defined(HAVE_PLUGIN_xkb)
REGISTER_CORE_MODULE(xkb, xkb);
#endif