This repository contains the data used by OpenStudio to create and use standards for constructions, lighting, occupancy, ventilation, and other building related items. Standards data is defined in a spreadsheet and then exported to JSON format via scripts. Each version of OpenStudio will come with a JSON export of the current version of this data. Several measures also use this exported data.
This repository is meant for common, generic data that is widely used. It is not meant for user or project specific data. Users may fork this repository to add their own information to the standards spreadsheets. This custom data can then be exported to JSON format and accessed as a resource in user specific measures.
- Open a command prompt inside the top-level openstudio-standards directory
- Run
bundle
ENTER. This installs the correct libraries
- Edit the
resources/OpenStudio_Standards.xlsx
file - Open a command prompt inside the top-level openstudio-standards directory
- Run
rake build:standards
to createOpenStudio_Standards.json
- Check the changes in
OpenStudio_Standards.json
to make sure they reflect what you added/ modified inOpenStudio_Standards.xlsx
- Run
rake test:check_validity
to check for errors inOpenStudio_Standards.json
. Fix any errors. - Commit both the
OpenStudio_Standards.xlsx
andOpenStudio_Standards.json
at the same time.
- Open a command prompt inside the top-level openstudio-standards directory
- Run
rake build:template_models
. This creates a directory calledtemplates
which will contain the resulting .osms.
build/
contains theOpenStudio_Standards.json
, which is exported viarake build:standards
lib/
contains libraries of methods used for accessing the data inOpenStudio_Standards.json
from a Measurereference/
contains reference materials, which are not used in the main workflowresources/
contains theOpenStudio_Standards.xlsx
, which is the data entry pointscripts/
contains loose scripts which may be helpful but are not used in the main workflowtemplates/
contains the OpenStudio template models, generated viarake build:template_models
test/
contains automated tests that checkOpenStudio_Standards.json
viarake test:check_validity
- Update all Ruby code to conform to Rubocop style rules
- Add additional export formats such as gbXML