cgm图编辑器_桥接Dexcom分享CGM接收器和Nightscout

2024-01-01 14:30

本文主要是介绍cgm图编辑器_桥接Dexcom分享CGM接收器和Nightscout,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

cgm图编辑器

cgm图编辑器

I've long lamented the sad state of Diabetes technology. For the last 20 years I've been told that it'll be cured in the next few years. (Spoiler: That hasn't happened.)

我一直为糖尿病技术的悲哀感叹。 在过去的20年中,我被告知它将在未来几年内治愈。 (剧透:这没有发生。)

Fortunately some technological breakthroughs have happened, like the CGM (Continuous Glucose Meter). This device has a transmitted embedded in my belly that transmits to a small receiver. However, my wife couldn't see my blood sugar remotely, so the Nightscout open source project pretends to be computer connected to the receiver, then uploads it to your own website. Then you can see your blood sugar on your watch, or family and friends can log in also. This project has been moving along nicely for a year or so now.

幸运的是,发生了一些技术突破,例如CGM(连续血糖仪)。 该设备的发射器嵌入我的腹部,然后发射到小型接收器。 但是,我的妻子无法远程看到我的血糖,因此Nightscout开源项目假装将计算机连接到接收器,然后将其上传到您自己的网站。 然后,您可以在手表上看到血糖,或者家人和朋友也可以登录。 这个项目已经进行了一年左右。

Just last month Dexcom, the CGM maker, released an update to their receiver that includes Bluetooth, called the Dexcom Share. Now my transmitter goes to my Dexcom device which then bounces via Bluetooth LE to my phone, which is then uploaded to the Dexcom site. The Dexcom iPhone app will support the Apple Watch in the future as well, they say.

就在上个月,CGM制造商Dexcom向其接收器发布了包括蓝牙在内的更新,称为Dexcom Share。 现在,我的发射器转到我的Dexcom设备,然后该设备通过Bluetooth LE反弹到我的手机,然后将其上传到Dexcom站点。 他们说,Dexcom iPhone应用程序将来也将支持Apple Watch。

However, I'd like more control over my data. Dexcom's solution (as of the time of this writing) is iPhone/iPad only. Not everyone can afford an iWatch and iDevices. I'd like to use my Pebble Watch, for example, which is supported in Nightscout today.

但是,我想对数据进行更多控制。 Dexcom的解决方案(在撰写本文时)仅适用于iPhone / iPad。 并非每个人都能买得起iWatch和iDevices。 例如,我想使用我的Pebble手表,今天的Nightscout支持该手表。

I got the Dexcom Share at 3:30pm today in the mail. By 4:40pm it was paired to my iPhone and working nicely. So what I really need is a simple bridge that takes my Dexcom Share data and copies it to Nightscout. From there I can analyze it, send it to my Pebble, or do whatever.

今天下午3:30,我通过邮件收到了Dexcom Share。 到下午4:40时,它已与我的iPhone配对,并且运行良好。 因此,我真正需要的是一个简单的桥接器,它将我的Dexcom Share数据复制并复制到Nightscout。 从那里我可以分析它,将其发送到我的Pebble,或执行任何操作。

从Windows机器观看iPhone流量 (Watching iPhone Traffic from a Windows Machine)

First, I need to understand the Dexcom Api. Let's watch the iPhone talk to Dexcom. I'll install Fiddler on my Windows machine and configure Fiddler as a proxy server. I'll need to trust the Fiddler SSL cert (only for dev purposes) on both the iPhone and the Windows machine. My machine is called Hexpower7 and the proxy is on port 8888. I'll visit http://hexpower7:8888 on my iPhone and install the cert there also, which will allow me to watch the traffic and learn about the API.

首先,我需要了解Dexcom Api。 让我们看一下iPhone与Dexcom的对话。 我将在Windows机器上安装Fiddler并将Fiddler配置为代理服务器。 我需要在iPhone和Windows计算机上都信任Fiddler SSL证书(仅出于开发目的)。 我的机器称为Hexpower7,代理位于端口8888上。我将在iPhone上访问http:// hexpower7:8888,并在那里安装证书,这将使我能够观察流量并了解API。

I learned a few things by watching the traffic.

通过观察交通情况,我学到了一些东西。

Watching Traffic

使用CURL呼叫Dexcom (Calling Dexcom with CURL)

First, when you login to the Dexcom API you get a Session ID, which is common and to be expected. With that Session ID you can get your sugar values. After the login I retrieved my latest sugar number:

