SMHY collects forecasts from YR.no and throws away all the crappy weather and shows you only the nice weather in an easy to digest format.
smhy.output.dir=/tmp/smhy
smhy.config.dir=classpath:config
smhy.assets.dir=classpath:assets/**
smhy.json.enabled=true
smhy.region=se/stockholm
smhy.provider=yr
smhy.forecasts.yr.useragent=smhy/1.0 github.com/janderssn/smhy
smhy.forecasts.yr.url=https://api.met.no/weatherapi/locationforecast/2.0/complete?altitude={altitude}&lat={latitude}&lon={longitude}
smhy.forecasts.smhi.useragent=smhy/1.0 github.com/janderssn/smhy
smhy.forecasts.smhi.url=https://opendata-download-metfcst.smhi.se/api/category/pmp3g/version/2/geotype/point/lon/{longitude}/lat/{latitude}/data.jsonThe locations smhy should collect forecasts from are defined in the locations.yml file.
- id: salanda
name: Salanda
region: se/stockholm
latitude: '59.91993'
longitude: '16.60655'
altitude: '62'
favorite: yesThe criterias smhy should use to score forecasts are defined in the conditions.yml file.
- id: salanda-perfect
location: salanda
score: 100.0
windDirectionMin: 160
windDirectionMax: 200
windSpeedMax: 4.0
windSpeedMin: 2.0
windGustMax: 6.0
daysOfWeek: [6, 7]
monthsOfYear: [4, 5, 6, 7, 8, 9]
hoursMin: 3
timeOfDayMin: 8
timeOfDayMax: 18SMHY is built and deployed to Fly.io using GitHub Actions. The following secrets need to be added in repository settings:
| NAME | DESCRIPTION |
|---|---|
| FLY_API_TOKEN | Fly.io API token for deployment |
| CODECOV_TOKEN | Codecov upload token |
| BETTERSTACK_HEARTBEAT_URL | BetterStack monitoring heartbeat endpoint |
| LOGTAIL_INGEST_KEY | Logtail log ingestion key |
java -jar target/*.jar --forecast --locations salanda alleberg