Skip to content

gcclinux/WeatherWidget

Repository files navigation

EasyWeatherWidget

A compact weather widget for your desktop.

Screenshots

System Tray Menu

Win32 Task Manager Menu

Opacity / background transparency - (1-5 Cities)

Win32 Transparent Background

Weather Widget Location Settings

Weather Widget Settings

Weather Widget Appearance Settings

Weather Widget Settings

Download

You can download the latest pre-compiled binaries for Windows and Linux from the GitHub Releases page.

Compilation

Windows

    $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

Windows MSI Package

 .\installer\build-msi.ps1 -Version "0.0.4" -SkipSign

Linux

  1. Install dependencies:
    sudo apt-get update && sudo apt-get install -y libgl1-mesa-dev xorg-dev
  2. Build:
    make build

Note: The first build may take several minutes as it compiles graphical dependencies (CGO). My updated Makefile includes the -v flag so you can monitor progress.

Config example

{
  "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.23,
      "longitude": 21.01,
      "timezone": "Europe/Warsaw"
    }
  ],
  "refreshInterval": 30,
  "cornerPosition": "top-right",
  "customX": -819,
  "customY": 99,
  "apiConfig": {
    "provider": "openweathermap",
    "apiKey": "YOUR_API_KEY"
  }
}

Windows Config location

Get-Content "$env:APPDATA\WeatherWidget\WeatherWidget\config.json"
or
type "$env:APPDATA\WeatherWidget\WeatherWidget\config.json"
cat $HOME/.config/WeatherWidget/WeatherWidget/config.json
or
more $HOME/.config/WeatherWidget/WeatherWidget/config.json

About

Your Desktop. Your Weather, Your Time. A compact, transparent weather widget that lives on your desktop. Monitor up to 5 cities at a glance with a beautiful, always-on-top overlay.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors