return to table of content

How I keep myself alive using Golang

princevegeta89
16 replies
18h22m

After messing around with Elixir, I decided on my own that the Elixir ship wasn't worth it for me and I moved on to typescript.

Now I am debating between Rust and Go for backend development (for a web service). Which one between these two would be recommended for my needs? My priorities are to be able to learn quickly and develop/iterate as fast as possible.

not-my-account
8 replies
18h21m

Go is probably your choice, it was stupid fast to pick up. It’s a fun language too

princevegeta89
7 replies
18h19m

Is there a good batteries-included framework for Go, like Ruby on Rails or Django?

ralfhn
2 replies
18h14m

The Go community is generally averse to frameworks.

princevegeta89
1 replies
18h5m

Looks like it, however, wouldn't that decrease the speed of development for new people that come onboard?

guessmyname
0 replies
18h1m

[…] wouldn't that decrease the speed of development for new people that come onboard?

If that was the case, wouldn’t people who love Go have created one after more than a decade in existence?

The reason why Go developers don’t like “frameworks” a-là Ruby on Rails in the Ruby ecosystem is because the Go community generally prefers libraries over frameworks because Go’s simplicity and flexibility allow developers to compose their solutions using small, composable packages rather than being constrained by a rigid framework.

This approach often results in more efficient and maintainable code. The Go philosophy emphasizes minimalism and encourages developers to avoid unnecessary abstractions.

kreek
1 replies
17h51m

While not quite as batteries-included as Rails, Fiber made the most sense to my Ruby/Rack brain.

princevegeta89
0 replies
14h9m

Thank you!

machekb
0 replies
11h1m

