A compact weather widget for your desktop.
System Tray Menu
Opacity / background transparency - (1-5 Cities)
Weather Widget Location Settings
Weather Widget Appearance Settings
Weather Widget Languages Settings
You can download the latest pre-compiled binaries for Windows and Linux from the GitHub Releases page.
$env:PATH = "C:\msys64\ucrt64\bin;" + $env:PATH; $env:CGO_ENABLED = "1"; gcc --version | Select-Object -First 1 go build -ldflags="-H windowsgui -s -w" -o weatherwidget.exe ./cmd/weatherwidget/
.\weatherwidget.exe .\installer\build-msi.ps1 -Version "0.0.6.0" -SkipSign- Install dependencies:
sudo apt-get update && sudo apt-get install -y libgl1-mesa-dev xorg-dev - Build:
make build
Note: The first build may take several minutes as it compiles graphical dependencies (CGO). My updated Makefile includes the
-vflag so you can monitor progress.
{
"dataSource": "remote_api",
"cities": [
{
"name": "Holambra",
"region": "BR",
"latitude": -22.6332,
"longitude": -47.0545,
"timezone": "America/Sao_Paulo"
},
{
"name": "Edinburgh",
"region": "UK",
"latitude": 55.95,
"longitude": -3.19,
"timezone": "Europe/London"
},
{
"name": "Warsaw",
"region": "PL",
"latitude": 52.231958,
"longitude": 21.006725,
"timezone": "Europe/Warsaw"
}
],
"refreshInterval": 10,
"cornerPosition": "top-right",
"monitorIndex": 0,
"opacity": 25,
"locale": "en-GB",
"apiConfig": {
"provider": "openweathermap",
"apiKey": "YOUR_API_KEY"
}
}type $env:APPDATA\WeatherWidget\WeatherWidget\config.jsoncat $HOME/.config/WeatherWidget/WeatherWidget/config.jsonIf the app appears in your system tray (or is running in the background) but clicking Settings or Show Weather does nothing, it usually means the application failed to create the UI window.
You can verify this by running the application from the command line with the -debug flag to enable logging to a file:
.\weatherwidget.exe -debugThen, check the log file at:
type $env:APPDATA\WeatherWidget\debug.logIf you see the following error:
Cause: APIUnavailable: WGL: The driver does not appear to support OpenGL
The Fix: This happens on "clean" Windows installations (using the Microsoft Basic Display Adapter) or in Virtual Machines because the system lacks proper graphics drivers to support the required OpenGL 2.0+ context.
There are two ways to fix this:
-
Install Graphics Drivers: Install the proper Intel/AMD/NVIDIA graphics drivers for your system.
-
Use Mesa3D Software Renderer (Portable Fix): If installing drivers is not an option:
- Download a pre-compiled Mesa3D for Windows package (e.g., from fdossena.com).
- Extract the 64-bit
opengl32.dllfile. - Place that
opengl32.dllfile directly in the same folder as yourweatherwidget.exe.
Windows will automatically use this DLL to translate OpenGL hardware calls into software rendering, allowing the app to work flawlessly on any PC regardless of graphics drivers.
Note: A -software flag is also available (.\weatherwidget.exe -software) which instructs the Fyne framework to prefer software rendering, but this still requires basic OpenGL driver availability at the OS level.




