benceszasz / xDripCareLinkFollower

Experimental Medtronic CareLink Follower data source for xDrip+
GNU General Public License v3.0
86 stars 64 forks source link

Trend direction #12

Closed Krighaar closed 1 year ago

Krighaar commented 2 years ago

Hi,

I would like to help with this, and add trend directions (i can see it is hardcodede to 0 atm. g.calculated_value_slope = 0 line 173

//CareLinkDataProcessor.java
if (live) {final BgReading bg = new BgReading();
    bg.timestamp = recordTimestamp;
    bg.calculated_value = (double) sg.sg;
    bg.raw_data = SPECIAL_FOLLOWER_PLACEHOLDER;
    bg.filtered_data = (double) sg.sg;
    bg.noise = "";
    bg.uuid = UUID.randomUUID().toString();
    bg.calculated_value_slope = 0;
    bg.sensor = sensor;
    bg.sensor_uuid = sensor.uuid;
    bg.source_info = SOURCE_CARELINK_FOLLOW;
    bg.save();
    Inevitable.task("entry-proc-post-pr", 500, () -> bg.postProcess(false));
}

So that the arrows are shown in the Nightscout site.

But when i try and run it in Android studio i get this error:

billede

So if anyone could point me in a direction where i can get it up and running on my local machine it would be highly appriciated, since i would love to help out with this!