The OP is using Encore (https://github.com/encoredev/encore) for the project described, it's pretty much what you are asking for.

petesergeant
1 replies
17h54m

Unless your goal is learning the new language for the sake of it, Node should already be plenty performant for most needs

princevegeta89
0 replies
14h8m

Yes, I am really looking at using something new since I did get bored with the JS/TS world.

blandflakes
1 replies
17h51m

I'd love to hear why Elixir wasn't for you - not from a judgemental place, I just like hearing others' experience reports for languages that stuck or didn't.

For a web service with fast iteration times, I'd probably pick Go of those two. While I'm not personally a giant fan, I think it is a much simpler stack that lets developers be pretty productive especially in the domain of web services.

princevegeta89
0 replies
14h7m

Iteration was easier but the main complaint from my team was it was hard for junior engineers to pick up and understand. Along with that, IDE support still seems poor (we use Jetbrains and the Elixir plugin doesn't work reliably for us)

aleksiy123
1 replies
18h13m

If your goal is iteration and development and not performance, why not just stick with a typescript backend?

princevegeta89
0 replies
14h8m

Just wanted to use something new this time since I feel like I'm bored with TS now.

srameshc
0 replies
18h14m

Go is "amazing" . I am using Go since the very early days, and I absolutely love it. I have built services using Go and manage it all by myself. The community is so awesome and there is likeyly an opensource project that supports your need when you want it to do something exceptional.

hk1337
9 replies
17h40m

I could be mistaken but I believe both types of diabetes has no cure; however type 2 is MUCH MORE manageable with a proper diet?

tibbydudeza
4 replies
15h50m

Type 2 is called Insulin Resistance - basically your pancreas works fine but the cells in your body stops responding to the hormone that tells it to remove glucose from your blood leading to a dangerous build up.

I use a drug called Metformin daily which slows down my digestive tract (you feel fuller after a meal longer like Ozempic), lowers the uptake of glucose in your gut and lowers glucose production in your liver.

That and a low carb diet is essential.

glp1guide
1 replies
13h24m

Also note that drugs like Ozempic (GLP1 Receptor Agonists) work in at least the following ways:

- slow down stomach emptying (which was noted)

- improving glucose disposal

- reduce appetite by affecting brain chemistry

GLP1 RAs are really really interesting compounds (I'm a bit biased of course)

tibbydudeza
0 replies
8h4m

I must note my gut has some interesting moments with it - some days - also I used to love mince (think US calls it a sloppy joe) - now I can't stand the sight and smell of it.

AnonHP
1 replies
14h43m

That and a low carb diet is essential.

Not essential. There are people who manage it or even get into remission with high carb diets (high carb low fat) too. One common thread across all these diets is avoiding processed foods.

tibbydudeza
0 replies
8h8m

I miss my pasta and rice :).

renatolb
2 replies
17h15m

There's no cure, but 'remission' is possible in type 2 diabetes with lifestyle changes. Remission is defined as maintaining normal blood sugar levels without medication. This is not possible in type 1 diabetes

mnw21cam
0 replies
4h35m

"There's no cure" for type 2 diabetes is true only on a technicality. Type 2 diabetes is defined as a progressive disease, which means that if you actually practically cure it, it is still technically defined as "in remission". It's just words.

Projectiboga
0 replies
13h33m

Type 1 here, there is a simple hack for both 1 & 2 and it's take melatonin at night. That upregulates the actual insulin receptors to do more with less insulin. I've been using that for 28 years now. My insulin requirements dropped 40% over my first 6 months and have stayed there ever since. I know two Type 2 who went into remission with diet, melatonin and who tapered off pills after initial use.

croemer
0 replies
16h36m

Type 1 and 2 are quite different beasts - they both have in common that you pee sugar when it's not managed (diabetes means sweet urine in Greek).

Type 1 is when your immune system erroneously kills the cells producing insulin in your pancreas. Treatable by injecting insulin manually - but as any substitute, there are caveats, it's not perfect. Type 1 is pretty binary, you either have it or you don't, it appears rather rapidly, usually at young age, up to around 20. There's no way to avoid injections through diet.

Type 2 is when the cells that are _reacting_ to insulin are no longer doing so very well. Lots of reasons: genetics, body weight, physical activity. It's much less binary, with gradual onset over years. Can initially be managed by change of diet, activity, pills - later it also requires injections like type 1.

ping00
8 replies
18h4m

I just wanted to add that your writing style is wonderful and that this was a pleasure to read.

Incidentally, I work in pentesting, and one of my colleagues has Type 1 Diabetes; your overview of it and its resultant complexities really made me empathize with what challenges he has to surmount daily while still being one of the nicest, most approachable people in our team.

begueradj
3 replies
10h40m

Your employer must be good then. Lots of companies don't hire and fire sick employees. Actually it's generally advised not to share one's medeical information at workplace.

I even read recently about the case of a worker who wasn't promoted despite everyone else expected him to be promoted. His sin ? He told briefly one of his colleagues that his car got stuck and he was tired of fixing it every now and then.

The promotion involves commuting for a certain distance. His manager told him he would have promoted him but he heard his car was not fit.

dgellow
1 replies
10h29m

Difficult to hide your diabetes when you wear a sensor on your arm and have to inject insulin throughout the day

yurishimo
0 replies
8h35m

Actually, the sensor is super easy to hide (especially with long sleeves) and injecting is also quite discreet these days. I've seen injectors that are about the size of a marker or a wireless earbuds case. It's easy enough to go to the bathroom right before lunch or when you get an notification on your phone.

rob74
0 replies
9h23m

In Germany, depending on the type and seriousness of your diabetes, you can get officially recognized as handicapped, and companies above a certain size (20 employees) are obligated to have a certain number of handicapped employees - so an employee who is handicapped, but can work (more or less) the same as a normal employee is actually a win-win situation.

mattboyle
0 replies
15h53m

Thanks so much for the kind words :)

froh
0 replies
9h45m

also incidentally, pentesting as in testing diabetes pens may partially be done with pentesting as in testing with pen and paper. is it, though?

and then there is penetration testing as in trying to break into things. is that what you do?

sigh

bluesounddirect
8 replies
17h44m

Sorry 1/2 into the article all that kept popping into my head is someone tell this man about a cgm like a dexcom . It all of this out of the box . My wife has been a t1d for 30 years the dexcom cgm makes all of this a lot better

ShakataGaNai
5 replies
17h37m

He has that. The problem is not the CGM, it's everything around that (and the fact that both Freestyle Libre, and Dexcom, don't readily expose the data for the DIY types to do anything with).

While the Dexcom is "better" (than Freestyle Libre) in my opinion because the recent revision can talk directly to your phone continuously (the Libre only sends alerts, getting data requires you tapping phone to arm)... your insurance may cover only one or other. Either is way way better than nothing, but both are still a long way from automation.

natdempk
4 replies
17h6m

Not sure exactly what you mean by "getting data" but recent versions of both Libre and Dexcom have apps where you can view graphs of data on your phone with no tapping step.

