Skip to content

Matipolit/Anyrun-Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anyrun-Weather

In action:

image

Usage:

Compilation:

Compile with cargo build --release and copy the resulting .so file from target/release/libanyrun_weather.so to ~/.config/anyrun/plugins

Configuration:

Write the config in the following fashion:

Config file:
~/.config/anyrun/weather.ron

Config format:

Config(
  use_ip_location: {true|false},
  prefix: "{your preferred prefix}",
  weather_location: GeoLocation(
    lon: {longitude for your location}, 
    lat: {latitude for your location}
  ),
  openweatherapi_key: "{your OpenWeatherApi key}",
  units: {your preferred units: Metric|Imperial|Standard}
)

Example:

Config(
  use_ip_location: false,
  prefix: "wttr",
  weather_location: Coord(
    lon: 0.0, 
    lat: 0.0
  ),
  openweatherapi_key: "{removed for privacy}",
  units: Metric
)

About

OpenWeatherApi plugin for Anyrun

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages