I figured out why I could not call the API. I now have a CSV file to work with so that is some progress. I now need to find a way to compile C++ code into a Python module using pybind11.

  • Write the performance-critical parts of the logic (e.g., the actual adjustment of PV estimates based on tilt, azimuth, capacity, etc.) in C++ for speed and efficiency.

  • The real-time data adjustments (like changes in tilt, azimuth, capacity) are performance-sensitive, you can implement the data processing algorithm in C++ and return the results to Python, which will handle the visualization.