Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

HowTo Ecosuite API

Guide for developers building integrations directly with Ecosuite.

This will help you get started on your first Ecosuite integration, from conceptual understanding to practical implementation. Foundationally it is useful to understand that under the covers, Ecosuite is implemented using SolarNetwork as it's data historian. To some degree, this can be considered an implementation detail which could be ignored. But! If you are dealing with a large and sophisticated integration, it will be useful to understand this more fully before you start developing. If you do wish to know more about SolarNetwork and the lower level APIs that it offeres, you can start that journey here. Otherwise, please carry on below as Ecosuite's own API will likely deliver what you need.

1. Understanding Ecosuite's API

The API provides RESTful endpoints for project and time-series data.

  • API Documentation: High-level introduction to capabilities like data analysis and automation.

  • OpenAPI Specification: Detailed technical schema for resources like media, storage, and user groups.

3. Test Your Calls

Before writing code, use interactive tools to verify and understand those requests fully:

  • Sample Payloads: Reference the OpenAPI docs to see example JSON requests for common tasks.

4. Implement and Develop: API Starter Pack

For rapid prototyping, use the Ecosuite API Starter Pack. This CLI tool automates data fetching and organizes outputs.

Requirements

  • Python 3.9+ (3.12 recommended)

  • Network access to https://api.ecosuite.io

Run the dependency install:

Authentication

The script uses a Bearer token. You can set this via environment variables:

  • ECOSUITE_TOKEN or ECOSUITE_API_TOKEN (Preferred)

  • ECOSUITE_USERNAME and ECOSUITE_PASSWORD

  • If neither is set, the script will prompt you interactively.

Running the Script

Execute the script and follow interactive prompts:

1

Project IDs

Enter a single ID, a comma-separated list, or provide a CSV file.

2

Date Range

Enter start and end dates in YYYY-MM-DD format.

3

Aggregation

Choose from: year, month, day, hour, 15minute, or 5minute.

Run the script:

Output Structure

Responses are saved as JSON files in the output/ directory, organized by <ProjectName> or _global. Each file includes a meta block with the original URL, parameters, and status code.

5. Reference: Common API Endpoints

The following endpoints are frequently used for data extraction:

Category
Endpoint
Label/Purpose

Project

/projects/{projectId}

Metadata

Energy

/energy/datums/projects/{projectId}

Aggregated time-series data

Readings

/energy/readings

Raw sensor readings

Forecast

/energy/datums/generation/predicted/

Forecasted generation (agg=day)

Weather

/weather/datums/projects/{projectId}

Weather time-series

Global

/events

Portfolio-wide event logs

Users

/users

User directory access

6. Support and Next Steps

  • Case Studies: Review applications like SolarQuant for machine learning examples.

Troubleshooting
  • 401/403: Token missing or lacks permissions.

  • 404: Invalid Project ID or visibility issues.

  • Rate Limits: If throttled, add delays between calls.

  • Contact: For direct assistance, email api@ecosuite.io.

Resources

Last updated