Commit Graph

71 Commits

Author SHA1 Message Date
Johan Degraeve 780423bc7d Watlaa working
It still has unused features which I will remove in the next commit (which allows me to find them back if I want to), like firmware/hardware, serial number ..

Also has fixes for DexcomG6, although still not fully tested
2020-04-18 23:58:52 +02:00
Johan Degraeve 1bae9657ec Dexcom G6 2020-04-13 23:48:11 +02:00
Johan Degraeve a538e280f6 fix #81 Constant BG sent to NightScout when Libre-2 expires 2020-04-08 20:48:44 +02:00
Johan Degraeve 0cc70f2a2d Dexcom G4 with xdrip 2020-04-06 22:16:21 +02:00
Johan Degraeve 35aeb177a2 Droplet 2020-04-06 22:16:21 +02:00
Johan Degraeve 5c76abf071 BlueReader + bluetoothPeripheralViewModel can be optional, as in case of BlueReader. In that case there's no specific section with sections 2020-04-06 22:16:02 +02:00
Johan Degraeve 5553495bcc GNSEntry 2020-04-06 22:15:44 +02:00
Johan Degraeve 0a78b09b7b blucon in new bt 2020-04-06 22:14:30 +02:00
Johan Degraeve 733f5d05ef reset function for G5 2020-04-06 22:12:17 +02:00
Johan Degraeve 46bd3a8174 MiaoMiao 2020-04-06 22:12:17 +02:00
Johan Degraeve 1dedd35156 bluetoothPeripheralViewController, add line with last connection or disconnection timestamp 2020-04-06 22:11:34 +02:00
Johan Degraeve 2fb2d11a0e DexcomG5 battery info added 2020-04-06 22:08:18 +02:00
Johan Degraeve 3a91379b39 Bubble
Sort per category
2020-04-06 22:07:19 +02:00
Johan Degraeve ac9354b539 compiles, but can't test yet for G5 as I have no working one, will continue now with bubble 2020-04-06 22:04:30 +02:00
Johan Degraeve 3e8d7839c5 bt redesign, DexcomG5 2020-04-06 21:57:29 +02:00
Johan Degraeve fb0c3b18ad increase model version to 10 2020-04-06 21:57:29 +02:00
Paul Plant 28af2796ec Fix bug that showed a negative zero value in the diff label
The bug showed zero values as negative "-0 mg/dl" or "-0.0 mmol/l".

There might be a more elegant way directly in the mgdlToMmolAndToString() function, but this does the job and seems robust during testing
2020-04-06 21:50:37 +02:00
Johan Degraeve e62397cd48 fix #68 calculation of diff with previous value not correct if readings less than 5 minutes apart
Calculation of diff was taking the slope and then multiplied with 5 minutes. This seems not correct (strange nobody every noticed ?)

Probably because originally this was written for Dexcom transmitters, which give a reading every 5 minutes.

Although there too the diff is not correct if time difference > 5 minutes (10 minutes, 15, ...)

This changes will give another diff value in home screen, speak reading, watch, notification, text in alert.

Triggering of alerts is not impacted.
2020-01-29 18:11:23 +01:00
Johan Degraeve 105ad2d9e1 enhancement #53 upload sensor age to nightscout 2020-01-26 23:08:48 +01:00
Johan Degraeve fe2b988b7c resolve merge conflicts 2020-01-19 21:24:16 +01:00
Johan Degraeve 2ec60c502f Watlaa connection, master mode (ie watlaa is master) - receives Libre packets and watlaa battery level
This is a test version

To setup Watlaa :
- go to settings tab, select transmitter type Watlaa
- go back to home screen
- click transmitter
- click start sensor and start the sensor
- then go to the bluetooth tab (the second tab)
- click the +
- select watlaa
- select watlaa master
- scan
- click 'done'

