Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.02 KB

README.md

File metadata and controls

48 lines (36 loc) · 1.02 KB

WwvEx

Provides a simple way to fetch the wwv.txt solar report from the NOAA.

This library performs the fetching of the solar report from the NOAA and parses it into a map for use in your application. The raw report is also maintained if you want to see the human readable version.

Installation

If available in Hex, the package can be installed by adding wwv_ex to your list of dependencies in mix.exs:

def deps do
  [
    {:wwv_ex, "~> 0.1.0"}
  ]
end

Usage

wwv_data = WwvEx.fetch()

The wwv_data result should look similar to this:

{:ok,
 %{
   ai: "8",
   index_dt: "11 July",
   issued_dt: "2019 Jul 12 1210 UTC",
   ki: "2",
   ki_dt: "1200 UTC on 12 July",
   raw_report: "...",
   sfi: "67"
 }}

Documentation

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/wwv_ex.