-
Notifications
You must be signed in to change notification settings - Fork 13
How to Configure an Alias
Maggie Sullivan edited this page Jun 27, 2023
·
1 revision
Alfalfa Sites are generally controlled by using their id
which is randomly generated upon their creation. However, in some cases it is important to be able to point external services to a specific site which may change over time. This can be accomplished through the use of aliases.
An Alias is a plaintext string which can be pointed to a Site's id
.
Setting up an alias:
# Upload a model to alfalfa
site_id = client.submit(model_path)
# Set alias "target" to point to site_id
client.set_alias("target", site_id)
Getting site_id
from an alias:
# Get site_id from alias "target"
site_id = client.get_alias("target")
- 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