muwtyhg
1 replies
16h25m

It seems like you and the GP didn't read even the first 20% of the article. The author shows their CGM in the first 2 page lengths. They mentioned they did all of this because the official Libre app was constantly losing connection with their CGM. He bought a "hat" device called a "Miao Miao" and then siphoned off the data to his own CGM service that won't cut out if it receives, as the author puts it, "anomalous readings"

It has a side benefit of allowing them to show it on their Apple Watch using Google Calendar only.

natdempk
0 replies
15h44m

Actually I did read the whole thing before posting... There are different CGM models where some require scanning and some report continuously. My reading was that the author's model seemed to only support scanning thus the need for the hat, rather than periodic updates to an app that newer models provide, but it doesn't seem 100% definitive from the article as I don't know if on newer models data export might require scanning? The point of my comment was that rather than all this work, getting a different device could more-or-less enable the desired functionality without so many workarounds and the bulky hat device by eliminating the whole scanning/inconsistency aspect. Though if you want to pull the raw datapoints etc. and export them elsewhere, then there are still more complications. The non-scanning ones might still be a bit unreliable as well, not sure where that aspect is coming from.

jstanley
0 replies
12h11m

"Getting data" would mean automated exports into a format that you can actually do some processing on. Not just viewing graphs on a screen.

croemer
0 replies
16h44m

NHS likely doesn't pay for Dexcom. Someone has figured out how to make the Dexcom app broadcast values it's received, it works great: https://www.patreon.com/byod

mattboyle
1 replies
15h56m

I wrote the article- I’m very aware of Dexcom and it doesn’t have all this out the box

user_7832
0 replies
15h20m

Have you looked into third party apps? I’m very personally used the app diabox (on android), I’ve heard suggah (if I spelt it correct) also supports a nightscout link like diabox. However I’m not sure how these work with dexcoms.

Sxubas
8 replies
16h30m

Mildly related, I was diagnosed with obstructive sleep (OSA) apnea 6 months ago, and when sleeping I have to use a machine that blows air with a set pressure so it 'counters' the obstruction (a CPAP machine). Not mission critical like type 1 diabetes, but those machines log a lot more than I expected.

While reading this I wondered if someone has geeked something for similar for OSA, maybe for monitoring purposes or more severe cases.

I already know (and am incredible grateful for) OSCAR[1], but I'm really curious to see what else is out there.

1: https://www.sleepfiles.com/OSCAR/

tibbydudeza
5 replies
16h4m

Rather mission critical I reckon. A CPAP machine was a life changer for me - long term untreated sleep apnea causes heart and other life issues.

During my sleep study I logged about at the worst 48 incidents per minute of stopping to breath (kind of difficult to do that when you tongue rolls back into your airway)

sbstp
4 replies
13h37m

My sleep study revealed 90.7 events per hour (30 is considered severe) and 55% blood oxygen level. I've been using a CPAP machine for about 2 months now, but still feeling pretty tired in general. Still waiting for the life changing effects.

hnlmorg
1 replies
10h1m

I was around 79 events and my CPAP was also life changing. But they’re not easy to get right.

First you need a mask that fits the profile of your face and the severity of your condition. There are a lot of different shapes and designs. Having tried a few, some were completely useless for me. Only one actually worked.

Facial hair also affects the performance of the mask too. I don’t know if this is something you need to be concerned about or not, but if you have a beard and wear a full mouth and nose mask, then you might want to consider a change of appearance.

Then you have the configuration of the CPAP machine itself:

+ how much pressure to apply?

+ what, if any, ramp up period to use before deep sleep pressure is applied?

Those two metrics took a bit of tuning before I found something I was comfortable with.

I was lucky that I had (and still have) an excellent doctor to guide me through all of this. Free from the UK NHS too. I can’t imagine having to navigate all of these caveats on my own.

Good luck with the CPAP machine. Not getting enough quality sleep can be debilitating. I’ve been in the same situation as you so understand how horrible life was before my CPAP machine.

tibbydudeza
0 replies
8h9m

I unlocked the machine by pressing two buttons and rebooting it and changed the ramping algorithm to less aggressive and increased the start pressure as it felt I was breathing from a straw when I tried to sleep.

I use a nasal mask (not the pillows) since I am not a mouth breather - for me the Fisher & Paykel Eson 2 (L) was just the right fit - took about two different masks before I settled on it.