首先,当您登录Dexcom API时,您将获得一个会话ID,这是常见的并且是预期的。 使用该会话ID,您可以获取糖值。 登录后,我获取了最新的糖号:

curl -k -X POST "https://share1.dexcom.com/ShareWebServices/Services/Publisher/ReadPublisherLatestGlucoseValues?sessionID=GUID&minutes=1440&maxCount=1" -H "Accept: application/json" -H "Content-Length: 0"

resulting in:

导致:

[{"DT":"\/Date(1426290216000-0700)\/","ST":"\/Date(1426293817000)\/","Trend":4,"Value":113,"WT":"\/Date(1426290240000)\/"}]

Here's a screenshot:

这是屏幕截图:

Talking to Dexcom Share from CURL

Cool. So I pair-programmed with Benjamin West from the Nightscout project and we spent an hour writing a script to get my Dexcom Share data and bridge/POST it to Nightscout.

凉。 因此,我与Nightscout项目的Benjamin West进行了配对编程,我们花了一个小时编写脚本来获取我的Dexcom Share数据并将其桥接/发布到Nightscout。

I put the script in an Azure WebJob and it's pulling my Share data and putting it into Nightscout every few minutes. I won't post the code here, rather the Nightscout team will take our prototype from here, but the result is lovely.

我将脚本放在Azure WebJob中,每隔几分钟就会提取我的Share数据并将其放入Nightscout。 我不会在这里发布代码,但是Nightscout团队将从这里获取我们的原型,但是结果很不错。

I don't have to carry an extra Android device anymore, I just use my Dexcom Share and its supported iPhone uploader application. Very cool.

我不再需要携带额外的Android设备,只需使用我的Dexcom Share及其受支持的iPhone上传程序即可。 很酷。

Now it's 7:30pm, just a few hours after I got my Dexcom Share and I've got the best of both worlds. The API was easy to use and we didn't spend more than two hours on it. Most of the time was waiting for the transmitter to complete its warmup cycle.

现在是晚上7:30,这是我获得Dexcom Share的几个小时后,我已经两全其美。 该API易于使用,我们花了不超过两个小时的时间。 大部分时间都在等待发送器完成其预热周期。

My Blood Sugar in the Cloud

I'll do a formal Dexcom review soon, but I can already tell you it's a winner. Everyone who can get a CGM should get a Dexcom Share. It's a thrilling device. I would like the iPhone app to support iPhone 6 and 6+ screen-sizes better, and a nicer UI, but all in all, it's a great device.

我将很快进行正式的Dexcom审查,但我已经可以告诉您它是赢家。 每个能够获得CGM的人都应该获得Dexcom股票。 这是一个令人兴奋的设备。 我希望iPhone应用程序能够更好地支持iPhone 6和6+屏幕尺寸,以及更好的UI,但总而言之,它是一款出色的设备。

Don't forget, visit http://marchisformakers.com, tell your friends and tweet us at #MarchIsForMakers!

别忘了,访问http://marchisformakers.com ,告诉您的朋友,并在#MarchIsForMakers上鸣叫我们!

Sponsor: Big thanks to Aspose for sponsoring the blog feed this week! Are you working with Files?Aspose.Total for .NET has all the APIs you need to create, manipulate and convert Microsoft Office documents and many other formats in your applications. Start a free trial today.

赞助商:非常感谢Aspose本周赞助了博客提要! 您正在使用文件吗? .NET的Aspose.Total具有在应用程序中创建,处理和转换Microsoft Office文档以及许多其他格式所需的所有API。 立即开始免费试用。

相关阅读 (RELATED READING)

  • The Sad State of Diabetes Technology in 2012

    2012年糖尿病技术的悲惨境况

  • Scott's Diabetes Explanation: The Airplane Analogy

    斯科特的糖尿病解释:飞机类比

  • YOUTUBE: How my diabetes equipment works

    YOUTUBE:我的糖尿病设备如何工作

翻译自: https://www.hanselman.com/blog/bridging-dexcom-share-cgm-receivers-and-nightscout

cgm图编辑器

这篇关于cgm图编辑器_桥接Dexcom分享CGM接收器和Nightscout的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/559546

相关文章

Ilya-AI分享的他在OpenAI学习到的15个提示工程技巧

