• User Guide
  • Calculation
  • Automation
  • Web API
  • Validation
  • Contact Us
Search Results for

    Show / Hide Table of Contents
    • Introduction
      • Acquiring your API token
      • Endpoints on API website
      • View API schema
      • SolarFarmer API versions
    • –––––––––––––––––––
    • Endpoints
      • 'About' endpoint
      • 'SolarPosition' endpoint
      • 'ModelChain' endpoint
      • 'ModelChainAsync' endpoint
      • 'Service' endpoint
      • 'TerminateModelChainAsync' endpoint
    • Tutorials
      • Introduction
      • Python environment
      • Generate input files from desktop
      • 'About' endpoint tutorial
      • 'SolarPosition' endpoint tutorial
      • 'ModelChain' endpoint tutorial
      • 'ModelChainAsync' endpoint tutorial
      • 'Service' endpoint tutorial
      • 'TerminateModelChainAsync' endpoint tutorial
    • –––––––––––––––––––
    • Troubleshooting
      • Common Problems
      • Validation Service
    • API Class References
      • SolarFarmerApi.Client
        • AnnualEnergyYieldResults
        • DiffuseModel
        • EnergyCalculationInputs
        • EnergyCalculationOptions
        • EnergyYieldResults
        • EnergyYieldResultsForMonth
        • EnumTechnology
        • IAMModelType
        • IAMModelTypeForOverride
        • IAMParameters
        • IndexedObject3D
        • Inverter
        • InverterEfficiencyModelType
        • InverterEfficiencyPoints
        • InverterInput
        • InverterSpecification
        • Layout
        • Location
        • LossTreeEffects
        • LossTreeEntry
        • LossTreeResultForMonth
        • MeteorologicalCondition
        • MeteorologicalConditionsDataset
        • MiniSimpleTerrainDto
        • MissingMetDataMethod
        • ModelChainAsyncQueryResponse
        • ModelChainResponse
        • ModuleGeometry
        • ModuleIndexRange
        • ModuleSpecification
        • ModuleString
        • MountingTypeSpecification
        • MpptLimits
        • PanFileSupplements
        • PointInLossChain
        • ProblemDetails
        • PVPlant
        • PVsystDiodeModelParameters
        • QuadDouble
        • Rack
        • Response
        • Response2
        • Response3
        • RuntimeStatus
        • SimpleTerrainDto
        • SolarPositionDto
        • SolarPositionRequest
        • SolarPositions
        • SystemAttributes
        • TerrainRowDto
        • TerrainRowStartEndColumnsDto
        • ThreeEfficiencyCurves
        • Tracker
        • TrackerSystem
        • Transformer
        • TransformerLossModelTypes
        • TransformerSpecification
        • Vector3Double
    • Release Notes
      • API v2 (2.0.2) (7 September 2023)
      • API v1 (0.2.254) (11 April 2023)
      • API 0.2.249 (22 November 2022)
      • API 0.2.242 (28 July 2022)
      • API 0.2.223 (3 March 2022)
      • API 0.2.64 (23 August 2021)
      • API 0.2.51 (2 June 2021)

    Web API Tutorials

    These are a few simple tutorials for getting you up and running with SolarFarmer's web API.

    These tutorials use the Python scripting language (see https://www.python.org/). You can call the web API using any language you like as long as it supports calls to web APIs.

    The SolarFarmer web API has various endpoints (see https://en.wikipedia.org/wiki/Web_API for background information on web APIs). Each tutorial will focus on one endpoint. The ModelChain endpoint is the one that is used for running energy calculations.

    Requirements for tutorials

    You will need a personal API token to use the SolarFarmer web API. See Acquiring your Web API Token for more information on acquiring your API token.

    You will also need to install and set up a Python environment on your machine. See Setting up a Python Environment for more information on this.

    About endpoint tutorial

    • About Endpoint Tutorial

    Start with this simple tutorial. It uses the About endpoint of the API to return details about the API version.

    It will help you make sure that your API token is working and that you have access to the web API.

    SolarPosition endpoint tutorial

    • SolarPosition Endpoint Tutorial

    Another simple tutorial. It uses the SolarPosition endpoint to use the API to calculate the solar position using the latitude, longitude, elevation and time input parameters that you provide.

    ModelChain endpoint tutorial

    • ModelChain Endpoint Tutorial

    This is the endpoint used to run synchronous energy calculations - use it for 2D calculations. In this tutorial you will run a 2D calculation.

    ModelChainAsync endpoint tutorial

    • ModelChainAsync Endpoint Tutorial

    This is the endpoint used to run asynchronous energy calculations - use it for 3D calculations and more complex 2D calculations. In this tutorial you will run a 3D calculation.

    Service endpoint tutorial

    • Service Endpoint Tutorial

    This uses the Service endpoint to return the API services that the user has access to. Use this tutorial to list the services that you have available to you.

    TerminateModelChainAsync endpoint tutorial

    • TerminateModelChainAsync Endpoint Tutorial

    This is the endpoint to use to terminate a calculation that was started using the ModelChainAsync endpoint. In this tutorial you will terminate a 3D calculation that is already running.

    In This Article
    Back to top DNV SolarFarmer Home