manmal
0 replies
12h31m

Maybe you need a BIPAP.

cpuguy83
0 replies
12h35m

Have you analyzed the data from your cpap to see if it's doing what it needs to do? It has the data for your apnea events, sleep time, all kinds of interesting things.

Check for leaks. Make sure your mask is actually comfortable, I'd recommend trying multiple if you haven't already.

cpuguy83
1 replies
12h38m

https://home.sleephq.com/ does a good job of processing this data if they support your machine.

TheCapeGreek
0 replies
11h1m

Interesting, first time I've had a website break on Firefox like this. The CSS & JS are being blocked for tracking on Unbounce.

martsa1
4 replies
18h2m

Nice write up! I stumbled across the Open Pancreas project a while back, may be of interest to techies with T1: https://openaps.org/

brandonp0
3 replies
15h58m

There's also Loop on the iOS side: https://github.com/LoopKit/Loop. I've been using it for 7 or 8 years. There's also several pumps that have closed loop capabilities built-in, but I've found that they try so hard to play it safe that they are less capable than running your own.

Benjamin_Dobell
2 replies
15h25m

Agreed. My daughter (5) is using a G6 + TSlim X2 closed loop. The target blood glucose is 6.0 mmol/L and you can't decrease it. However, I haven't tried (and likely won't try) anything DIY since it's my daughter and not myself.

Despite this, it is nice whilst my daughter is at school, since some automated corrections (even if overly conservative) are certainly better than none — teachers generally won't administer corrections (but will bolus for food).

user_7832
1 replies
15h15m

As someone who’s planning to start a TSlim, this is a bit worrying. Admittedly even an average value of 7mmol would be an improvement over where I am, but I’ve certainly heard the lack of aggressiveness as an issue with the controlIQ system (if that’s what your daughter is using).

Benjamin_Dobell
0 replies
14h35m

Yeah, ControlIQ.

I do imagine it's different for everyone though, and would also depend on what your alternatives are. In our circumstances, it's a huge improvement over manual injections. But by no means the closed loop silver bullet we're all hoping for.

We ran the TSlim on BasalIQ (precursor to ControlIQ) for a couple of years. Haven't done her HbA1C since we swapped, so I don't have any hard data. Well, and with the constant changing lifestyle of kids, all data needs to be taken with a grain of salt. I think we're being woken by high alarms less often, but she just seems to be fairly high (just under 10 mmol/L) much more often. There are of course still run away highs much worse than that (don't want to misrepresent the situation!) and I guess they're somewhat mitigated by ControlIQ, but it definitely doesn't stop them outright, and manual corrections are still required if you want the high resolved in under 2 hours.

lol768
3 replies
19h8m

I went to Open Data Camp in the UK in 2023 and there was an interesting talk from two attendees with Type 1 diabetes about how locked down a lot of these devices are from a data perspective, which seems like a real shame - particularly when it's your own health data they're collecting!

CGM devices seems like the gold standard in terms of what they're natively capable of (and you don't need something separate on top of a flash sensor) and I think they're free on the NHS. Lots of them have companion smartphone apps, so you'd assume that it's possible to reverse engineer whatever API that these apps are using in order to get at the raw data. Dexcom seemingly does have an API, but it only works if you're located in the US.

secabeen
2 replies
18h27m

From what I've gathered, the community has largely given up on trying to get at the raw data through Libre and Dexcom. That's not going to work in the long run, as Dexcom or Libre could cut it off at any time. The smarter solution is just to reverse-engineer the software component of these systems and take Dexcom/Libre out of the equation, or (even better) run a parallel system that does the data exporting you want. There are a number of open source solutions in this area. No guarantee that your physician will accept these, but they are pretty interesting, and very feature rich.

selimthegrim
0 replies
16h34m

I worked for a company that had licenses for Libre, Insulet and Dexcom and we had their serial APIs - but you had to plug it in to your computer, store the data at our colo and use a Java applet to view it in the browser. In 2014. Unsurprisingly mobile apps have had more uptake since.

croemer
0 replies
16h42m

T1D here. Luckily not true, exporting works well at least for Dexcom on Android with https://www.patreon.com/byod

It's a patched app that broadcasts values it receives to any app that's listening, e.g. xdrip.

Libre 2 has also got patches floating around on the internet.

