4.0.0 • Published 5 years ago

@datafire/carbondoomsday v4.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@datafire/carbondoomsday

Client library for CarbonDoomsDay

Installation and Usage

npm install --save @datafire/carbondoomsday
let carbondoomsday = require('@datafire/carbondoomsday').create({
  username: "",
  password: ""
});

.then(data => {
  console.log(data);
});

Description

A real-time RESTish web API for worldwide carbon dioxide levels.

Actions

co2_list

CO2 measurements from the Mauna Loa observatory.

This data is made available through the good work of the people at the Mauna Loa observatory. Their release notes say:

These data are made freely available to the public and the scientific
community in the belief that their wide dissemination will lead to greater
understanding and new scientific insights.

We currently scrape the following sources:

We have daily CO2 measurements as far back as 1958.

Learn about using pagination via the 3rd party documentation.

carbondoomsday.co2_list({}, context)

Input

  • input object
    • ppm number
    • date string
    • date__range string: Multiple values may be separated by commas.
    • ordering string: Which field to use when ordering the results.
    • page integer: A page number within the paginated result set.
    • limit integer: Number of results to return per page.

Output

  • output object
    • count required integer
    • next string
    • previous string
    • results required array

co2_read

CO2 measurements from the Mauna Loa observatory.

This data is made available through the good work of the people at the Mauna Loa observatory. Their release notes say:

These data are made freely available to the public and the scientific
community in the belief that their wide dissemination will lead to greater
understanding and new scientific insights.

We currently scrape the following sources:

We have daily CO2 measurements as far back as 1958.

Learn about using pagination via the 3rd party documentation.

carbondoomsday.co2_read({
  "date": ""
}, context)

Input

  • input object
    • date required string

Output

Definitions

CO2

  • CO2 object
    • date required string
    • ppm required string