-
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
Compress data #1443
Compress data #1443
Conversation
Note the REST API supports if-modified-since headers, use of which will hugely reduce bandwidth consumption. This is being used in loading the glucose values but could be added to other data as well? |
Looks like oref0-pushover never gets to the point of doing the NS calls if you don't have pusover_token and pushover_user set in your preferences.json: Lines 21 to 24 in d553394
So if you don't use Pushover, you can remove the pushover optimizations and then we can merge this with the |
d553394
to
9469ac6
Compare
Thanks @scottleibrand I see your point about not calling if pusover_token is not set. |
Using nightscout on google cloud there is a limit on the BW that can be used for free.
The maximum free amount that can be used is 1G per month.
It seems that two rigs use that BW in a day, not in a month.
This checkin decreases the amount of data that is used significantly by doing two things:
Without this changes each pushover takes 250k and there is one of this calls every minute. After compressing, we get to ~10k of data. This is still too much, so I have changed this to be 20 entries only.
If that does not make sense, please let me know.