3 of 3 people found this helpful
You will need to specify the full path the the pi_weather.py script. The easiest way to locate that file is to type "sudo find / -name pi_weather.py" (without the quotes) and that should return the complete path to the file. You would then substitute that in your command line, something along the lines of "sudo python /usr/local/scripts/pi_weather.py" and change the /usr/local/scripts to the path you found.
2 of 2 people found this helpful
Which guide are you following? Is it this one: Raspberry Pi Weather Station Project ?
Your command will only work if the "pi_weather.py" script is in the current folder. As jgerred said, try to locate it, and provide the full path when executing the command, or use "cd" to change into that directory first.
The guide linked above, mentions the following:
6. On the Pi Desktop you will find a Python project file named “pi_weather.py” which we need to edit and update with the Initial State unique Access Key.