mirror of
https://github.com/kxgx/2.13-Ink-screen-clock.git
synced 2026-05-12 02:35:04 +08:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28895e7188 | ||
|
|
8a4ba07f5b | ||
|
|
ecaa4006ce | ||
|
|
c5a3ef0dcf | ||
|
|
99c2bb3152 | ||
|
|
533e76d536 | ||
|
|
26ee5bf6e7 | ||
|
|
a710b293b6 | ||
|
|
3a90a36ffa | ||
|
|
fdd3e6008a |
@@ -5,7 +5,7 @@ dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
logdir=${dir%/*}
|
||||
screen_name="clean_screen"
|
||||
service_name="raspi_e-Paper.service"
|
||||
hold_time_seconds=5 # 设置维持时间,例如300秒(5分钟)
|
||||
hold_time_seconds=3 # 设置维持时间,例如300秒(5分钟)
|
||||
|
||||
# 创建一个新的screen会话并运行Python脚本
|
||||
screen -dmS $screen_name /usr/bin/python3 -u $dir/$f_name > $logdir/log/clean-info.log 2>&1
|
||||
|
||||
@@ -8,7 +8,6 @@ Before=reboot.target
|
||||
Type=oneshot
|
||||
ExecStart=/bin/bash /root/2.13-Ink-screen-clock/bin/clean.sh
|
||||
RemainAfterExit=yes
|
||||
TimeoutSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=shutdown.target
|
||||
|
||||
@@ -143,8 +143,6 @@ def Basic_refresh(): #全刷函数
|
||||
logging.info("Refresh and prepare the basic content before starting the canvas")#开始画布前刷新准备基础内容
|
||||
epd.init()
|
||||
epd.Clear(0xFF)
|
||||
epd.init()
|
||||
epd.Clear(0xFF)
|
||||
global get_date_var
|
||||
get_date_var=get_date() #记录开始数据
|
||||
draw.text((2,2),get_date_var,font = font02,fill =0)#将日期及星期几显示到屏幕
|
||||
|
||||
Reference in New Issue
Block a user