DHT11/DHT22 with Raspberry Pi


#251

I am almost now I only get the error below.

pi@raspberrypi:~ $ bash /home/pi/python/tempsensor.py
import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/358. import-im6.q16: unable to open X server’ @ error/import.c/ImportImageCommand/358.
import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/358. import-im6.q16: unable to open X server’ @ error/import.c/ImportImageCommand/358.
/home/pi/python/tempsensor.py: line 6: syntax error near unexpected token 30' /home/pi/python/tempsensor.py: line 6:time.sleep(30) #Sleep to allow wireless to connect before starting

I also created my own sensor in Cayene for my password and that sort of thing.


#252

root@raspberrypi:~# sudo su
root@raspberrypi:~# cd /home/pi/python
root@raspberrypi:/home/pi/python# import tempsensor.py
import-im6.q16: unable to open X server `’ @ error/import.c/ImportImageCommand/358


#253

Looks like you are not running the code correctly. Go up to the first post and read the Code section again. In the end you need to save the code to a file and then run it with python /path/to/file.py