GithubHelp home page GithubHelp logo

pnnl / asset-score-api-test-harness Goto Github PK

View Code? Open in Web Editor NEW
1.0 6.0 1.0 180 KB

This repository contains sample code written in PHP that allows you to access the Asset Score API.

Home Page: https://api.labworks.org/api

PHP 100.00%

asset-score-api-test-harness's Introduction

Asset Score

The Department of Energy Building Energy Asset Score (Asset Score) is a national standardized tool for evaluating the physical and structural energy efficiency of commercial and multifamily residential buildings. The scoring tool will store user-provided data and generate an asset score and system evaluation for your building envelope and mechanical and electrical systems. The tool will also identify cost-effective upgrade opportunities and help you gain insight into the energy efficiency potential of your building.

API Sample Code

This repository contains sample code written in PHP that allows you to access Version 2 of the Asset Score API. The sandbox server for developers where you can experiment is https://api.labworks.org. The API documentation is at https://api.labworks.org/api.

This code can either be used as sample PHP code to call the API, or to run this as a hosted test harness, clone and build the Docker container. Running the provided container will serve up a fully functioning test harness website.

License

This software has no license. It is free for all to use however they choose.

Running the test harness as a container

Requirements

  • Docker (version 1.12.2 works, others may also)

Building

  • Perform a git clone of this repo
  • cd into the repor directory
  • Build
    • docker build -t api-test-harness .
  • Run
    • docker run -p 8000:80 -d -t --name test-harness api-test-harness
  • Stop
    • docker stop test-harness
  • Delete
    • docker rm /test-harness

Running the sample code stand alone

Requirements

  • PHP >= 5.6
  • Composer
  • Guzzle (will be installed via composer using the provided composer.lock|json files)

asset-score-api-test-harness's People

Contributors

edward-ellis avatar makopov avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tubbz-alt

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.