Setting up a Python environment for the tutorials
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.
Install Python on your machine:
- Download the latest Python installer from https://www.python.org/downloads/
- Some useful instructions also here: https://realpython.com/installing-python/, https://docs.microsoft.com/en-us/windows/python/beginners
Set up a development environment
You can edit Python files in all text editors, but using an integrated development environment (IDE) means you can take advantage of things like intellisense, error checking, debug support, etc.
- Visual Studio Code is a free IDE that is a good place to start. Download from https://code.visualstudio.com/
- You could also run the tutorials from a Jupyter notebook (https://jupyter.org/). These can be a really useful interactive development environment so worth trying too.
Install additional Python libraries
You'll also need the requests
(for sending HTTP requests) and
pandas
(for analysing data) libraries installing. Once you have Python installed,
run the following two commands in a command prompt to install these libraries.
python -m pip install requests
python -m pip install pandas
Using other scripts and programming languages
The example tutorials are written in Python. However, if you are familiar with other scripts or languages, and they support calls to web APIs, you are of course free to use these and use the Python examples as a guideline.
You can download the C# client code from the link at the top of https://solarfarmer.dnv.com/docs. This can be used to help you build C# applications that use the API.