• 游客,欢迎来到米坛社区。
    米坛社区是大型中文智能穿戴设备交流社区,在这里交流你的极客思想,共同建造我们的智能世界
    为了更加方便的获取支持与帮助,请加入米坛社区官方QQ频道

讨论 能做一个蓝牙断联提醒的小程序吗?

不知晦朔

LV7
普通成员
UID
99186
2022-07-22
292
2,059
倒计时小程序可以后台运行,很多第三方表盘都能显示蓝牙连接状态,那么原理上应该是可以做一个小程序用来显示蓝牙连接状态,一旦手环和手机的蓝牙连接断开就振动提醒的小程序的吧?
【设想】这个蓝牙断联提醒小程序,除了可以显示蓝牙连接状态、有小程序启用开关,最好能设置蓝牙断联提醒定时开启(早上起床或午睡完,容易忘带手机)

Countdown applet can run in the background, and many third-party dials can display the Bluetooth connection status. In principle, it should be possible to create a applet to display the Bluetooth connection status. Once the Bluetooth connection between the bracelet and the mobile phone is disconnected, the applet will vibrate to remind you, right?
[Imagine] This Bluetooth disconnection reminder applet can display the Bluetooth connection status and have an applet enable switch. It is better to set the Bluetooth disconnection reminder to be enabled regularly (it is easy to forget to bring your mobile phone after getting up in the morning or taking a nap)
 

alex

LV2
普通成员
UID
142003
2022-10-17
154
73
The countdown applet can run in the background, and many third-party dials can display the Bluetooth connection status. In principle, it should be possible to make a small program to display the Bluetooth connection status. Once the Bluetooth connection between the bracelet and the mobile phone is disconnected, it will vibrate to remind you Procedural, right?
[Imagination] This Bluetooth disconnection reminder applet, in addition to displaying the Bluetooth connection status and having a small program enable switch, it is best to set the Bluetooth disconnection reminder to be turned on at a fixed time (it is easy to forget to bring your mobile phone when you get up in the morning or after a nap)

Countdown applet can run in the background, and many third-party dials can display the Bluetooth connection status. In principle, it should be possible to create an applet to display the Bluetooth connection status. Once the Bluetooth connection between the bracelet and the mobile phone is disconnected, the applet will vibrate to remind you, right?
[Imagine] This Bluetooth disconnection reminder applet can display the Bluetooth connection status and have an applet enable switch. It is better to set the Bluetooth disconnection reminder to be enabled regularly (it is easy to forget to bring your mobile phone after getting up in the morning or taking a nap)
Interesting but I guess consolelog eacorpian have already made that
 

romadovhan228

LV2
普通成员
UID
98234
2022-07-19
158
57
感谢楼主的红包!

romadovhan228领取了您的红包获得了1.15生米粒
 

nanan

LV0
普通成员
UID
5879
2019-07-06
89
9
感谢楼主的红包!

nanan领取了您的红包获得了0.29生米粒
 

ZhengXG

LV0
普通成员
UID
31292
2020-03-26
72
6
不太可能 米环的内存太小 无法在后台运行小程序 表盘上的蓝牙状态是调用系统的 凑活着看吧
 

不知晦朔

LV7
普通成员
UID
99186
2022-07-22
292
2,059
不太可能 米环的内存太小 无法在后台运行小程序 表盘上的蓝牙状态是调用系统的 凑活着看吧
倒计时小程序不是能后台运行吗?官方的不能,但第三方小程序可以后台倒计时,而且内存很小
 

不知晦朔

LV7
普通成员
UID
99186
2022-07-22
292
2,059
不太可能 米环的内存太小 无法在后台运行小程序 表盘上的蓝牙状态是调用系统的 凑活着看吧
可后台运行的计时器

Alpha2: 修复了第一次进入计时器出现 Panic 的问题

“妈妈再也不用担心我倒计时的时候看不到时间了”
浏览附件15395浏览附件15396浏览附件15397

此计时器拥有如下功能:​

  • 后台倒计时
  • 暂停、继续倒计时
  • 倒计时完毕震动提醒

UI 设计上参考了 Zepp OS 官方的设计规范,视觉设计上更加贴近小米手环。


具体演示可查看演示视频

(演示设备为小米手环7 NFC,固件版本为 1.27.0.4 , 生产时间为 2022.7,测试设备安装了 2048 2.1.1,环间计算器2.5.0,中英词典1.5.0,课程表(非米坛上的))

有关 Panic 界面:
Panic 界面出现不代表手环系统出现问题,而是程序在运行过程中因为某些出现异常,此界面的出现是防止异常带来进一步影响(如导致系统重启),及时中断程序运行。

小程序源码已开源:

https://gitee.com/LaomoBK/ktimer
 

Celia

永远相信美好的事情即将发生
🔥社区作者
NF Miband Pro
普通成员
UID
76932
2021-11-06
206
1,147
China Jilin
小程序是可以调用手机连接状态的,而且可以后台运行,所以这个方法可行
 

GoaTiYase

LV2
普通成员
UID
103028
2022-08-01
293
88
感谢楼主的红包!

Gaotiyast领取了您的红包获得了0.73生米粒
 

hemingkang1

LV0
普通成员
UID
167475
2022-11-29
7
0
感谢楼主的红包!

hemingkang1领取了您的红包获得了0.19生米粒
 

zzt741

LV7
🔥社区作者
普通成员
UID
75550
2021-10-12
224
1,776
官方没有提供接口,无解,定时器是因为官方有定时的接口,实际小程序不能后台运行
 

constneo

LV0
普通成员
UID
165692
2022-11-26
3
0
感谢楼主的红包!

constneo领取了您的红包获得了0.71生米粒
 

FlvLujU

Lv 1.161803(φ, phi)
🔥社区作者
普通成员
UID
106881
2022-08-10
350
335
16
Madrid, Spain
www.bandbbs.cn
It woulb be possible with alarm API, but well test Bluetooth status , that will reduce battery a lot, also will be bad, the thing of go to a page to test bluetooth status, and then go back, but well, you can use my simple program of Bluetooth
 

結冷簡碳

LV3
普通成员
UID
90537
2022-06-28
109
112
感谢楼主的红包!

結冷簡碳领取了您的红包获得了0.96生米粒
 

*这是一则由 Google AdSense 自动推荐的广告,与本站无关,不对其真实性与可靠性负责