Closed StefaE closed 3 years ago
@StefaE Thanks for catching this!
Per the request docs, changing the post in base.py
L52
post(url, json=data)
should resolve it. Can you give that a try? PRs are welcome if you get a chance. 😃
nope - you need add authentication to the url (you do that for get, but not for post) and you need header Content-type. I'll make a code proposal later this week.
I see the auth missing now. Please try out the branch I just created.
Description
RooftopSite.post_measurements() doesn't appear to work. Thanks to some kind help on the solcast forum, following three issues were identified:
headers={ ‘Content-Type’:‘application/json’ }
is neededWhat I Did
see forum thread for my trial and the code which eventually resolved it.
That said: Thanks for your providing the library in the first place. I'm new to requests, so it gave me a great starting point and woking get requests in a breeze.