Giter Site home page Giter Site logo

raspberrypi's Introduction

摄像头应用

# 截图
raspistill -o image.jpg

# 生成视频文件
raspivid -o myvideo.h264 -t 10000

# 安装vlc软件
sudo apt-get install vlc
# 启动http视频流
sudo raspivid -o - -t 0 -fps 30|cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8080}' :demux=h264  
# 视频流播放软件地址:  http://192.168.1.63:8080


## 监控软件motion




docker run -it --network host --rm balenalib/raspberry-pi-debian:build bash


raspi-config 
1. Advanced Options --> A3 Memory Split --> 256MB


curl http://www.linux-projects.org/listing/uv4l_repo/lpkey.asc | sudo apt-key add -
echo "deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/stretch stretch main" > /etc/apt/sources.list.d/jessie-backports.list
apt-get update
apt-get install uv4l uv4l-raspicam
apt-get install uv4l-raspicam-extras

apt-get install uv4l-decoder2 uv4l-encoder uv4l-renderer uv4l-server uv4l-webrtc uv4l-xmpp-bridge

apt-get install uv4l uv4l-server uv4l-raspicam uv4l-raspicam-extras
service uv4l_raspicam start
update-rc.d -f uv4l_raspicam enable

Video streaming from Raspberry Pi with UV4L
https://blog.domski.pl/video-streaming-from-raspberry-pi-with-uv4l/

安装docker:
https://blog.alexellis.io/getting-started-with-docker-on-raspberry-pi/



raspi-config


wiringpi
        Rasp PI的C编程

raspberry python gpio

rpi gpio python



ssh [email protected]

systemctl enable wpa_supplicant

      systemctl stop dnsmasq && systemctl stop hostapd && systemctl disable dnsmasq && systemctl disable hostapd && systemctl daemon-reload && service dhcpcd restart 

将RPi4从AP模式改为普通模式:
``` bash
apt-get remove -y hostapd dnsmasq

sed -i 's/^static/#static/' /etc/dhcpcd.conf &&

systemctl daemon-reload
service dhcpcd restart 
systemctl enable wpa_supplicant

cat > /boot/wpa_supplicant.conf << EOF
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
 ssid="TP-LINK_5EBBDC"
 psk="friendlycanoe511"
}
EOF

touch /boot/ssh

参考文献

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.