-
Notifications
You must be signed in to change notification settings - Fork 13
How to Install Alfalfa Client
Maggie Sullivan edited this page Jun 13, 2023
·
1 revision
This repo is packaged and hosted on PyPI here. This package can be installed with pip using the following command:
pip install alfalfa-client
Once the package is installed, you can load it into any project and instantiate client or historian objects as follows:
import alfalfa_client.alfalfa_client as ac
import alfalfa_client.historian as ah
client = ac.AlfalfaClient
historian = ah.Historian
All alfalfa-client code is available on a github repository here. This repository is setup to use:
- pyenv for managing python versions
- poetry for managing environment
- pre-commit for managing code styling
- tox for running tests in isolated build environments
Assuming poetry is installed and the necessary python versions are installed, run the following commands:
git clone https://github.com/NREL/alfalfa-client.git
cd alfalfa-client
poetry run tox
This may take some time resolving on the initial run, but subsequent runs should be faster.
- Getting Started with Model Measures Part 1: Creating Inputs and Outputs
- Getting Started with Model Measures Part 2: Creating Actuators
- Getting Started with EnergyPlus Measures Part 1: Creating Inputs and Outputs
- Getting Started with EnergyPlus Measures Part 2: Creating Actuators
- How to Configure an OpenStudio Model
- How to Configure Measures for Use with Alfalfa Ruby Gem
- How to Create Inputs and Outputs With Measures
- How to Run URBANopt Output Models in Alfalfa
- How to Migrate EnergyPlus Python Plugins
- How to Integrate Python based Electric Vehicle Models with OpenStudio Workflows
- How to Locally Test OpenStudio Models
- Required Structure of OpenStudio Workflow
- List of Automatically Generated Energyplus Points
- Alfalfa EnergyPlus Mixin Methods
- Getting Started with Uploading and Running a Model Using Python
- Getting Started with Uploading and Running a Model Using the UI
- How to Install Alfalfa Client
- How to Preprocess and Upload a Model
- How to Step Through a Simulation
- How to View Historical Data in Grafana
- How to Configure an Alias
- How to Troubleshoot Models