How To Make A WiFi Cloud Base Picture
Frame
Before you start, you need to have a Raspiberry Pi, and a screen which you can get on Taobao.
Okay, let’s start!!!!
1. install rclone
Curl https://rclone.org/install.sh | sudo bash
2. config rclone
rclone --version rclone config
3. create a folder
cd Pictures mkdir picframe
4. sync pictures
rclone sync picframe: picframe /home/pi/Pictures
5. create sh for sync pictures
sudo nano Get_pictures.sh #!/bin/sh
if pidof -o %PPID -x \ fi
exit 1
exit
rclone sync picframe:picframe /home/pi/Pictures/picframe
6. check Get_pictures.sh by run it
./Get_pictures.sh
7. use crontab to let cron entry run the Get_pictures.sh every 1 minute
crontab -e <1>
*/1 * * * * /home/pi/Get_pictures.sh >/dev/null 2>&1 # 重要:这里建议同步分钟数>照片张数x 5
8. install fbi
sudo apt-get install fbi
# use fbi slide pictures every 5 seconds
fbi -a -t 5 -T 2 –noverbose /home/pi/Pictures/picframe/*
9. create fbi_start.sh
sudo nano fbi_start.sh
#!/bin/bash
# 运行fbi每5秒切换照片
sudo fbi -a -t 5 -T 1 --noverbose /home/pi/Pictures/picframe/*
sudo chmod +x fbi_start.sh
10. set up autostart for fbi_start.sh
cd /etc/xdg/lxsession/LXDE-pi sudo nano autostart # add command at the end /home/pi/fbi_start.sh
#!/bin/bash
# 查询fbi进程ID, 用sudo kill ID来结束fbi ps -aux | grep -i fbi # sudo kill `pgrep -f \# /home/pi/fbi_start.sh
# 运行fbi每5秒切换照片
sudo fbi -a -t 5 -T 1 --noverbose /home/pi/Pictures/picframe/* #!/bin/sh
if pidof -o %PPID -x \ fi
rclone sync picframe:picframe /home/pi/Pictures/picframe sudo kill `pgrep -f \exit 1
/home/pi/fbi_start.sh
exit
How To Make A WiFi Cloud Base Picture Frame



