Skip to content

Instantly share code, notes, and snippets.

@djzeratul
Created June 16, 2019 06:36
Show Gist options
  • Save djzeratul/c6afee08f15c2e23acbb1a0e6deae0d4 to your computer and use it in GitHub Desktop.
Save djzeratul/c6afee08f15c2e23acbb1a0e6deae0d4 to your computer and use it in GitHub Desktop.
xdrip-js log
[{"device":"xdripjs://RIGNAME","xdripjs":{"sessionStart":1560033217662,"state":36,"txStatus":0,"stateString":"No Response","stateStringShort":"No Response","txId":"TXIDREDACTED","txActivation":1560582000000,"mode":"expired","timestamp":1560666124175},"created_at":"2019-06-16T06:22:04.207Z","_id":"5d05e13576351d0004d2947f"}]
06/15 23:27:01 Upload to NightScout of cgm status pill record entry worked
06/15 23:27:02 Starting Logger
06/15 23:27:03 Using Alternate Bluetooth Channel: true
06/15 23:27:03 Using transmitter: TXIDREDACTED
Logger mode=expired
bt-device is /usr/bin/bt-device
06/15 23:27:15 NS is using UTC -u
06/15 23:27:16 check_last_glucose_time - epochdate=1560666424, entry_timestamp=1560643589
06/15 23:27:16 Time since last glucose entry in seconds = 22835 seconds
06/15 23:27:16 Requesting backfill since 1560643640174
06/15 23:27:17 Mode is expired, but checking for sensor start regardless
06/15 23:27:29 Mode is expired, but checking for sensor stop regardless
06/15 23:27:35 meterbg from /root/myopenaps/monitor/xdripjs/calibration.json:
06/15 23:27:36 meterbg date=2019-06-16T03:04:13.000Z, secNow=1560666456, secThen=1560654253, elapsed=12203
06/15 23:27:36 meterbg from nightscout:
06/15 23:27:36 Removing existing Dexcom bluetooth connection = DexcomH6
06/15 23:27:37 Removing existing Dexcom bluetooth mac connection also = MACREDACTED
06/15 23:27:37 Logger g5 tx messages = [{"date":"1560643640174","type":"Backfill"}]
06/15 23:27:37 Calling xdrip-js ... node logger TXIDREDACTED
2019-06-16T06:27:46.244Z transmitter Listening for transmitter TXIDREDACTED
2019-06-16T06:27:46.401Z bluetooth-manager on -> stateChange: poweredOn
2019-06-16T06:27:46.404Z bluetooth-manager starting scanning
2019-06-16T06:27:46.420Z bluetooth-manager on -> scanStart
2019-06-16T06:31:22.518Z bluetooth-manager Sat Jun 15 2019 23:31:22 GMT-0700 (PDT): peripheral: DexcomH6 with rssi -62
got sawTransmitter message inside logger msg: {"id":"TXIDREDACTED","rssi":-62,"address":"MACREDACTED"}
{ id: 'TXIDREDACTED', rssi: -62, address: 'MACREDACTED' }
2019-06-16T06:31:22.658Z bluetooth-manager on -> scanStop
2019-06-16T06:31:22.948Z bluetooth-manager on -> connect
2019-06-16T06:31:23.094Z bluetooth-manager on -> peripheral services discovered
2019-06-16T06:31:23.282Z bluetooth-manager on -> service characteristics discovered
2019-06-16T06:31:23.301Z transmitter Authenticating with transmitter, alternate bt channel: true
2019-06-16T06:31:23.397Z bluetooth-manager Tx 01888dbd73137a466901
2019-06-16T06:31:23.458Z bluetooth-manager Rx 0328ebdef66a0b09ca19611c9e8ed69e6b
2019-06-16T06:31:23.528Z bluetooth-manager Tx 04f765cd31c41b52d8
2019-06-16T06:31:23.558Z bluetooth-manager Rx 050102
2019-06-16T06:31:23.573Z transmitter transmitter responded with status message 050102
2019-06-16T06:31:23.575Z transmitter Requesting bond
2019-06-16T06:31:23.602Z bluetooth-manager Tx 0619
2019-06-16T06:31:23.632Z bluetooth-manager Tx 07
2019-06-16T06:31:23.634Z transmitter Bonding request sent. Waiting for user to respond.
2019-06-16T06:31:23.645Z bluetooth-manager setting notify to true
Sun, 16 Jun 2019 06:31:23 GMT smp got data 0b01
Sun, 16 Jun 2019 06:31:23 GMT smp got security request
2019-06-16T06:31:38.668Z transmitter Error: Error enabling notification: timeout
at Transmitter.enableNotify (/root/src/Logger/node_modules/xdrip-js/lib/transmitter.js:193:11)
at <anonymous>
2019-06-16T06:31:38.673Z transmitter Initiating a disconnect
2019-06-16T06:31:38.676Z bluetooth-manager setting notify to false
2019-06-16T06:31:40.685Z transmitter timeout
2019-06-16T06:31:48.668Z bluetooth-manager disconnected peripheral
2019-06-16T06:31:48.694Z bluetooth-manager scanning again in 1 minute
06/15 23:31:48 after xdrip-js bg record below ...
/usr/local/bin/Logger: line 711: bt_watchdog: command not found
06/15 23:31:48 Removing existing Dexcom bluetooth connection = DexcomH6
06/15 23:31:49 Removing existing Dexcom bluetooth mac connection also = MACREDACTED
[{"device":"xdripjs://RIGNAME","xdripjs": {"sessionStart":1560033217662,"state":36,"txStatus":0,"stateString":"No Response","stateStringShort":"No Response","txId":"TXIDREDACTED","txActivation":1560582000000,"mode":"expired","timestamp":1560666424043}, "created_at":"2019-06-16T06:27:04.104Z"}]
2019-06-16T06:31:23.301Z transmitter Authenticating with transmitter, alternate bt channel: true
2019-06-16T06:31:23.397Z bluetooth-manager Tx 01888dbd73137a466901
2019-06-16T06:31:23.458Z bluetooth-manager Rx 0328ebdef66a0b09ca19611c9e8ed69e6b
2019-06-16T06:31:23.528Z bluetooth-manager Tx 04f765cd31c41b52d8
2019-06-16T06:31:23.558Z bluetooth-manager Rx 050102
2019-06-16T06:31:23.573Z transmitter transmitter responded with status message 050102
2019-06-16T06:31:23.575Z transmitter Requesting bond
2019-06-16T06:31:23.602Z bluetooth-manager Tx 0619
2019-06-16T06:31:23.632Z bluetooth-manager Tx 07
2019-06-16T06:31:23.634Z transmitter Bonding request sent. Waiting for user to respond.
2019-06-16T06:31:23.645Z bluetooth-manager setting notify to true
Sun, 16 Jun 2019 06:31:23 GMT smp got data 0b01
Sun, 16 Jun 2019 06:31:23 GMT smp got security request
2019-06-16T06:31:38.668Z transmitter Error: Error enabling notification: timeout
at Transmitter.enableNotify (/root/src/Logger/node_modules/xdrip-js/lib/transmitter.js:193:11)
at <anonymous>
2019-06-16T06:31:38.673Z transmitter Initiating a disconnect
2019-06-16T06:31:38.676Z bluetooth-manager setting notify to false
2019-06-16T06:31:40.685Z transmitter timeout
[{"device":"xdripjs://RIGNAME","xdripjs":{"sessionStart":1560033217662,"state":36,"txStatus":0,"stateString":"No Response","stateStringShort":"No Response","txId":"TXIDREDACTED","txActivation":1560582000000,"mode":"expired","timestamp":1560666424043},"created_at":"2019-06-16T06:27:04.104Z","_id":"5d05e25d76351d0004d29481"}]
06/15 23:31:57 Upload to NightScout of cgm status pill record entry worked
06/15 23:32:02 Starting Logger
06/15 23:32:03 Using Alternate Bluetooth Channel: true
06/15 23:32:03 Using transmitter: TXIDREDACTED
Logger mode=expired
bt-device is /usr/bin/bt-device
06/15 23:32:05 NS is using UTC -u
06/15 23:32:05 check_last_glucose_time - epochdate=1560666723, entry_timestamp=1560643589
06/15 23:32:05 Time since last glucose entry in seconds = 23134 seconds
06/15 23:32:06 Requesting backfill since 1560643640174
06/15 23:32:18 Mode is expired, but checking for sensor start regardless
06/15 23:32:20 Mode is expired, but checking for sensor stop regardless
06/15 23:32:23 meterbg from /root/myopenaps/monitor/xdripjs/calibration.json:
06/15 23:32:36 meterbg date=2019-06-16T03:04:13.000Z, secNow=1560666756, secThen=1560654253, elapsed=12503
06/15 23:32:37 meterbg from nightscout:
06/15 23:32:37 Removing existing Dexcom bluetooth connection = DexcomH6
06/15 23:32:38 Removing existing Dexcom bluetooth mac connection also = MACREDACTED
06/15 23:32:39 Logger g5 tx messages = [{"date":"1560643640174","type":"Backfill"}]
06/15 23:32:39 Calling xdrip-js ... node logger TXIDREDACTED
2019-06-16T06:33:17.336Z transmitter Listening for transmitter TXIDREDACTED
2019-06-16T06:33:18.142Z bluetooth-manager on -> stateChange: poweredOn
2019-06-16T06:33:18.186Z bluetooth-manager starting scanning
2019-06-16T06:33:18.257Z bluetooth-manager on -> scanStart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment