EcoTrack SDK Documentation

Welcome to the EcoTrack SDK documentation. This guide will help you integrate EcoTrack into your application to monitor and manage environmental data efficiently.

Introduction

EcoTrack SDK provides tools and APIs to integrate environmental data tracking into your applications. With EcoTrack, you can monitor carbon emissions, track renewable energy usage, and generate sustainability reports.

Installation

Prerequisites

  • Unity 2019.4 or later

  • .NET Standard 2.0 or later

Download

Download the latest version of the EcoTrack SDK from the official website.

Importing the SDK

  1. Open your Unity project.

  2. Go to Assets > Import Package > Custom Package.

  3. Select the downloaded EcoTrack SDK package.

  4. Click Import to add the SDK to your project.

Getting Started

Initializing the SDK

To start using the EcoTrack SDK, you need to initialize it in your project. Add the following code to your main script:

Configuration

Configure the SDK according to your needs. You can set various parameters like data update intervals, tracking preferences, and more.

Features

Carbon Emission Tracking

Track carbon emissions generated by different activities in your application. Use the following API to log emissions:

Renewable Energy Tracking

Monitor the usage of renewable energy sources in your application. Log energy usage with the following code:

Sustainability Reports

Generate sustainability reports based on the tracked data. You can customize the report parameters as needed:

API Reference

EcoTrackManager

Initialize

Initializes the EcoTrack SDK with your API key.

SetUpdateInterval

Sets the interval for data updates.

EnableCarbonTracking

Enables or disables carbon tracking.

LogCarbonEmission

Logs the amount of carbon emissions for a specific activity.

EnableEnergyTracking

Enables or disables renewable energy tracking.

LogEnergyUsage

Logs the amount of energy used from a specific source.

GenerateReport

Generates a sustainability report for the specified date range.

Support

For any issues or questions, please visit our support page or contact us at support@ecotrack.com.