__loam
3 replies
15h55m

The worst thing about ai art is having it inflicted on me at the beginning of every medium article now.

wiseowise
1 replies
11h43m

It looks ugly and out of place.

__loam
0 replies
10h53m

The article is very good and involves several things I'm passionate about including go and medical devices, I just wish software engineers realized how bad the Dalle3 stuff looks.

smallpipe
0 replies
9h46m

Yes! It's a great article, but why does anyone want a picture where the sun somehow manages to melt the glazing bar to illustrate an article about diabetes ? Or a big "Raise incident" button with all the other buttons being meaningless rubbish ?

grahar64
2 replies
12h36m

My son was diagnosed in 2022 with T1D, I wrote this post about it mostly out of determination to understand how to manage https://maori.geek.nz/the-unreasonable-math-of-type-1-diabet...

He is now on Dexcom+Omnipod+AAPS and doing well.

Being familiar with PagerDuty and Datadog/ELK stack, all I want is a similar set of services that can scale (cheaply) to manage all people with T1D. Nightscout is a start but won't scale.

Awesome work and best of luck, T1D is shite.

mattboyle
1 replies
8h29m

Thanks Graham. We actually spoke a little on Twitter after you posted that article here a year or so a go. I’m really happy to hear your son is doing well

grahar64
0 replies
8h14m

Oh true, those days seem like a lifetime ago. I am now writing an app to make remote monitoring easier for Sams preschool, but are planning on writing a scalable replacement to Nightscout soon. Also digging into the various algorithms would be fun.

There are so many ways that software can make T1D more tolerable, I am glad you have found some solutions for yourself too :)

giantg2
2 replies
17h58m

I suspect that type 1 has an environmental cause/trigger in many cases. As an anecdote, I knew many kids from military families or live in close proximity to specific bases where some chemical contamination may exist who have endocrine system issues without any family history of them. I knew very few from other areas and backgrounds with similar issues.

Edit: I'm curious if the people disagreeing with my musings have some studies investigating the topic, or some other interesting point.

user_7832
0 replies
15h10m

I don’t know why you’re being downvoted, environmental triggers eg from pollution are linked to autoimmune conditions. Any kind of excessive (oxidative) stress would increase the chances of it for that matter.

chewxy
2 replies
18h47m

I talked to Matt about not owning our own data after GopherConSG where he gave this talk. It was enlightening how complicated the issue is - there's a lot of legal liabilities on the end of the data provider (the company that monitors the glucose) so I can understand why larger corps are a bit hesitant to open up.

On the other hand, it seems quite heinous that users don't have access to data that is rightfully theirs that they can action on it.

yndoendo
0 replies
17h2m

I never understood this. Would this be like buying a BIC pen and they have a required license agreement where any entropy made with the pen is owned not by the creator of the data but by the creator of the tool used? With out the person the data would not exists.

mattboyle
0 replies
15h54m

Hey Chewy! Good to see you here :)

zy0n911
1 replies
17h51m

Incidentally, I created something related to this yesterday. A tmux plugin to display your glucose data as a status icon in your terminal.

As a T1 myself, I use a Dexcom as my CGM and have it working around that specifically, but I'd love to open it up to other devices too, and offer more. Feel free to check it out! https://github.com/Cian911/tmux-xdrip

wferrell
0 replies
17h42m

Wow. This is really impressive. thanks for sharing.

tonymet
1 replies
17h47m

I love this post. there's a lot of potential for a personal monitoring platform like this. great work and keep staying alive

mattboyle
0 replies
15h53m

Thanks so much for the kind words!

sjwhitworth
1 replies
14h45m

incident.io CEO here! This is such a cool and unique usecase. Love it.

manmal
0 replies
12h25m

I’ve seen your terms don’t exclude liability for bodily harm - IANAL, but wouldn’t this be a possible issue?

sgt101
1 replies
9h6m