Ilya(不是本人,claude AI)在社交媒体上分享了他在OpenAI学习到的15个Prompt撰写技巧。 以下是详细的内容: 提示精确化:在编写提示时,力求表达清晰准确。清楚地阐述任务需求和概念定义至关重要。例:不用"分析文本",而用"判断这段话的情感倾向:积极、消极还是中性"。 快速迭代:善于快速连续调整提示。熟练的提示工程师能够灵活地进行多轮优化。例:从"总结文章"到"用

【专题】2024飞行汽车技术全景报告合集PDF分享(附原数据表)

原文链接: https://tecdat.cn/?p=37628 6月16日,小鹏汇天旅航者X2在北京大兴国际机场临空经济区完成首飞,这也是小鹏汇天的产品在京津冀地区进行的首次飞行。小鹏汇天方面还表示,公司准备量产,并计划今年四季度开启预售小鹏汇天分体式飞行汽车,探索分体式飞行汽车城际通勤。阅读原文,获取专题报告合集全文,解锁文末271份飞行汽车相关行业研究报告。 据悉,业内人士对飞行汽车行业

java常用面试题-基础知识分享

什么是Java? Java是一种高级编程语言,旨在提供跨平台的解决方案。它是一种面向对象的语言,具有简单、结构化、可移植、可靠、安全等特点。 Java的主要特点是什么? Java的主要特点包括: 简单性:Java的语法相对简单,易于学习和使用。面向对象:Java是一种完全面向对象的语言,支持封装、继承和多态。跨平台性:Java的程序可以在不同的操作系统上运行,称为"Write once,

分享5款免费录屏的工具,搞定网课不怕错过!

虽然现在学生们不怎么上网课, 但是对于上班族或者是没有办法到学校参加课程的人来说,网课还是很重要的,今天,我就来跟大家分享一下我用过的几款录屏软件=,看看它们在录制网课时的表现如何。 福昕录屏大师 网址:https://www.foxitsoftware.cn/REC/ 这款软件给我的第一印象就是界面简洁,操作起来很直观。它支持全屏录制,也支持区域录制,这对于我这种需要同时录制PPT和老师讲

【干货分享】基于SSM的体育场管理系统的开题报告(附源码下载地址)

中秋送好礼 中秋佳节将至,祝福大家中秋快乐,阖家幸福。本期免费分享毕业设计作品:《基于SSM的体育场管理系统》。 基于SSM的体育场管理系统的开题报告 一、课题背景与意义 随着全民健身理念的深入人心,体育场已成为广大师生和社区居民进行体育锻炼的重要场所。然而,传统的体育场管理方式存在诸多问题,如资源分配不均、预约流程繁琐、数据统计不准确等,严重影响了体育场的使用效率和用户体验。

图书管理系统系统分享

分享一个图书管理系统,Java、SpringBoot、Vue和MySQL开发的图书馆管理系统 gitee项目地址:https://gitee.com/yuanmomoya/open-source-project/tree/master/books-management-system GitHub项目地址:https://github.com/yuanmomoya/open-source-pro

站长常用Shell脚本整理分享(全)

站长常用Shell脚本整理分享 站长常用Shell脚本整理分享1-10 站长常用Shell脚本整理分享11-20 站长常用Shell脚本整理分享21-30 站长常用Shell脚本整理分享31-40 站长常用Shell脚本整理分享41-50 站长常用Shell脚本整理分享51-59 长期更新

分享MSSQL、MySql、Oracle的大数据批量导入方法及编程手法细节

1:MSSQL SQL语法篇: BULK INSERT      [ database_name . [ schema_name ] . | schema_name . ] [ table_name | view_name ]         FROM 'data_file'        [ WITH       (      [ [ , ] BATCHSIZE = batch_siz

VMware桥接网络问题

VMware中创建虚拟机桥接网络无法访问外网问题解决:需要指定虚拟机的DNS为主机的网关IP即可。 Centos网络配置文件地址:/etc/sysconfig/network-scripts/ifcfg-ens33 重启网卡:service network restart

分享一个基于uniapp科技馆服务微信小程序 博物馆管理小程序(源码、调试、LW、开题、PPT)

💕💕作者:计算机源码社 💕💕个人简介:本人 八年开发经验,擅长Java、Python、PHP、.NET、Node.js、Android、微信小程序、爬虫、大数据、机器学习等,大家有这一块的问题可以一起交流! 💕💕学习资料、程序开发、技术解答、文档报告 💕💕如需要源码,可以扫取文章下方二维码联系咨询 💕💕Java项目 💕💕微信小程序项目 💕💕Android项目 