Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

carelink.eu - No new items #17

Open
toogaz opened this issue Feb 18, 2020 · 1 comment
Open

carelink.eu - No new items #17

toogaz opened this issue Feb 18, 2020 · 1 comment

Comments

@toogaz
Copy link

toogaz commented Feb 18, 2020

hello, i'm install your minimed-connect-to-nightscout on my raspberry ubuntu os.
this app run but my request return no result ..

where i found debug log

Tue Feb 18 2020 10:35:49 GMT+0000 (Coordinated Universal Time) Logging in to CareLink
Tue Feb 18 2020 10:35:49 GMT+0000 (Coordinated Universal Time) POST https://carelink.minimed.eu/patient/j_security_check
Tue Feb 18 2020 10:35:50 GMT+0000 (Coordinated Universal Time) GET https://carelink.minimed.eu/patient/main/login.do
Tue Feb 18 2020 10:35:50 GMT+0000 (Coordinated Universal Time) GET https://carelink.minimed.eu/patient/connect/ConnectViewerServlet?cpSerialNumber=NONE&msgType=last24hours&requestTime=1582022150780
Tue Feb 18 2020 10:35:51 GMT+0000 (Coordinated Universal Time) Stale CareLink data: 26367035.85 minutes old
Tue Feb 18 2020 10:35:51 GMT+0000 (Coordinated Universal Time) No new items for https://XXXX.herokuapp.com/api/v1/entries.json
Tue Feb 18 2020 10:35:51 GMT+0000 (Coordinated Universal Time) No new items for https://XXXX.herokuapp.com/api/v1/devicestatus.json

@toogaz
Copy link
Author

toogaz commented Feb 18, 2020

hello i'm trying a modify run2.js
var mmcns = require('/home/carelink/minimed-connect-to-nightscout-master');
const var_dump = require('var_dump');
var client = mmcns.carelink.Client({username: 'Login', password: 'Password'});
client.fetch(function(err, data) {
if (!err) {
var text=var_dump( data);
console.log(text);
console.log(data);
var transformed = mmcns.transform(data);
console.log(transformed);
console.log(transformed.entries);
console.log(transformed.devicestatus);

}
else {console.log(data);}
});

the result

{ medicalDeviceTimeAsString: '2070-04-06T23:33:58',
lastSensorTSAsString: '2070-04-06T23:33:58',
lastSensorTS: 0,
bgunits: 'MGDL',
kind: 'Main',
version: 1,
currentServerTime: 1582026538316,
lastConduitTime: 0,
lastConduitUpdateServerTime: 0,
lastMedicalDeviceDataUpdateServerTime: 0,
firstName: 'MyfirstName',
lastName: 'MyName',
conduitSerialNumber: '0',
conduitBatteryLevel: 0,
conduitBatteryStatus: 'DEPLETED',
conduitInRange: false,
conduitMedicalDeviceInRange: false,
conduitSensorInRange: false,
medicalDeviceFamily: 'GUARDIAN',
sensorState: 'UNKNOWN',
medicalDeviceSerialNumber: '0',
medicalDeviceTime: 0,
sMedicalDeviceTime: '2070-04-06T23:33:58',
reservoirLevelPercent: 0,
reservoirAmount: 0,
medicalDeviceBatteryLevelPercent: 0,
sensorDurationHours: 0,
timeToNextCalibHours: 0,
calibStatus: 'UNKNOWN',
bgUnits: 'MGDL',
timeFormat: 'HR_12',
lastSensorTime: 0,
sLastSensorTime: '2070-04-06T23:33:58',
medicalDeviceSuspended: false,
lastSGTrend: 'NONE',
lastSG: { sg: 0, kind: 'SG', version: 1 },
lastAlarm:
{ code: 0,
datetime: '2020-02-18T11:48:58',
type: 'ALARM',
flash: false,
kind: 'Alarm',
version: 1 },
activeInsulin: { amount: -1, kind: 'Insulin', version: 1 },
sgs:
[ { sg: 0, kind: 'SG', version: 1 },
{ sg: 0, kind: 'SG', version: 1 },
{ sg: 0, kind: 'SG', version: 1 },
......
limits: [],
markers: [] }
{ devicestatus: [], entries: [] }

why I've anything in device status entries ???? last upload in carelink portal is today at 8am

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant