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
bundleENTER. This installs the correct libraries
- Edit the
resources/OpenStudio_Standards.xlsxfile - Open a command prompt inside the top-level openstudio-standards directory
- Run
rake build:standardsto createOpenStudio_Standards.json - Check the changes in
OpenStudio_Standards.jsonto make sure they reflect what you added/ modified inOpenStudio_Standards.xlsx - Run
rake test:check_validityto check for errors inOpenStudio_Standards.json. Fix any errors. - Commit both the
OpenStudio_Standards.xlsxandOpenStudio_Standards.jsonat the same time.
- Open a command prompt inside the top-level openstudio-standards directory
- Run
rake build:template_models. This creates a directory calledtemplateswhich will contain the resulting .osms.
build/contains theOpenStudio_Standards.json, which is exported viarake build:standardslib/contains libraries of methods used for accessing the data inOpenStudio_Standards.jsonfrom 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_modelstest/contains automated tests that checkOpenStudio_Standards.jsonviarake test:check_validity
- Update all Ruby code to conform to Rubocop style rules
- Add additional export formats such as gbXML