https://github.com/kari/fmi
Go-kirjasto Ilmatieteen laitoksen säähavaintorajapinnalle
https://github.com/kari/fmi
go go-library golang weather
Last synced: 5 months ago
JSON representation
Go-kirjasto Ilmatieteen laitoksen säähavaintorajapinnalle
- Host: GitHub
- URL: https://github.com/kari/fmi
- Owner: kari
- License: mit
- Created: 2019-08-05T08:51:19.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-09-07T11:29:41.000Z (9 months ago)
- Last Synced: 2025-09-07T13:16:25.059Z (9 months ago)
- Topics: go, go-library, golang, weather
- Language: Go
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FMI
[](https://goreportcard.com/report/github.com/kari/fmi)
Tämä Go-kirjasto hakee Ilmatieteen laitoksen rajapintojen kautta viimeisimmät säähavainnot halutulle paikalle. Hyödyllinen esimerkiksi IRC-bottia varten.
## Käyttö
```go
import (
"fmt"
"github.com/kari/fmi"
)
func main() {
if weather, err := fmi.Weather("Turku"); err == nil {
fmt.Println(weather)
}
// Viimeisimmät säähavainnot paikassa Turku: lämpötila 18.5°C, puolipilvistä, heikkoa länsituulta 4 m/s (6 m/s), ilmankosteus 56%
}
```
Katso examples/ -kansiosta lisää esimerkkejä.
## Lähteet
* [Ilmatieteen laitoksen latauspalvelun pikaohje](https://ilmatieteenlaitos.fi/latauspalvelun-pikaohje)
* [BCIRC/py/fmi.py](https://github.com/Jonuz/BCIRC/blob/master/py/fmi.py)
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)
Open data from FMI used under [Creative Commons Attribution 4.0 International license](https://en.ilmatieteenlaitos.fi/open-data-licence)