Giter Club home page Giter Club logo

earth.api's Introduction

earth.api + hge.earth

If you are using a web3 compatible browser the domain is available at earth.api all other browsers can reach the data at hge.earth

Current REST API Routes

All data is sourced from the National Oceanic and Atmospheric Administration.

CH₄

Methane is a chemical compound with the chemical formula CH₄. It is a group-14 hydride, the simplest alkane, and the main constituent of natural gas. The relative abundance of methane on Earth makes it an economically attractive fuel, although capturing and storing it poses technical challenges due to its gaseous state under normal conditions for temperature and pressure. ~ Wikipedia

Monthly Data

API Path: api/ch4/monthly

Sample Data from 1983-07:

{
	"id": "198307",
	"year": 1983,
	"month": 7,
	"measurement": "1626.0",
	"unc": "2.3",
	"trend": "1635.6",
	"trend_unc": "1.5",
	"unit": "ppb"
},

CO₂

Carbon dioxide is a chemical compound occurring as a colorless gas with a density about 53% higher than that of dry air. ~ Wikipedia

Yearly Data:

api/co2/yearly

Sample Data for 1980:

 {
	"id": "1980",
	"year": "1980",
	"measurement": "338.91",
	"unc": "0.1",
	"unit": "ppm"
},

Monthly Data:

API Path: api/co2/monthly

Sample Data for 1980-01:

{
	"id": "198001",
	"year": 1980,
	"month": 1,
	"measurement": "338.55",
	"trend": "337.93",
	"unit": "ppm"
},

Weekly Data:

API Path: api/co2/weekly

Sample Data for 1974-05-19:

{
	"id": "19740519",
	"year": 1974,
	"month": 5,
	"day": 19,
	"measurement": "333.37",
	"unit": "ppm"
},

N₂O

Nitrous oxide, commonly known as laughing gas, nitrous, or nos, is a chemical compound, an oxide of nitrogen with the formula N ₂O. At room temperature, it is a colourless non-flammable gas, and has a slightly sweet scent and taste. At elevated temperatures, nitrous oxide is a powerful oxidiser similar to molecular oxygen. ~ Wikipedia

Yearly Data:

API Path: api/n2o/yearly

Sample Data from 2001:

{
	"id": "2001",
	"year": "2001",
	"measurement": "0.71",
	"unc": "0.11",
	"unit": "ppb"
},

SF₆

Sulfur hexafluoride or sulphur hexafluoride is an extremely potent and persistent greenhouse gas that is primarily utilized as an electrical insulator and arc suppressant. ~ Wikipedia

Yearly Data:

api/sf6/yearly

Sample Data from 1998:

 {
	"id": "1998",
	"year": "1998",
	"measurement": "0.20",
	"unc": "0.004",
	"unit": "ppt"
},

Monthly Data:

api/sf6/monthly

Sample Data from 1997-07:

{
	"id": "199707",
	"year": 1997,
	"month": 7,
	"measurement": "4.00",
	"unc": "0.005",
	"trend": "4.01",
	"trend_unc": "0.004",
	"unit": "ppt"
},

Resources

earth.api's People

Contributors

gndclouds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tiny-factories

earth.api's Issues

Create refactor GHG child page path into a component

In the GHG Weekly, Monthly, and Yearly pages, refactor the following into a component.

  const { asPath } = useRouter();
var afterWithout = asPath.substr(1, asPath.lastIndexOf("/"));
  const DataRouteURL = afterWithout;
  if (error) return <div>Failed to load</div>;
  if (!data) return <Layout>LOADING</Layout>;

Pages that will need to be updated

  • /co2/weekly
  • /co2/monthly
  • /co2/yearly
  • /ch4/monthly
  • /sf6/monthly
  • /sf6/yearly
  • /n2o/monthly
  • /n2o/yearly

And update GHG index pages

  • /sf6/monthly
  • /sf6/yearly
  • /n2o/monthly
  • /n2o/yearly

Update component/codeblock.js

Update component/codeblock.js

Prize Bounty

[comment]: # List the token type (ETH/ERC-20) and amount.

Challenge Description

On the landing page, we have a code block that allows anyone to toggle between our current APIs. We need to update this block to:

  • Include all APIs in the dropdown
  • Example code and example response should change after the code is selected.
  • The API route (shown as /api/co2/2002 in the MockUps) should also act as a search field in which you manually type the route and get one result returned.
  • This block should also have a new child block without the dropdown selector which we can use across the website on pages for example.

MockUp for Landing Page

image

Mock Up for Other Pages

Uploading CleanShot 2022-09-07 at 17.40.07@2x.png…

Submission Requirements

  • Component can be used with all API routes
  • Can be TypeScript or JavaScript
  • Code will be reviewed by ENG Team

Judging Criteria

  • Will choose based on the first completed and code quality
  • Will view all submissions

Winner Announcement Date

Please plan to have judges from your organization (or others you choose) review the submissions as early as possible after the hackathon ends (or immediately upon submission if you set your submission deadline up to be first-to-submit) to ensure prompt winner announcement and payout.

Resources

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.