Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shuienko/noclouds
Platform to monitor cloud cover and alert when sky is going to be clear
https://github.com/shuienko/noclouds
Last synced: about 2 months ago
JSON representation
Platform to monitor cloud cover and alert when sky is going to be clear
- Host: GitHub
- URL: https://github.com/shuienko/noclouds
- Owner: shuienko
- Created: 2023-12-05T11:36:33.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-22T20:21:00.000Z (6 months ago)
- Last Synced: 2024-10-08T19:41:09.498Z (3 months ago)
- Language: Go
- Size: 89.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# noclouds [![Docker Build and Push](https://github.com/shuienko/noclouds/actions/workflows/docker-image.yml/badge.svg)](https://github.com/shuienko/noclouds/actions/workflows/docker-image.yml)
Platform to monitor cloud cover and alert when sky is going to be clear.
## build
```
docker build -t noclouds .
```## deploy
Simply run as docker container.
```
docker run -it noclouds -e
```### Environment variables
- `MB_API_ENDPOINT` - Meteoblue Cloud API Endpoint. Default: `https://my.meteoblue.com/packages/clouds-1h?`
- `MB_API_KEY` - Meteoblue Cloud API Key. Default: `none`
- `MB_LAT` - Latitude of your chosen location. Default: `none`
- `MB_LON` - Longitude of your chisen location. Default: `none`
- `MB_ALT` - Altitude above the sea level. Default: `none`
- `TG_BOT_TOKEN` - Telegram bot token. Default: `none`
- `MAX_CLOUD_COVER` - Maximum acceptable percentage of clouds per layer. Default: `25`
- `NIGHT_START_HOUR` - All events will be taked into account starting from this hour if the day. Dafault: `22`
- `NIGHT_END_HOUR` - All events will be taken into account before this hour if the day. Dafault: `5`
- `NIGHT_HOURS_STREAK` - Weather will be considered as "good" only if NIGHT_HOURS_STREAK hours in a row weather is good. Default: `4`
- `CRON_EXPRESSION` - Background weather checks will be performed with this schedule. Default: `0 8,12,16,20 * * *`
- `CHAT_ID` - Telegram ChatID where all notifications will be sent. Default: `none`