Skip to content

A library written in Scala for communicating with the SMHI Open Data API

License

Notifications You must be signed in to change notification settings

johannesnydahl/smhi-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMHI-API

This is a library written in Scala 3 to be used for communicating with the SMHI Open Data API. It uses uPickle for JSON serialization and requests-scala for HTTP communication with the API.

This library was written by me to improve my Scala knowledge and learn how to publish a package. As a result, the library will probably never be production-ready. My goal is to implement at least two API endpoints.

It is recommended to use this library together with the Official documentation from SMHI.

If you have any improvement ideas or other feedback, please leave an issue.

Currently supported API Endpoints

  • ⛔ Meteorological Observations
  • ⛔ Meteorological Forecasts (Work in progress)
  • ⛔ Meteorological Analysis MESAN
  • ⛔ Meteorological Analysis STRÅNG
  • ⛔ Hydrological Observations
  • ⛔ Hydrography
  • ⛔ PTHBV
  • ⛔ Oceanographic Observations
  • ⛔ Radar
  • ⛔ Lightning Strikes
  • ⛔ Lightning Archive
  • ⛔ Lightning Sensor Data
  • ⛔ Ice Maps
  • ⛔ Algae Maps
  • ⛔ Impact based weather warnings
  • ⛔ Archived Model and Analysis data
  • ⛔ Fire risk forecasts
  • ⛔ Fire risk analysis

How to build this library yourself

To build SMHI-API yourself, you need Git, Scala 3.4.2 and sbt.

Clone this repo on to the building machine using Git. Run sbt assembly in the root directory. This will produce a so-called "fat jar" - containing the library and its dependencies - located in target/scala-3.4.2. This jar should then be placed on classpath for the library to be used in your code.

Thanks to sbt-assembly for the sbt plugin used for building fat jars.

About

A library written in Scala for communicating with the SMHI Open Data API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages