Skip to content

janvrska/weather-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather widget

Plotting of local weather from Wunderground stations (PWS)

weather_widget

Build prerequisites

  • Installed vcpkg and these packages
    • vcpkg install imgui
    • vcpkg install implot
    • vcpkg install glew
    • vcpkg install cpr
    • vcpkg install nlohmann_json

CMake parameter: -DCMAKE_TOOLCHAIN_FILE=path to vcpkg directory

Third-party libraries and their usage:

  • ImGUI - GUI for whole application
  • ImPlot - custom plots for weather (temperature, humidity)
  • Glew - needed by ImGUI, not using explicitly
  • Cpr - requesting Wunderground API over HTTP
  • Json - deserializing JSON from request body

Usage:

For usage is necessary to be registered on Wunderground and then generate API key

  1. Obtain Wunderground API key ↑
  2. Find some near PWS in their map
  3. Copy that PWS ID (station id), for example IPRAGU386
  4. Open this app
  5. Paste API key and PWS ID to this in-app Settings
  6. Click "Save"
  7. Temperature and Humidity plot should appear

Screenshots:

Widget is by default semi-transparent and always-on-top, and therefore can be seen pernamently.

weather_widget weather_widget_transparent weather_widget_full

Tested on Windows 10, 1920x1080px