Camdiab (https://camdiab.com/faq) is available in some places (UK) to provide automated blood sugar level management.

I have dived into this a bit, and the thing that I grokked is the challenge of proving that the algorithm/device loops really work and are really safe. There has been a lot of painstaking work to develop and certify a thing like Camdiab. Unfortunately it also means that it's important to buy the right smartphone to make sure that the right libraries are available and being used by the app... Has been a bit expensive.

They have also walked the road of testing and proving the devices/algorithm for use in small children and teenagers. Bear in mind that this is all very complicated and there are a lot of differences in the behaviour of different hormone systems in different cohorts.

grahar64
0 replies
8h28m

My son was on CamAPS for about 6 months with the Dana pump. Systems like that are even harder to get out because it relies on 3rd party hardware. Medtronic, Insulet's and a bunch of other systems are rapidly becoming a walled garden where the only way you can run the hardware and software you want is to run open source like AAPS or iAPS.

secabeen
1 replies
18h31m

This is interesting, but is there a reason that you didn't explore the open source software in this space (Nightscout, xDrip, etc.)? These aren't new problems, and lots of people have solved them already with much more feature-full solutions that just work.

mattboyle
0 replies
15h54m

I did explore them; for what I wanted to do I could build it faster from scratch and it was a fun learning experience

miobrien
1 replies
3h30m

Amazing stuff. My three year old son was diagnosed four weeks ago so this really resonates with me.

massive
0 replies
12m

I’m in the same boat with you with my 3 year old daughter.

I’m grateful of the free health care that our country has.

mb7733
1 replies
15h44m

Great article! While I haven't done anything as involved I have found using technology to track health issues to be empowering myself.

I'm curious about your thoughts on insulin pumps. I'm not very familiar but I know a few people with T1 that use them and seem happy with them. My understanding is that the idea is that they both monitor glucose levels and supply insulin to keep things stable. Have you considered them? Is there a limitation/downside to them that isn't obvious to a non diabetic? Thanks!

mattboyle
0 replies
15h42m

Pumps work alongside something like a libre and you’re correct they can deliver insulin.

Unfortunatley I’m not eligible for an insulin pump on the NHS so for now I’m sticking with injections. I do a good job of managing them this way so it works for me for now.

gog
1 replies
6h10m

Take a look at xdrip4ios[1]. If you are using Libre 2 sensors you don't need MiaoMiao, Libre 2 has Bluetooth connectivity built in.

The other piece of the puzzle is Nighscout[2] that stores data in Mongodb (last time I looked at it). You can also enter a custom script to your Nightscout installation that can be your own endpoint to accepting JSON data about BG.

1) https://xdrip4ios.readthedocs.io/ 2) http://www.nightscout.info/

ollysb
0 replies
1h47m

In many countries the official Libre app now supports bluetooth continuous updates on Libre 2 and 3. That said I do much prefer xdrip4ios.

wwilim
0 replies
2h36m

I wonder how the age at diagnosis affects your approach. I see people like this guy or Scott Hanselman going "science the sh*t out of this" and minmaxing their health, but AFAIK they were diagnosed as adults. I was 4 when I was diagnosed and even though I know I could do something to try to improve my results, my approach ends up just being intuition, winging it and trying to think about it as little as possible. I'm left wondering if I have internalized powerlessness over this matter.

tomsmeding
0 replies
18m

During this period, I am not able to take my blood glucose levels using the device and I also would not receive alerts, if my blood sugar was to reach dangerous levels. This error had the habit of showing up at the most stressful times.

[...]

After playing around it seemed that the main app didn’t like sending data that it felt was anomalous due to a sudden change in blood glucose level.

That sounds like a life-threatening bug.

scopeh
0 replies
5h13m

Coding is 100% a superpower. Great post and love how you approached this. Hopefully it gives others similar ideas to help them.

petepete
0 replies
8h17m

I'm intrigued by the idea of the Miao Miao.

I'm a T1 diabetic and while the Freestyle Libre is an _amazing_ device, truly life changing, the software is pretty bad. I reported a bug more than a year ago and Abbott still haven't acknowledged it as being a bug, despite there being loads of reports online and in their app reviews on Google Play.

For anyone interested, or who might be able to add weight to my case for them to acknowledge it, the bug is that adding LibreLink to the list of apps that can override DND has no effect; entering DND mode instantly shows a warning that 'alarms are not available'. It's a pain in work settings where I can't enable DND without disabling my glucose alarms too.

mholt
0 replies
17h25m

A family friend of ours just had a child -- 6 years old -- diagnosed with diabetes, and has to wear one of these monitors, with that same app and everything.

Neat idea.

lemper
0 replies
11h25m

bro, life saving stuff you've created there. also, for the "i need help" part, i'd try my damnedest so things won't go south like that (500 error). how about put it into a loop with backoff or something?