xdrip should now receive the libre packets, you should get a calibration request
2020-01-19 14:10:21 +01:00
Johan Degraeve 1429922bd5 Option to enable NSLog so that all tracing can be found with cfgutil
When enabled, all logging can be viewed on a Mac:
- install Apple Configurator 2 on a Mac (it's not necessary to run the application)
- Open a Terminal session (on Mac click Search button top right, type 'Terminal', double click on the Terminal app)
- change directory to Downloads folder , type :
cd Downloads
- copy paste this :
/Applications/Apple\ Configurator\ 2.app/Contents/MacOS/cfgutil syslog | grep xDrip-NSLog | awk -F "xDrip-NSLog " '{print $2}'  > xdriplog.txt
and press enter

Now use the app, all logging information can be found in the file xdriplog.txt
You can also leave out the redirection to file.
2020-01-18 00:02:58 +01:00
Johan Degraeve 14fe568e65 watlaa master connect working, receives packages 2020-01-09 18:09:11 +01:00
Johan Degraeve 4a95c2c50d connects to watlaa, discovers services and characteristics 2020-01-07 23:13:18 +01:00
Johan Degraeve 7d083caa57 created new model version and new entity for watlaa 2020-01-05 22:38:43 +01:00
Johan Degraeve a52fd4d3c1 M5Stack : option to disable wifi 2019-12-28 21:00:35 +01:00
Johan Degraeve edc27ce6cf M5Stack : view battery level and option to switch off 2019-12-23 23:31:25 +01:00
Johan Degraeve eb3761fa7d M5Stack attribute isM5StickC made optional, otherwise upgrade from 3.4.0 to higher fails 2019-12-22 19:11:55 +01:00
Johan Degraeve d6fc94ca5d fixes for M5Stick 2019-12-21 21:11:04 +01:00
Johan Degraeve a0589d0f7a change in bluetoothperipheral screen : when adding new peripheral, option to choose first the category (for the moment only M5Stack but goal is that others will follow), secondly the type of peripheral (eg M5Stack or M5StickC) 2019-12-18 18:42:38 +01:00
Johan Degraeve 4248d359e1 redesign M5Stack stuff, as preperation to move all bluetooth stuff to that page 2019-12-11 18:13:31 +01:00
Johan Degraeve 5653de5161 brightness for m5stack 2019-11-25 22:56:54 +01:00
Johan Degraeve 88a11e9783 increase core data model version 2019-11-25 17:38:16 +01:00
Johan Degraeve 1f697eb65b Glucose chart panning 2019-11-24 21:37:39 +01:00
Johan Degraeve 517e108448 M5Stack screen rotation and backgroundcolor 2019-11-07 22:34:40 +01:00
Johan Degraeve 6912d235c9 increase data model to v4 2019-11-02 11:16:43 +01:00
Johan Degraeve cb1bdd7a12 readings on chart 2019-10-29 19:08:21 +01:00
Johan Degraeve 9fd842b75d compiles and shows chart but without content 2019-10-26 18:48:15 +02:00
Johan Degraeve 7644a92587 M5Stack write nightscout url and token 2019-10-13 22:59:24 +02:00
Johan Degraeve a0f62239cb option to select textcolor per m5Stack 2019-10-06 22:11:50 +02:00
Johan Degraeve 8599820a9b add textcolor attribute to M5Stack in coredata 2019-10-06 18:10:52 +02:00
Johan Degraeve 4dfc2b073d increase core data model version to v3 2019-10-06 18:10:07 +02:00
Johan Degraeve 5fc96ea44c reverted changes in coredata, need to create a new model version first 2019-10-06 18:08:17 +02:00
Johan Degraeve 3de5f40fc9 Revert "temp commit"
This reverts commit bc745a309d.
2019-10-06 17:57:27 +02:00
Johan Degraeve bc745a309d temp commit 2019-10-06 16:58:05 +02:00
Johan Degraeve 46bf878bfe Scanning for M5Stack transmitters, connect, disconnect, .. 2019-10-05 23:25:39 +02:00
Johan Degraeve 6feb607f41 add M5StackName entity 2019-09-22 15:52:37 +02:00
Johan Degraeve 7cede28758 temp commit, a few views added 2019-09-22 15:29:03 +02:00
Johan Degraeve 62bc57e9e0 temp commit 2019-09-22 00:04:02 +02:00
Johan Degraeve 67c6290667 temp commit 2019-09-21 22:49:58 +02:00