fmi

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2024 License: EUPL-1.2 Imports: 1 Imported by: 0

README

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:

  • /api/forecast/<place>

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.

Documentation

Overview

Package is a easy to use frontend for Finnish Meteorological Institutes Open Data API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forecast

func Forecast(place string) (forecast.Forecast, error)

Forecast gets weather forecast for given place for the next 72 hours.

Types

This section is empty.

Directories

Path Synopsis
cmd
fmi-cli command
fmi-server command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL