用树莓派给老旧汽车做个副屏(一)
简介
家里的手动党老车只配了个收音机,没有中控屏,没有蓝牙,想利用家里吃灰的树莓派做个车载副中控项目,功能暂时如下:
- 3.5寸屏显示时间、天气、新闻等
- 利用将车内音响改变为蓝牙音箱
…
预备材料
-树莓派3b
-LCD3.5寸屏
-树莓派官方buster镜像
预览
技术前提
- 熟悉Linux系统
- 熟悉Docker
- 了解MagicMirror项目
树莓派Linux系统配置
给树莓派改密码
1 | sudo -I |
给树莓派改语言时区扩展磁盘空间
1 | sudo raspi-config |
开启开机启动ssh服务并设置允许root用户登录
1 | sudo nano /etc/ssh/sshd_config |
给树莓派Linux buster系统换源
1 | # 编辑 sudo nano `/etc/apt/sources.list` 文件,删除原文件所有内容,用以下内容取代: |
更新与升级树莓派buster系统
1 | sudo apt update -y |
安装docker
1 | curl -sSL https://get.daocloud.io/docker | sh |
给Docker换源和开机启动Docker服务
1 | sudo nano /etc/docker/daemon.json |
下载Magicmirror Docker镜像
1 | docker pull bastilimbach/docker-magicmirror |
创建Magicmirror Docker容器
1 | docker run -d \ |
配置Magicmirror服务
进入Magicmirror Docker镜像安装第三方模块
1 | sudo docker exec -it magic_mirror bash |
可选的模块如下
https://github.com/darickc/MMM-BackgroundSlideshow
https://github.com/cbrooker/MMM-Todoist
https://github.com/shbatm/mmm-carousel
https://github.com/BenRoe/MMM-SystemStats
https://github.com/fewieden/MMM-voice
https://github.com/AdamMoses-GitHub/MMM-ImageSlideshow
https://github.com/boazarad/MMM-CountDown
https://github.com/LukeSkywalker92/MMM-Globe
https://github.com/EbenKouao/MMM-SmartTouch
https://github.com/NolanKingdon/MMM-MoonPhase
https://github.com/frdteknikelektro/MMM-SimpleLogo
https://github.com/mykle1/MMM-EARTH
https://github.com/fewieden/MMM-AlarmClock