uajqq/weewx-davishealthapi

problem with davis_api_tool.py

Closed this issue · 1 comments

how can i solve this problem?

python3 davis_api_tool.py
  File "davis_api_tool.py", line 17
"api-secret": "x", #REPLACE THIS WITH YOUR API SECRET
            ^
SyntaxError: invalid syntax

image

python3 --version
Python 3.8.6

here is the fix... behind the value from api-key was an ',' missing.

parameters = {
  'api-key':'x', #REPLACE THIS WITH YOUR API KEY
  'api-secret':'x', #REPLACE THIS WITH YOUR API SECRET
  't':int(time.time())
}

I don't know to create an pull request...