hi before the line
data = json.loads(r.text)
Please add this line
print r.text
and tell me the output error again over screenshot
hi before the line
Please add this line
and tell me the output error again over screenshot
Hi,
In your line.
There are two mistakes
Done… but still the same error
Hi,
another spelling mistake is digialRead is typed which should be digitalRead
ohh yeah… thnx
now it is showing invalid api key
It is already enabled , and i have checked the api key.
Also check if your bolt id is correct
i have checked it sir. it is correct
Sir it is working.
Thank you so much.
You are welcome
sir how to remove this error?
I had received the same error while i ran the program.
Make sure that when you run the program you run it using the below command
sudo python3 temp_sys.py
I had simply typed in python instead of python3 and hence the error.
Python language is a very sensitive language for indentation, it has caused confusion for many beginners. Putting in an extra space or leaving one out where it is needed will surely generate an error message . Some common causes of this error include:
The error message IndentationError: expected an indented block would seem to indicate that you have an indentation error. It is probably caused by a mix of tabs and spaces. The indentation can be any consistent white space . It is recommended to use 4 spaces for indentation in Python, tabulation or a different number of spaces may work, but it is also known to cause trouble at times. Tabs are a bad idea because they may create different amount if spacing in different editors .