Added multiple supported models

This commit is contained in:
Luxferre
2022-12-23 21:16:49 +02:00
parent 9a6d2acc31
commit 992e6a6833
2 changed files with 21 additions and 4 deletions
+14 -2
View File
@@ -18,14 +18,26 @@ RCVD is the missing KaiOS application and, first and foremost, a [JS library](rc
## Supported models
- GW-B5600
- DW-B5600
- GMW-B5000
- MRG-B5000\*
- OCW-T200
- GM-B2100, GA-B2100
- GWR-B1000\*
- GM-B2100
- GA-B2100\*
- GST-B400\*
- GST-B500\*
- ECB-S100\*
- MSG-B100\*
- ECB-2000\*
- ECB-2200\*
- DW-B5600
- GA-B001
- G-B001\*
The list is incomplete and your watch may be supported too. Please [let me know](https://matrix.to/#/@luxferre:anonymousland.org) if this is the case!
\* *model theoretically supported but not checked by the author*
## How to use the app
1. Ensure your phone time is synced from the network.
+7 -2
View File
@@ -85,9 +85,14 @@ RCVD = (function(nav) {
plgen = k => [...Array(6)].map((a,i)=>[k,i]), //property list generator
cyclePresyncProperties = _ => new Promise((res, rej) => {
var slist = [...plgen(30),...plgen(31)] //full property list for primary targets, GW-B/GMW-B models
if(watchModel.indexOf('OCW') > 5)
if(watchModel.indexOf('OCW') > 5 || watchModel.indexOf('GWR-B1000') > 5)
slist = [[30,0],[30,1]]
else if(watchModel.indexOf('B2100') > 5 || watchModel.indexOf('B001') > 5 || watchModel.indexOf('DW-B5600') > 5 )
else if(watchModel.indexOf('B2100') > 5
|| watchModel.indexOf('B001') > 5
|| watchModel.indexOf('DW-B5600') > 5
|| watchModel.indexOf('GST-B') > 5
|| watchModel.indexOf('MSG-B') > 5
|| watchModel.indexOf('ECB') > 5 )
slist = [[30,0],[30,1],[31,0],[31,1]]
var plist = [[29,0], [29,2], [29,4]].concat(slist); //populate the props list
(function cycle() {