-
Notifications
You must be signed in to change notification settings - Fork 7
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
Stopped working #93
Comments
Hi! Thank you for the feedback. Could you specify the following attributes:
|
Owlet doesn’t work with at all with nightscout server I have: Instead of this, I use Juggluco server running on my computer as Nightscout server. Juggluco server receives its data from Juggluco on the phone. See: https://www.juggluco.nl/Juggluco/webserver.html After the update to Owlet-0.8.0-beta-linux-x86_64.AppImage, it still has this problem. It happens when I suspend the computer and the next day, I resume it. At that moment Juggluco server hasn’t received the data from the phone jet. Owlet does the following commands: Thereafter Owlet asks: By the way, why use srvCreated and not date? date is specified by the uploader, srvCreated is created by Nightscout itself is not equal to the measurement time. |
Thank you for the investigation. I chose the v3 API because it is well-structured and returns much less data when using path params filtering compared to v1 and v2. An interesting point to consider is the nightscout-widget-electron/js/util.js Line 76 in 1da6038
However, in general, we only need the two latest measurements to calculate the delta between them. An interesting point is using
I will try substituting |
srvCreated is present, but as I said, it doesn’t give the measurements time. When I turn on my computer the next day, the glucose measurements of the past night all get a srvCreated time of the time they are added to the Nightscout database. Is that what you need to know? {
"app": "Juggluco",
"device": "3MH00V0LR7D",
"date": 1706498381000,
"sgv": 115,
"delta": 0.7,
"direction": "Flat",
"type": "sgv",
"utcOffset": 0,
"identifier": "37524c30-5630-3048-44ee-10864eeeeeee",
"created_at": "2024-01-29T03:19:41.000Z",
"srvModified": 1706515511271,
"srvCreated": 1706515511271
}, 1706515511271 milliseconds since 1 Jan 1970 00:00 GMT, is Mon Jan 29 08:05:11 UTC 2024 that is very different from the time of measurement, which is given with "created_at" and “date”. {
"status": [
{
"now": 1706528632271
}
],
"bgs": [
{
"sgv": "80",
"trend": 4,
"direction": "Flat",
"datetime": 1706528535000,
"bgdelta": 0,
"iob": "0",
"bwp": "0",
"bwpo": 4.4,
"cob": 0
},
{
"sgv": "82",
"trend": 4,
"direction": "Flat",
"datetime": 1706528475000
},
{
"sgv": "83",
"trend": 4,
"direction": "Flat",
"datetime": 1706528415000
},
{
"sgv": "83",
"trend": 4,
"direction": "Flat",
"datetime": 1706528354000
},
{
"sgv": "83",
"trend": 4,
"direction": "Flat",
"datetime": 1706528294000
},
{
"sgv": "82",
"trend": 4,
"direction": "Flat",
"datetime": 1706528234000
}
],
"cals": []
} This interface is very old, only units=mg is somewhat newer. To be robust, you can better test on the size of glucose values. If they are less than 35, they are mmol/L otherwise mg/dL. |
I can not reproduce the bug with the But I got the previous version on my site
If you wouldn't mind, could you please share your NS URL and API key in a direct message via e-mail: [email protected] with me to help reproduce the bug? |
I downloaded the last version from https://github.com/nightscout/cgm-remote-monitor: 15.0.2 (as I already wrote above: #93 (comment)). You use 14.2.6. {
"status": 200,
"result": {
"version": "15.0.2",
"apiVersion": "3.0.3-alpha",
"srvDate": 1706535337163,
"storage": {
"storage": "mongodb",
"version": "6.0.4"
},
"apiPermissions": {
"devicestatus": "crud",
"entries": "crud",
"food": "crud",
"profile": "crud",
"settings": "crud",
"treatments": "crud"
}
}
} |
@j-kaltes Could you check the functionality with the latest release, please? Thanks in advance |
@j-kaltes Could you update the status? Thanks in advance. |
Yes, it now works with Nightscout 15.0.2. But that was not my interest. I don’t use Nightscout.
|
What is Juggluco? I found on the Internet that is an Android app. What do you mean when saying "using it with the Nightscout server in Juggluco"? Was this server hosted on the web or locally? What kind of Linux distro do you use? Send me a log pls. |
Juggluco is an Android app that can receive glucose values from Freestyle Libre 2 and 3 sensors via Bluetooth. It contains a web server that implements only the subset of Nightscout commands that are really used by Nightscout clients. This webserver in Juggluco can be used by all Nightscout clients as far as I know (for Aapsclient you have to use the next version of Juggluco). The network part of Juggluco is also put in a command line program called Juggluco server this can be used as a gateway between phones when they can’t be connected directly, but also contains the Nightscout web server. 2024-01-30-11:07:52 313677 webserver: watchcommands len=514 GET /api/v2/authorization/request/Dit7Moet8Je9Weten HTTP/1.1^M Nothing happens hereafter. Here another time: |
Please send me the main.log file from .config folder. If the app cannot connect to the server it should trigger an networkConnectionError after 5 failed tries to get the data. |
@j-kaltes Could you send me a main.log file? I need to check the output of the application, not the webserver's logs. Thanks. |
main.log shows nothing. Today I had a few times the same problem. Pressing Test or Save helped nothing. Restarting didn't help. What helped was: rm -rf ~/.config/Owlet/*Cache* Now I have the same problem. When I use another host name for the same site, the problem was solved. Also when I change back to the previous host name. It is 16:42 +01:00 and the log ends with the following: [2024-01-29 11:12:14.720] [warn] Renderer: Settings were updated. Widget will be restarted. color: orange |
@j-kaltes Could you provide me a reachable web server for test with your env set up? I can not reproduce this kind of behavior on my Linux machine. Thanks. |
I have send an URL and token by e-mail. It will be down most of the time, the problem arises after a down time. |
After successfully running Owlet under Linux, Owlet stopped working.
Changing to ~/.config/Owlet, this problem continued after
rm -rf 'Code Cache' OwletCache GPUCache
Only after
rm -rf SingletonSocket .org.chromium.Chromium.5osK3X /tmp/scoped_diry6XhxF
did the problem subside.The text was updated successfully, but these errors were encountered: