Hi Guys, I am trying to make the CSVdump work, but I'm totally new to Python, and I'm stuck. I have no colleagues that are familiar with Python so I hope that someone in here could be kind and help a newbie. I am using R for statistics, so coding is not foreign to me. I have all my sensors registered in "my garden". I have installed Python and it is running. I have copied the scripts ApiCloud, CSVdump and Main into separate files and saved them. I have registered an Api key, and got the credentials in an email. I have inserted them in the ApiCloud, and I have inserted my username and password.
- Is my username my email address, meaning that "client_id" and "username" is the same?
- I am really insecure what and how to change the CSVDump.
- I get no error messages when running ApiCloud or CSVDump, but this message when running the Main:
Loggin Failure: invalid_request
Traceback (most recent call last):
File "\ ...this is just my file path... \Python\main.py", line 8, in
dumpAllFlowerPower(api, "1-Feb-2016 11:30:00", "10-Feb-2016 11:30:00")
File "\ ...this is just my file path... \Python\CSVDump.py", line 9, in dumpAllFlowerPower
for location in sensorDataSync["locations"]:
TypeError: 'bool' object is not subscriptable
So that's the status right now. How to proceed? Can someone guide me through, maybe over email or phone to not disturb the forum too much with all my newbie questions.