
Meteomatics
from twpayne
The Meteomatics MCP server allows AI agents to securely access Meteomatics weather data tools.
π₯π₯π₯FreeAdvanced setup
go-meteomatics
Package meteomatics implements a client for the Meteomatics
API.
Key features
- Idomatic Go API.
- Support for CSV, JSON, and PNG requests.
- Support for all location types.
- Support for all parameters.
- Support for all time types.
- Support for
context. - Support for Go modules.
- Well tested.
Example
func ExampleNewClient_simple() {
client := meteomatics.NewClient(
meteomatics.WithBasicAuth(
os.Getenv("METEOMATICS_USERNAME"),
os.Getenv("METEOMATICS_PASSWORD"),
),
)
cr, err := client.RequestCSV(
context.Background(),
meteomatics.TimeSlice{
meteomatics.TimeNow,
meteomatics.NowOffset(1 * time.Hour),
},
meteomatics.Parameter{
Name: meteomatics.ParameterTemperature,
Level: meteomatics.LevelMeters(2),
Units: meteomatics.UnitsCelsius,
},
meteomatics.Postal{
CountryCode: "CH",
ZIPCode: "9000",
},
&meteomatics.RequestOptions{},
)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(cr.Parameters)
for _, row := range cr.Rows {
fmt.Println(row.ValidDate)
fmt.Println(row.Values)
}
}License
MIT
This tool doesn't publish a standard install command β the repository README on GitHub covers its setup.
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.