FMI
Tools to query Finnish Meteorological Institutes open data API. Can be used
seldom with cli or http server or as a library.
Usage
CLI:
Usage: fmi-cli <place>
<place> Place where to get forecast for. (Required)
Server can be started with a command and it will listen for connections to port
8080
. API:
Replace <place>
for a finnish municipality and you'll get the forecast for the
next 72 hours.
Build
Requirements: go and just.
To build call just with build:
just build
Command will create fmi-cli
and fmi-server
under bin
folder.
For specific target
To build for specific target command build-target with the target platform as an
argument:
just build-target linux amd64
Above command will create folder target/linux_amd64
where are the compiled
programs available.
Valid combinations can be checked from
Go documentation.