-
Notifications
You must be signed in to change notification settings - Fork 394
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
shared-node #1361
shared-node #1361
Conversation
Before this checkin, ns-loop created the status data, and uploaded it to nightscout (if possible). But in case of failure, the file will get overwritten. This means that in the case of no internet, OAPS decisions get lost. This checkin fixes it by adding timestamps to the files. When internet is available, the files will be uploaded according to the correct order. Files older than a day will be deleted. Testing: I have prevented uploading of files for a few hours, and when it was enabled again, data was shown correctly in nightscout site. Decreased timeout, and saw the files being deleted. Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
… of uploading it. Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
This saves initilaztion time. Worked for a day, which means testing only started.
starting it if needed.
Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
…hi-dar/oref0 into tzachi-dar-tzachi-share-node-ns-status Conflicts: bin/oref0-ns-loop.sh
With those fixes, this is now running successfully on one of our Edison rigs, and uploading successfully to NS. Updating wasn't very smooth, so will need to try another rig and see whether all those issues are fixed. |
Looks like the test_data directory is growing unbounded and using up all the disk space on my rig: 619M ./root/test_data |
@tzachi-dar should we just stop storing stuff in ~/test_data, or do we still need that? If we need it, we'll need to add some code to delete old data so it doesn't grow indefinitely. |
Looks like there are also a bunch of shared_node.(random string) files filling up /tmp/ |
As for the test data, it is only needed to make sure that we are still getting the same result. If needed, I can send you the script, or you can send me the data and I'll test it. Then we can remove the code that creates the test data. So, to summarize:
Tzachi |
By the way, as for installing the two extra files, we can probably add an update script and add there what is needed when updating. |
Yeah, an upgrade script would be a good idea. |
I haven’t seen any unusual dosing predBG or upload behavior with the new code. If you’ve verified it works identically on your system, I’m fine removing the test stuff. |
…hi-dar/oref0 into tzachi-dar-tzachi-share-node-ns-status Conflicts: bin/oref0-ns-loop.sh
Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
I have updated my pr:
|
…hi-dar/oref0 into tzachi-dar-tzachi-share-node-ns-status Conflicts: bin/oref0-ns-loop.sh
Is this tested and ready to merge? |
Give me 2-3 more days for final testing, and I'll get back to you. |
OK, did some more testing with this code, and more running on it with a live system. |
This reverts commit 504a478.
Replacement for #1359 and #1352. Installs socat on all platforms so shared-node will work.