New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offline xdrip #1248
Offline xdrip #1248
Conversation
…re a new reading was available out misformatted data
…into offline-xdrip
Yay @scottleibrand thanks. Commenting here too - we've had this on our production rig from the first commits and after the latest fixes in Jan, I haven't had any issues + the offline looping has worked in a plane & boat & underground. I'll have access to the xDrip phone in the evening and can post shots of where to configure this in xDrip. |
Ok, I've experienced a repeated problem moving between dev and offline-xdrip branches. While on dev system operates correctly, but once I move to offline-xdrip looping ceases. The errors in ns-loop.log show as..
|
edison/explorer and I haven't tested deeply to see if the offline aspect works. I had xdrip forwarding to the appropriate port but still wouldn't loop. Switching back to dev immediately resolved. |
The only issues I saw were that the node packages Navigating to The functionality added in this branch seems to work well. I haven't had a chance to test in day to day life yet, however I forced BT tethering by disabling Wi-Fi on the rig and disabled networking on my phone to simulate being offline and the To make testing this branch a little easier I would suggest merging the changes in Other than the setup hiccups I had, which I'm hoping were my fault due to an old node_modules folder, I would say it looks good to me. I will try this out for a few days and report back if any issues arise. |
* Remove binary download options * Add radiotags to runagain, and fix bug for radiofruit hardware type
Mount the Edison's FAT32 partition to give us enough room to install golang.
Pass radiotags to oref0-setup.sh from oref0-runagain.sh.
Fixes issue of `Cannot find module 'network'` in the ns-looplog.
Add 2019 Co-Authored-By: viq <vicviq@gmail.com>
* Have autotune sync to NS nightly after autotune runs This will keep Nightscout in sync with autotune after the nightly run. * always round insulin to carb ratios to 0.1g * round basal rates to 0.01 U/h, not 0.001 * sleep 60s to generate a new profile.json
* Standalone MRAA installer for OpenAPS v0.7.0 Addresses #1270 * Add oref0-mraa-install to package.json
* Unused local variables * Unused local variables
* per #1288, only use minZTUAMPredBG if enableUAM, and use minGuardBG otherwise * upload preferences.json to devicestatus * use --preferences instead of positional arguments * yargs entry for --preferences * upload oref0 package.json version string * redact sensitive fields in preferences.json * reduce size of large logfiles like new -date ones
* Move the enable SMB into its own dedicated function This will allow easier SMB conditional implementations * Forgot to remove the existing logic... * fix function naming * function fix round 2
* Non-breaking space detected by eslint
Tested on Edison, both with 1) not connected to xDrip hotspot, 2) connected to Android with xDrip share disabled and 3) connected to Android with xDrip share enabled and this works as expected (data is loaded from Nightscout when xDrip is not available and xDrip when it is available). |
We don't use xDrip at all, so running this on one of our rigs for regression testing. In the ns-loop.log, I now see this scary error:
We should change that to not show that error for people not using xDrip. |
Doh, yes ECONNREFUSED should be also caught in the error statement. Sec |
Better, but still getting a bunch of unnecessary logging:
I think if we got rid of the newline after
and then get rid of the duplicate logging on the second attempt at hitting xDrip, we'd be down to a non-concerning level of logging for non-xDrip users. |
* Detect socket timeout and don't log stack trace * Add ECONNREFUSED to safe error list, better error message * Consolidate IP logging to same line as xDrip load notification, remove unused variables * Disabled xDrip logging after first error
With those fixes, this now LGTM. If anyone else wants to test anything before we merge this to dev, please speak up. Otherwise I'll do so sometime after running it for the rest of the day and confirming it doesn't cause any issues for non-xDrip users. |
Still looks good on one rig. Merging to dev for more folks to test more broadly. |
Cleaned-up version of #1139, in an openaps/oref0 branch for easier testing.
We'll need some folks who use xDrip to test. To do so, follow the https://openaps.readthedocs.io/en/latest/docs/Customize-Iterate/update-your-rig.html#alternative-step-1b-test-a-feature-branch-not-recommended-for-initial-setup instructions to test the offline-xdrip feature branch.