keithnz
0 replies
16h51m

Scott Hanselman has blogged and youtubed about having type 1 diabetes over the years with various tech hacks. A while back he hacked it so his blood sugar showed up in his terminal prompt... https://www.youtube.com/watch?v=_meKUIm9NwA

jokethrowaway
0 replies
10h42m

That's an amazing blogpost for techies! Well written!

On the diet side, I'm living with almost no carbs for 2 years and over time my ability to turn fat into energy changed significantly, to the point I can do any activity I was doing before as long as I keep in check my sodium and potassium intake.

You can find people doing well with Type 1 and carnivore and you can find people telling you your insulin resistance will worsen.

I'd experiment regardless of what you find on the internet or the doctor tells you.

I spent two years of hell (not diabetes though, frequent diarrhea, stomach ulcers, blood in stool) following doctors indications and ended up with non sensical prescriptions and a low fat diet as a recommendation, when a high fat diet fixed all the symptoms in a week.

je42
0 replies
11h43m

Nice post ! I use a another set of tools to manage my type 1 and the one of my son.

Monitoring glucose:

Sensor libre 2 and xdrip mobile app using the bluetooth option where xdrip + oop2 reads values in 1min intervals. ( no miaomiao needed ) Values are pushed to nightscout

I got 2 nightscout instances: one for my self one for my son deployed to heroku.

Alarms are pushed to my phone for my sons low and high bloodsugar using pushover.

Heroku alarms are configured if service goes down.

Database: mongo atlas highly available.

We both use omnipod dash with android aps app.

A) helps with carb to insulin calc and carb counting, insuline on board.

B) closed loop, that auto corrects high glucose and stops insulin when too low

C) different profiles for things like "recently done sports" vs "didnt do much excerise in the last days"

D) aps app allows to track extra insuline injected by pen

dangerwill
0 replies
2h28m

You've set up a torture loop for yourself instead of listening to your body and the existing medical device. And you are now piping medical biometric data through both Google Calendar and your Apple watch.

captn3m0
0 replies
14h3m

A good alternative to writing your own echo server and debugging requests one route at a time is requestbin, which will gladly take any requests you throw at it, log them, and optionally return a response of your choice.

Lots of different implementations and hosts: https://duckduckgo.com/?q=requestbin

broswell
0 replies
15h58m

Diabetes Alert Dogs - Not technology based

I have recently be learning about tremendous success with well trained dogs alerting their owners as a complement to the technology based monitoring and alerting systems.

bmo-at
0 replies
3h34m

This is a great write-up. I will definitely implement a subset of this for my father, who is a type 1 diabetic. While he has lived with it for close to 25 years and has a lot of experience managing it, occasional slip ups still happen. Just recently, he had a small fracture from falling down during a hypoglycaemic episode. This might help prevent that or at least lessen the impact.

agao14
0 replies
56m

Slightly related, but I've also been working on and off for a few years on my own Type 1 Diabetes management solution (https://github.com/algao1/iv3).

I haven't had time to work on it recently, but it uses ntfy and Retool to send alerts and visualizations. Originally I did everything over Discord, but found the UI to be not great especially on mobile.

I was thinking of eventually incorporating some kind of automatic remedial solution eventually to help keep my glucose in range, but haven't had any time to look into it yet.

UomoNeroNero
0 replies
9h6m

I have been diabetic for 16 years. I love your mood and I respect you, when you are sad or angry with the illness, reread this post and remember how sure you were that you could handle everything. It's not easy (mentally and practically) and for me, for many years, the situation has been "joyfully out of control" Just yesterday I cried (really!) watching that for the first time in my sick life I had a 36 hour streak on target. 100% green for 36 hours. I repeat, I cried. Maybe I understood. Maybe... The leap in quality after years to 60% was due to: - microinfusor connected to the CGM (a revolution compared to pens) - having had the opportunity to share my experience as a diabetic with a group of other diabetics. Something like Alcoholics Anonymous but much more like Fightclub :-D - having installed a VM with NightScout to always have an eye on blood sugar levels and trends EVERYWHERE: phone, clock, desktop widget, alarm clock, fridge :-D - count the CHO with German precision (and analyze the history with respect to pre/post blood sugar levels) and do the boluses STRICTLY 15 minutes before the meal. I hate hate hate living like this but IT WORKS

Tieni duro. Non ti disunire