https://github.com/kgelli/python-iot-raspberry-pi
https://github.com/kgelli/python-iot-raspberry-pi
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kgelli/python-iot-raspberry-pi
- Owner: kgelli
- Created: 2021-07-29T17:01:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-30T13:07:03.000Z (almost 4 years ago)
- Last Synced: 2024-07-27T04:39:07.368Z (11 months ago)
- Language: Python
- Size: 4.92 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iot_rpi
# DHT library terminal commands
sudo apt-get install git-core
git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHT
sudo apt-get install build-essential python3-dev
sudo python3 setup.py install
# Camera library terminal commands
sudo apt-get install python-picamera
# Thingspeak library terminal commands
sudo pip install thingspeak
sudo pip3 install thingspeak
# Taking a Picture in terminal To capture the picture, type the following command in the terminal.
raspistill -o pic.jpg
## This will capture the image after 5 seconds. You will also see a preview while capturing the picture or video if you are using an external or any other device connected through the HDMI cable. If you are controlling your Raspberry pi through the Remote connection, then you will not see the preview window. If you want to capture the picture after some specific time, then use the following command. Enter the time in milliseconds after ‘-t’.
raspistill -t 10000 -o pic1.jpg
#### If you just want the preview. Then use the below command
raspistill -p –o## Recording a video with Raspberry pi camera module To record a video, type the following command in the terminal. It will record a video of 5 seconds. The video will be saved in the ‘.h264’ format.
raspivid -o video.h264