Skip to content

john-b-yang/obvius-smap

Repository files navigation

sMAP Building Management Tool

Maintained by Gabe Fierro, Albert Goto, and John Yang

Installation + Setup

  1. "git clone" this repository onto your local machine, then change directory into this repository
  2. Fill out and create necessary authentication file:
    a. Fill out the fields in the "sample-auth.py" field.
    b. Rename this file to "auth.py"
    c. Place copies of this file in the "crawler" and "parser" folders
  3. Run "docker build -t smap:latest ." (Include the period).
    • Ensure the image was successfully generated from this Dockerfile by running "docker image ls" and checking for it.
  4. Run "docker run -it --name smap-container --rm smap".
    • Creates a container for running the code and commands listed below.

Download Command

python download.py -s <start date> -e <end date> -d(evices) -c(onfig)

  • Purpose: Returns data for all buildings + meters within the context of a single BMO (Building Management Online)
  • -s (YYYY-MM-DD): [Required] Start Date of Query
  • -e (YYYY-MM-DD): [Required] End Date of Query
  • -d: [Optional] If passed, program outputs a JSON file containing building + meter information
  • -c: [Optional] If passed, program outputs a Config (INI) file containing building + meter information
  • Example: python download.py -s 2019-04-01 -e 2019-04-03 | Returns all data for buildings + meters between April 1st, 2019, and April 3rd, 2019 (inclusive range)

Outputs:

  • If -d is passed, a "devices.json" file is created
  • If -c is passed, a "config.ini" file is created
  • A "data" directory is created containing the CSVs corresponding to building + meter data
  • The last lines of terminal output from running this script provides a summary of the:
    • Total number of requests
    • Number of failed requests because no data was found within the given date range.
    • Number of failed requests for other reasons.

Progress Track

  • Data Ingestion: Set up how building data is parsed, interpreted, and stored.

Relevant Links:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published