An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Weather extension for [Glance](https://github.com/glanceapp/glance)
[![Build Status](https://github.com/MrExplode/glance-weather/actions/workflows/build.yml/badge.svg)](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
```