Added GA-B001 and DW-B5600 models support
This commit is contained in:
@@ -18,9 +18,11 @@ RCVD is the missing KaiOS application and, first and foremost, a [JS library](rc
|
|||||||
## Supported models
|
## Supported models
|
||||||
|
|
||||||
- GW-B5600
|
- GW-B5600
|
||||||
|
- DW-B5600
|
||||||
- GMW-B5000
|
- GMW-B5000
|
||||||
- OCW-T200
|
- OCW-T200
|
||||||
- GM-B2100
|
- GM-B2100, GA-B2100
|
||||||
|
- GA-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!
|
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!
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"name": "RCVD",
|
"name": "RCVD",
|
||||||
"description": "Casio BLE-enabled watches time synchronization app",
|
"description": "Casio BLE-enabled watches time synchronization app",
|
||||||
"type": "certified",
|
"type": "certified",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// RCVD.js: a small library for syncing time on BLE-enabled Casio watches
|
// RCVD.js: a small library for syncing time on BLE-enabled Casio watches
|
||||||
// Tested on: GW-B5600BC, GMW-B5000D, OCW-T200S, GM-B2100BD
|
// Tested on: GW-B5600BC, GMW-B5000D, OCW-T200S, GM-B2100BD, GA-B001G, DW-B5600G
|
||||||
// Compatible with both KaiOS 2.5.x and in-progress Web Bluetooth API spec
|
// Compatible with both KaiOS 2.5.x and in-progress Web Bluetooth API spec
|
||||||
// Created by Luxferre in 2022, released into public domain
|
// Created by Luxferre in 2022, released into public domain
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ RCVD = (function(nav) {
|
|||||||
var slist = [...plgen(30),...plgen(31)]
|
var slist = [...plgen(30),...plgen(31)]
|
||||||
if(watchModel.indexOf('OCW') > 5)
|
if(watchModel.indexOf('OCW') > 5)
|
||||||
slist = [[30,0],[30,1]]
|
slist = [[30,0],[30,1]]
|
||||||
else if(watchModel.indexOf('B2100') > 5)
|
else if(watchModel.indexOf('B2100') > 5 || watchModel.indexOf('B001') > 5 || watchModel.indexOf('DW-B5600') > 5 )
|
||||||
slist = [[30,0],[30,1],[31,0],[31,1]]
|
slist = [[30,0],[30,1],[31,0],[31,1]]
|
||||||
var plist = [[29,0], [29,2], [29,4]].concat(slist); //populate the props list
|
var plist = [[29,0], [29,2], [29,4]].concat(slist); //populate the props list
|
||||||
(function cycle() {
|
(function cycle() {
|
||||||
@@ -125,7 +125,7 @@ RCVD = (function(nav) {
|
|||||||
sync: dObj => new Promise((res, rej) => {
|
sync: dObj => new Promise((res, rej) => {
|
||||||
cyclePresyncProperties().then(_ => {
|
cyclePresyncProperties().then(_ => {
|
||||||
//set to the next second to make up for latency
|
//set to the next second to make up for latency
|
||||||
var d = dObj || new Date(Date.now() + 1000), year = d.getFullYear()
|
var d = dObj || new Date(Date.now() + 500), year = d.getFullYear()
|
||||||
execWriteCmd(Uint8Array.from([
|
execWriteCmd(Uint8Array.from([
|
||||||
9,
|
9,
|
||||||
year&255, year>>>8,
|
year&255, year>>>8,
|
||||||
|
|||||||
Reference in New Issue
Block a user