7dea
7dea 7dea
7dea 7dea
7dea I’ve talked about 7dea how I like a pleasant 7dea fairly immediate in my Home 7dea windows Terminal 7dea and 7dea made movies displaying intimately tips 7dea on how to do it 7dea . I’ve additionally labored with 7dea my buddy 7dea TooTallNate to place my real-time 7dea blood sugar right into a 7dea bash or PowerShell immediate 7dea , however this was again 7dea in 2017.
7dea
7dea Now that I am “Crew 7dea 7dea OhMyPosh 7dea ” I’ve been that means 7dea to jot down a Nightscout 7dea “phase” for my immediate. 7dea Nightscout 7dea is an open supply 7dea self-hosted (there are 7dea industrial hosts additionally like T1Pal 7dea ) web site and API 7dea for distant show of real-time 7dea and near-real-time glucose readings for 7dea Diabetics like myself.
7dea
7dea Since my physique has an 7dea energetic REST API the place 7dea I can simply do an 7dea HTTP GET (through curl or 7dea no matter) and see my 7dea blood sugar, it clearly belongs 7dea in a spot of honor, 7dea similar to my present Git 7dea Department!
7dea

7dea Oh My Posh helps configurable 7dea “segments” 7dea and now there is 7dea a beta (nonetheless wants mmol 7dea and rancid readings assist) 7dea Nightscout phase 7dea which you could setup 7dea in just some minutes!
7dea
7dea This immediate works in ANY 7dea shell on ANY os! You 7dea are able to do this 7dea in zsh, PowerShell, Bash, no 7dea matter makes you content.
7dea
7dea Here’s a YouTube of Jan 7dea from OhMyPosh and I coding 7dea the phase LIVE in Go.
7dea
7dea
7dea In case you have an 7dea current OhMyPosh json config, you 7dea possibly can simply add one 7dea other phase like this. Be 7dea sure your Nightscout URL features 7dea a safe Token or is 7dea public (as much as you). 7dea Notice additionally that I setup 7dea “if/then” guidelines in my background_templates. 7dea These are non-compulsory and as 7dea much as you to vary 7dea to your style. I set 7dea my background colours to crimson, 7dea yellow, inexperienced relying on sugar 7dea numbers. I even have a 7dea foreground template that’s not actually 7dea used, as you possibly can 7dea see it at all times 7dea evaluates to black #000, nevertheless 7dea it exhibits you the way 7dea you can set it to 7dea white textual content on a 7dea darker background when you wished. 7dea
7dea {
7dea "kind": "nightscout",
7dea "model": "diamond",
7dea "foreground": "#ffffff",
7dea "background": "#ff0000",
7dea "background_templates": [
7dea "{{ if gt .Sgv 150 7dea }}#FFFF00{{ end }}",
7dea "{{ if lt .Sgv 60 7dea }}#FF0000{{ end }}",
7dea "#00FF00"
7dea ],
7dea "foreground_templates": [
7dea "{{ if gt .Sgv 150 7dea }}#000000{{ end }}",
7dea "{{ if lt .Sgv 60 7dea }}#000000{{ end }}",
7dea "#000000"
7dea ],7dea "leading_diamond": "",
7dea "trailing_diamond": "uE0B0",
7dea "properties": {
7dea "url": "https://YOURNIGHTSCOUTAPP.herokuapp.com/api/v1/entries.json?depend=1&token=APITOKENFROMYOURADMIN",
7dea "http_timeout": 1500,
7dea "template": " {{.Sgv}}{{.TrendIcon}}"
7dea }
7dea },
7dea
7dea By default we’ll solely exit 7dea and hit your Nightscout occasion 7dea each 5 min, solely when 7dea the immediate is repainted, and 7dea we’ll solely wait 1500ms earlier 7dea than giving up. You may 7dea set that “http_timeout” (how lengthy 7dea earlier than we hand over) 7dea when you really feel this 7dea slows you down. It’s going 7dea to be cached for five 7dea min so it is unlikely 7dea to b one thing you 7dea may discover. The good thing 7dea about this new OhMyPosh phase 7dea over the earlier resolution is 7dea that it requires no extra 7dea companies/chron jobs and may be 7dea setup extraordinarily rapidly. Notice additionally 7dea which you could customise your 7dea template with 7dea NerdFonts 7dea . I’ve included a tiny 7dea syringe!
7dea

7dea
7dea Subsequent I am going to 7dea hope to enhance the phase 7dea with mmol assist in addition 7dea to strikeout model for “stale” 7dea (over 15 min previous) outcomes. 7dea You are additionally welcome to 7dea assist out by watching 7dea our YouTube 7dea and submitting a PR! 7dea
7dea
7dea Sponsor: 7dea Make login Auth0’s drawback. Not 7dea yours. Present the handy login 7dea options your clients need, like 7dea social login, multi-factor authentication, single 7dea sign-on, passwordless, and extra. 7dea Get began without cost.
7dea
7dea 7dea
7dea 7dea 7dea
7dea 7dea 7dea 7dea
7dea About Scott
7dea
7dea 7dea 7dea 7dea
7dea 7dea 7dea 7dea
7dea Scott Hanselman is a former 7dea professor, former Chief Architect in 7dea finance, now speaker, guide, father, 7dea diabetic, and Microsoft worker. He’s 7dea a failed stand-up comedian, a 7dea cornrower, and a e-book creator.
7dea
7dea 7dea 7dea 7dea 7dea
7dea 7dea 7dea 7dea 7dea
7dea 7dea 7dea 7dea
7dea
7dea 7dea 7dea 7dea 7dea About 7dea 7dea Publication 7dea
7dea 7dea 7dea 7dea
7dea
7dea 7dea 7dea
7dea
7dea 7dea 7dea
7dea 7dea 7dea 7dea
7dea
7dea 7dea 7dea
7dea
7dea 7dea
7dea
7dea 7dea
7dea 7dea
7dea 7dea 7dea
7dea
7dea