当前位置:网站首页>Based on the raspberry pie smart luggage development environment set up
Based on the raspberry pie smart luggage development environment set up
2022-08-02 04:35:00 【GentleTK】
1.换源,更新
1.1编辑软件源文件
# 编辑source.list文件
sudo nano /etc/apt/source.list
替换内容为:
# 清华源
deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free
deb-src http://mirrors.ustc.edu.cn/raspbian/raspbian/ stretch main contrib non-free
1.2Edit the system update source file
# 编辑raspi.list文件
sudo nano /etc/apt/sources.list.d/raspi.list
替换内容为:
# 清华源
deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ stretch main ui
2.安装输入法
sudo apt-get install fcitx fcitx-googlepinyin fcitx-module-cloudpinyin fcitx-sunpinyin
安装完毕,重启树莓派
3.安装pybluez
# 克隆项目
git clone https://github.com/karulis/pybluez
# 配置项目
sudo python setup.py build
# 安装plbluez
sudo python setup.py install
4.安装GPS库
# 安装gps相关库
sudo apt-get install gpsd gpsd-clients python-gps
5.安装yagmail
# 安装yagmail
pip install yagmail
6.Install the bluetooth driver withA2DP支持
6.1蓝牙驱动
# Install the Bluetooth driver and configure it
sudo apt-get install pi-bluetooth bluez bluez-firmware blueman
sudo usermod -G bluetooth -a pi
sudo systemctl start bluetooth
sudo reboot
6.2A2DP支持
# 克隆仓库
git clone https://github.com/bareinhard/super-simple-raspberry-pi-audio-receiver-install
# 打开对应目录
cd super-simple-raspberry-pi-audio-receiver-install
# 切换分支
git checkout stretch-fix
# 执行安装脚本
sudo ./install.sh
- Car和Home,我选的Home
- Device name和AirPlay Device Name,写PiMusic
- 密码,不输入
- Do you want all the Devices to use the same name? (y/n) : Choose y or n,选n
- Which Sound Card are you using? (0/1/2/3/4/5/6/7/8/9/10/11),写0
7.安装Webiopi
# 克隆仓库
git clone https://github.com/thortex/rpi3-webiopi
# 打开对应目录
cd rpi3-webiopi/webiopi_0.7.1
# 执行配置脚本
sudo ./setup.sh
# 修改密码
sudo webiopi-passwd
# 启动webiopi
sudo webiopi 8000
# 让webopio后台运行,否则按ctarl+c就会断掉
sudo /etc/init.d/webiopi start
# 设置webopio随系统启动
sudo update-rc.d webiopi defaults
| 登陆网址 | 用户名 | 默认密码 |
|---|---|---|
| 树莓派IP:8000 | webiopi | raspberry |
文章作者:GentleTK
原文链接:https://gentletk.gitee.io/Build a development environment for smart luggage based on Raspberry Pi
边栏推荐
- GM8775C MIPI转LVDS调试资料分享
- sacalatest AnyFunSuite:no implicits found for parameter pos
- 简单的RC滤波电路
- How to quickly build your own IoT platform?
- Scala 中的集合(二):集合性能比较
- 【Arduino 连接 SD 卡模块实现数据读写】
- GM7150 CVBS转BT656视频解码芯片详细内容及设计要求
- 【Arduino connects SD card module to realize data reading and writing】
- 【opencv】error: (-215:Assertion failed) ssize.empty() in function ‘cv::resize‘报错原因
- 【萌新解题】斐波那契数列
猜你喜欢
随机推荐
博达工业云与阿里云对比
Typora use
Type c PD 电路设计
使用批处理脚本修改hosts文件
将ORCAD原理图导入allegro中进行PCB设计
基于阿里云OSS+PicGo的个人图床搭建
Arduino lights up nixie tubes
如何快速搭建属于自己的物联网平台?
TimeSformer视频理解框架:视频理解中的Transformer
功率计,物联网,智能插座电路设计【毕业设计】
火焰传感器与 Arduino 连接
LT8918L LVDS转MIPI芯片技术支持资料
Go中的一些优化笔记,简约而不简单
【科普贴】I2C通讯协议详解——偏软件分析和逻辑分析仪实例分析
Comparative analysis of OneNET Studio and IoT Studio
【Arduino connects SD card module to realize data reading and writing】
【科普贴】MDIO接口详解
联阳(ITE)IT66021FN:HDMI转RGB芯片 3D 资料
MC1496乘法器
振芯GM7123C:功能RGB转VGA芯片方案简介









