https://github.com/mrexplode/glance-weather
A Glance extension for Hungarian weather
https://github.com/mrexplode/glance-weather
Last synced: 11 months ago
JSON representation
A Glance extension for Hungarian weather
- Host: GitHub
- URL: https://github.com/mrexplode/glance-weather
- Owner: MrExplode
- License: mit
- Created: 2024-06-04T11:24:55.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-30T15:54:38.000Z (11 months ago)
- Last Synced: 2025-03-30T16:32:00.001Z (11 months ago)
- Language: Java
- Size: 188 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Weather extension for [Glance](https://github.com/glanceapp/glance)
[](https://github.com/MrExplode/glance-weather/actions)
This extension is similar in functionality to the built-in weather widget,
but the data is retrieved from local providers, thus more precise.
## Usage
I can't bother publishing the image, you have to build it first
```
1. clone the repository
2. docker build --tag= .
```
Docker Compose example:
```yaml
services:
weather-ext:
image:
container_name: weather-ext
restart: unless-stopped
environment:
WEATHER_ENDPOINT: # you have to know the weather API endpoint. I am not providing it to avoid legal problems.
CITY: # the city in lowercase
LATITUDE: # your approx. coordinates, used for daylight calculations
LONGITUDE: # ^^
TIMEZONE: # your timezone e.g. Europe/London
```
Now you can add the widget to your `glance.yml`:
```yaml
- type: extension
url: :8080
allow-potentially-dangerous-html: true
cache: 30s # adjust this as you want, don't go low, you might get restricted for api abuse
```