Questions around the carbon-aware-sdk for a Java Client #64
Unanswered
RitikaMathur19
asked this question in
Carbon Aware SDK
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team ,
I specialize in Java and Azure and am really passionate about Sustainability. This sdk is great step towards achieving Sustainable IT and I want to leverage it in the maximum possible way.
Thanks for all your efforts in putting this together and working hard on it!
I had some queries about the usage of the same:
I want to use the carbon-aware-sdk and use it in my Java API and then if possible promote it to Azure App Service.
I am able to set it up on local(http://localhost:5073) and run the swagger UI providing the various endpoints. But facing some issues:
2)How can i check the forecast of a location if i want to run my batch in future sometime, may be next day/month ? Is it possible?
I am getting 400 for any data I enter in this endpoint. The example itself is giving 400. Below is my endpoint
http://localhost:5073/emissions/forecasts/current?location=westus&dataStartAt=2022-03-01T15%3A30%3A00Z&dataEndAt=2022-03-01T18%3A30%3A00Z&windowSize=30
Getting response as below :
{
"title": "ArgumentException",
"status": 400,
"detail": "ForecastDataSource is not configured",
"traceId": "00-025df519a8b0097c80391f0a83b0313d-e6d39626106ca933-01",
"errors": {}
}
How to configure ForecastDataSOurce? Looking for some help here as we are integrating in our API.
3)I want to run this in Azure , as a function app/app service . Any suggestions what would be the easiest way to do so?
Any suggestions/ views are appreciated.
Beta Was this translation helpful? Give feedback.
All reactions