JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
16.68k stars 2.34k forks source link

Nightscout Segment not working due to API changes #5149

Closed azuravian closed 2 months ago

azuravian commented 2 months ago

Code of Conduct

What happened?

I added the Nightscout segment to my configuration. There was no change in my display. Debug shows Nightscout (false).

Debug also shows the following: [DEBUG] 22:02:26.803 shell.go:HTTPRequest:665 → [{"_id":"6677821a42d491d51b7c5436","device":"xDrip-UiBased","date":1719108118862,"dateString":"2024-06-22T22:01:58.862-0400","sgv":167,"delta":0,"direction":"Flat","type":"sgv","filtered":0,"unfiltered":0,"rssi":100,"noise":1,"sysTime":"2024-06-22T22:01:58.862-0400"}]

This shows that the data was correctly pulled from the API, but I noticed this does not match the source for this segment.

I think the primary information most anyone cares about is SGV and Direction, which are both still there, but I believe it's failing due to missing/changed/added values in the returned json.

Theme

A modified version of JanDeDobbeleer:

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
    {
      "alignment": "left",
      "segments": [
        {
          "background": "#c386f1",
          "foreground": "#ffffff",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "template": " {{ .UserName }} ",
          "trailing_diamond": "\ue0b0",
          "type": "session"
        },
        {
          "background": "#ff479c",
          "foreground": "#ffffff",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "folder_separator_icon": " \ue0b1 ",
            "home_icon": "~",
            "style": "folder"
          },
          "style": "powerline",
          "template": " \uea83  {{ .Path }} ",
          "type": "path"
        },
        {
          "background": "#fffb38",
          "background_templates": [
            "{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
            "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
            "{{ if gt .Ahead 0 }}#B388FF{{ end }}",
            "{{ if gt .Behind 0 }}#B388FF{{ end }}"
          ],
          "foreground": "#193549",
          "leading_diamond": "\ue0b6",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "branch_max_length": 25,
            "fetch_stash_count": true,
            "fetch_status": true,
            "fetch_upstream_icon": true
          },
          "style": "powerline",
          "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
          "trailing_diamond": "\ue0b4",
          "type": "git"
        },
        {
          "background": "#FFDE57",
          "foreground": "#111111",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "display_mode": "files",
            "fetch_virtual_env": false
          },
          "style": "powerline",
          "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ",
          "type": "python"
        },

        {
          "type": "nightscout",
          "style": "diamond",
          "foreground": "#ffffff",
          "background": "#ff0000",
          "background_templates": [
            "{{ if gt .Sgv 150 }}#FFFF00{{ end }}",
            "{{ if lt .Sgv 60 }}#FF0000{{ end }}",
            "#00FF00"
          ],
          "foreground_templates": [
            "{{ if gt .Sgv 150 }}#000000{{ end }}",
            "{{ if lt .Sgv 60 }}#000000{{ end }}",
            "#000000"
          ],

          "leading_diamond": "",
          "trailing_diamond": "",
          "properties": {
            "url": "http://192.168.4.40:1337/api/v1/entries.json?count=1&token=oc0FY6rT0S9zGVWEUKbc4Opj7j5Al4KHWo3TyabOgKwBA89AU3AUZJMJGR7Vuxsi",
            "http_timeout": 1500,
            "template": " {{.Sgv}}"
          }
        },
        {
          "background": "#ffff66",
          "foreground": "#111111",
          "powerline_symbol": "\ue0b0",
          "style": "powerline",
          "template": " \uf0ad ",
          "type": "root"
        },
        {
          "background": "#83769c",
          "foreground": "#ffffff",
          "properties": {
            "always_enabled": true
          },
          "style": "plain",
          "template": "<transparent>\ue0b0</> \ueba2 {{ .FormattedMs }}\u2800",
          "type": "executiontime"
        },
        {
          "background": "#00897b",
          "background_templates": [
            "{{ if gt .Code 0 }}#e91e63{{ end }}"
          ],
          "foreground": "#ffffff",
          "properties": {
            "always_enabled": true
          },
          "style": "diamond",
          "template": "<parentBackground>\ue0b0</> \ue23a ",
          "trailing_diamond": "\ue0b4",
          "type": "status"
        }
      ],
      "type": "prompt"
    },
    {
      "segments": [
        {
          "background": "#0077c2",
          "foreground": "#ffffff",
          "style": "plain",
          "template": "<#0077c2,transparent>\ue0b6</> \uf489 {{ .Name }} <transparent,#0077c2>\ue0b2</>",
          "type": "shell"
        },
        {
          "background": "#1BD760",
          "foreground": "#111111",
          "invert_powerline": true,
          "powerline_symbol": "\ue0b2",
          "properties": {
            "paused_icon": "\uf04c ",
            "playing_icon": "\uf04b "
          },
          "style": "powerline",
          "template": " \uf167 {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ",
          "type": "ytm"
        },
        {
          "background": "#2e9599",
          "foreground": "#111111",
          "invert_powerline": true,
          "leading_diamond": "\ue0b2",
          "style": "diamond",
          "template": " {{ .CurrentDate | date .Format }} ",
          "trailing_diamond": "\ue0b4",
          "type": "time"
        }
      ],
      "type": "rprompt"
    }
  ],
  "console_title_template": "{{ .Shell }} in {{ .Folder }}",
  "final_space": true,
  "version": 2
}

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 19.20.0

Shell: pwsh (7.4.2)

Prompt:

 azure    ~     0ms⠀                                                                  pwsh  22:02:26 
Segments:

ConsoleTitle(true)                         -   1 ms
Session(true)                              -   0 ms
Path(true)                                 -   1 ms
Git(false)                                 -   7 ms
Python(false)                              -   0 ms
Nightscout(false)                          -   4 ms
Root(true)                                 -   0 ms
Executiontime(true)                        -   0 ms
Status(true)                               -   0 ms
Shell(true)                                -   0 ms
Ytm(false)                                 -   0 ms
Battery(false)                             -   2 ms
Time(true)                                 -   0 ms

Run duration: 33.2162ms

Cache path: C:\Users\azure\AppData\Local\oh-my-posh

Config path: C:\Users\azure\AppData\Local\Programs\oh-my-posh\themes\greggy.omp.json

Logs:

[DEBUG] 22:02:26.777 shell.go:Getenv:325 → NO DATA
[TRACE] 22:02:26.777 shell.go:Getenv(TERM_PROGRAM) - 517.9µs
[DEBUG] 22:02:26.777 shell.go:Getenv:325 → C:\Users\azure\AppData\Local
[TRACE] 22:02:26.777 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 22:02:26.777 shell_windows.go:CachePath() - 0s
[DEBUG] 22:02:26.778 shell.go:Getenv:325 → C:\Users\azure\AppData\Local\Programs\oh-my-posh\themes\greggy.omp.json
[TRACE] 22:02:26.778 shell.go:Getenv(POSH_THEME) - 518.3µs
[DEBUG] 22:02:26.778 shell.go:Shell:593 → no shell name provided in flags, trying to detect it
[DEBUG] 22:02:26.795 shell.go:Shell:601 → process name: pwsh.exe
[TRACE] 22:02:26.795 shell.go:Shell() - 17.6057ms
[TRACE] 22:02:26.795 shell.go:resolveConfigPath() - 18.124ms
[TRACE] 22:02:26.795 shell.go:Init() - 18.6419ms
[TRACE] 22:02:26.795 shell.go:Flags() - 0s
[TRACE] 22:02:26.797 config.go:loadConfig() - 1.0416ms
[TRACE] 22:02:26.797 shell.go:Flags() - 0s
[DEBUG] 22:02:26.797 shell.go:Getenv:325 → NO DATA
[TRACE] 22:02:26.797 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 22:02:26.797 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[TRACE] 22:02:26.797 shell.go:GOOS() - 0s
[DEBUG] 22:02:26.797 shell_windows.go:WindowsRegistryKeyValue:217 → ColorizationColor(DWORD): 0xC43F3F3F
[TRACE] 22:02:26.797 shell.go:Shell() - 0s
[DEBUG] 22:02:26.797 shell.go:Getenv:325 → 7.4.2
[TRACE] 22:02:26.797 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 22:02:26.797 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 22:02:26.797 text.go:Render:70 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 22:02:26.797 shell_windows.go:Root() - 0s
[TRACE] 22:02:26.797 shell.go:Shell() - 0s
[TRACE] 22:02:26.797 shell.go:StatusCodes() - 0s
[TRACE] 22:02:26.797 shell_windows.go:IsWsl() - 0s
[DEBUG] 22:02:26.798 shell.go:TemplateCache:774 → environment: [ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\azure\AppData\Roaming ChocolateyInstall=C:\ProgramData\chocolatey ChocolateyLastPathUpdate=133257094002314581 CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=DESKTOP-LQKBGIQ ComSpec=C:\WINDOWS\system32\cmd.exe CONDA_PROMPT_MODIFIER=False DokanLibrary2=C:\Program Files\Dokan\Dokan Library-2.0.3\ DokanLibrary2_LibraryPath_x64=C:\Program Files\Dokan\Dokan Library-2.0.3\lib\ DokanLibrary2_LibraryPath_x86=C:\Program Files\Dokan\Dokan Library-2.0.3\x86\lib\ DriverData=C:\Windows\System32\Drivers\DriverData GIT_INSTALL_ROOT=C:\Users\azure\scoop\apps\git\current HOMEDRIVE=C: HOMEPATH=\Users\azure JD2_HOME=C:\Users\azure\AppData\Local\JDownloader 2.0 LOCALAPPDATA=C:\Users\azure\AppData\Local LOGONSERVER=\\DESKTOP-LQKBGIQ NUMBER_OF_PROCESSORS=24 OneDrive=C:\Users\azure\OneDrive OneDriveConsumer=C:\Users\azure\OneDrive OS=Windows_NT Path=C:\Program Files\PowerShell\7;C:\Python312\Scripts\;C:\Python312\;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files\ImageMagick-6.9.12-Q16;C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;C:\Program Files (x86)\Razer\ChromaBroadcast\bin;C:\Program Files\Razer\ChromaBroadcast\bin;C:\ProgramData\Boxstarter;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files (x86)\GitExtensions\;C:\Program Files\dotnet\;C:\ProgramData\chocolatey\bin;C:\Program Files\Bandizip\;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\azure\scoop\apps\vscode\current\bin;C:\Users\azure\scoop\apps\gsudo\current;C:\Users\azure\scoop\shims;C:\Users\azure\AppData\Local\Microsoft\WindowsApps;C:\Users\azure\AppData\Local\GitHubDesktop\bin;C:\Users\azure\AppData\Local\Microsoft\WinGet\Packages\Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\Users\azure\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\azure\AppData\Local\Programs\oh-my-posh\bin;C:\Users\azure\.dotnet\tools;C:\Program Files (x86)\dotnet\;I:\Portable Apps\OpenJPEG;I:\PortableApps\exiftool;C:\Program Files\Calibre2\;C:\Program Files\nodejs\;C:\Program Files\PowerShell\7\;C:\Users\azure\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\azure\AppData\Local\Programs\Python\Python310\;C:\Users\azure\scoop\apps\vscode\current\bin;C:\Users\azure\.pyenv\pyenv-win\bin;C:\Users\azure\.pyenv\pyenv-win\shims;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\azure\scoop\apps\gsudo\current;C:\Users\azure\scoop\shims;C:\Users\azure\AppData\Local\Microsoft\WindowsApps;C:\Users\azure\AppData\Local\GitHubDesktop\bin;C:\Users\azure\AppData\Local\Microsoft\WinGet\Packages\Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\Users\azure\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\azure\AppData\Local\Programs\oh-my-posh\bin;C:\Users\azure\.dotnet\tools;I:\Portable Apps\Trid;C:\Users\azure\AppData\Local\Microsoft\WinGet\Packages\Rclone.Rclone_Microsoft.Winget.Source_8wekyb3d8bbwe\rclone-v1.64.0-windows-amd64;C:\Users\azure\AppData\Roaming\npm;C:\Users\azure\.dotnet\tools;C:\Users\azure\AppData\Local\Programs\Espanso PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW;.CPL POSH_AZURE_ENABLED=False POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=29 POSH_GIT_ENABLED=False POSH_INSTALLER=manual POSH_PID=66636 POSH_SHELL_VERSION=7.4.2 POSH_THEME=C:\Users\azure\AppData\Local\Programs\oh-my-posh\themes\greggy.omp.json POSH_THEMES_PATH=C:\Users\azure\AppData\Local\Programs\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh POWERSHELL_DISTRIBUTION_CHANNEL=MSI:Windows 10 Pro PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD PROCESSOR_LEVEL=23 PROCESSOR_REVISION=7100 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\Users\azure\OneDrive\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Users\azure\scoop\modules;C:\Users\azure\Documents\WindowsPowerShell\Modules;C:\ProgramData\Boxstarter;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public PYENV=C:\Users\azure\.pyenv\pyenv-win\ PYENV_HOME=C:\Users\azure\.pyenv\pyenv-win\ PYENV_ROOT=C:\Users\azure\.pyenv\pyenv-win\ SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\Users\azure\AppData\Local\Temp TMP=C:\Users\azure\AppData\Local\Temp UNRAR_LIB_PATH=C:\Program Files (x86)\UnrarDLL\x64\UnRAR64.dll USERDOMAIN=DESKTOP-LQKBGIQ USERDOMAIN_ROAMINGPROFILE=DESKTOP-LQKBGIQ USERNAME=azure USERPROFILE=C:\Users\azure windir=C:\WINDOWS WSLENV=WT_SESSION:WT_PROFILE_ID: WT_PROFILE_ID={574e775e-4f2a-5b96-ac1e-a2962a402336} WT_SESSION=876a9e12-8b51-468c-a5af-8ee5b0747f5a]
[TRACE] 22:02:26.798 shell.go:GOOS() - 0s
[DEBUG] 22:02:26.798 shell.go:Pwd:355 → C:\Users\azure
[TRACE] 22:02:26.798 shell.go:Pwd() - 0s
[DEBUG] 22:02:26.798 shell_windows.go:58 → C:\Users\azure
[TRACE] 22:02:26.798 shell.go:GOOS() - 0s
[TRACE] 22:02:26.798 shell.go:GOOS() - 0s
[TRACE] 22:02:26.798 shell.go:GOOS() - 0s
[TRACE] 22:02:26.798 shell.go:GOOS() - 0s
[TRACE] 22:02:26.798 shell.go:GOOS() - 0s
[TRACE] 22:02:26.798 shell.go:GOOS() - 0s
[TRACE] 22:02:26.798 shell.go:GOOS() - 0s
[TRACE] 22:02:26.798 shell.go:GOOS() - 0s
[DEBUG] 22:02:26.798 shell.go:User:493 → azure
[TRACE] 22:02:26.798 shell.go:User() - 0s
[DEBUG] 22:02:26.798 shell.go:Host:505 → DESKTOP-LQKBGIQ
[TRACE] 22:02:26.798 shell.go:Host() - 0s
[TRACE] 22:02:26.798 shell.go:GOOS() - 0s
[DEBUG] 22:02:26.798 shell.go:Getenv:325 → NO DATA
[TRACE] 22:02:26.798 shell.go:Getenv(SHLVL) - 0s
[TRACE] 22:02:26.798 shell.go:TemplateCache() - 1.0273ms
[DEBUG] 22:02:26.798 shell.go:Getenv:325 → 29
[TRACE] 22:02:26.798 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 22:02:26.798 shell.go:Getenv:325 → 1
[TRACE] 22:02:26.798 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 22:02:26.798 shell.go:Flags() - 0s
[TRACE] 22:02:26.798 shell.go:Flags() - 0s
[TRACE] 22:02:26.798 shell.go:Shell() - 0s
[TRACE] 22:02:26.798 shell.go:Shell() - 0s
[TRACE] 22:02:26.799 shell.go:Flags() - 0s
[TRACE] 22:02:26.799 shell.go:Flags() - 0s
[TRACE] 22:02:26.799 shell.go:Flags() - 0s
[TRACE] 22:02:26.799 shell.go:Pwd() - 0s
[TRACE] 22:02:26.799 shell.go:Pwd() - 0s
[TRACE] 22:02:26.799 shell.go:Flags() - 0s
[DEBUG] 22:02:26.799 shell_windows.go:58 → C:\Users\azure
[DEBUG] 22:02:26.799 shell_windows.go:58 → C:\Users\azure
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[DEBUG] 22:02:26.799 segment.go:SetEnabled:529 → Segment: Session
[DEBUG] 22:02:26.799 segment.go:SetEnabled:529 → Segment: Nightscout
[DEBUG] 22:02:26.799 properties.go:GetString:28 → {{ .Code }}
[DEBUG] 22:02:26.799 shell.go:Getenv:325 → NO DATA
[TRACE] 22:02:26.799 shell.go:Pwd() - 0s
[TRACE] 22:02:26.799 shell.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 22:02:26.799 shell.go:Getenv:325 → NO DATA
[TRACE] 22:02:26.799 shell.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 22:02:26.799 shell.go:Pwd() - 0s
[TRACE] 22:02:26.799 shell.go:TemplateCache() - 0s
[DEBUG] 22:02:26.799 shell_windows.go:58 → C:\Users\azure
[DEBUG] 22:02:26.799 properties.go:GetString:28 → http://192.168.4.40:1337/api/v1/entries.json?count=1&token=oc0FY6rT0S9zGVWEUKbc4Opj7j5Al4KHWo3TyabOgKwBA89AU3AUZJMJGR7Vuxsi
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:Flags() - 0s
[DEBUG] 22:02:26.799 shell_windows.go:58 → C:\Users\azure
[DEBUG] 22:02:26.799 properties.go:GetInt:40 → http_timeout: 1500
[TRACE] 22:02:26.799 shell.go:Flags() - 0s
[DEBUG] 22:02:26.799 properties.go:GetInt:40 → cache_timeout: 5
[DEBUG] 22:02:26.799 segment.go:SetEnabled:529 → Segment: Status
[TRACE] 22:02:26.799 shell.go:Pwd() - 0s
[TRACE] 22:02:26.799 shell.go:StatusCodes() - 0s
[DEBUG] 22:02:26.799 shell_windows.go:58 → C:\Users\azure
[DEBUG] 22:02:26.799 segment.go:SetEnabled:529 → Segment: Path
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:Pwd() - 0s
[TRACE] 22:02:26.799 shell.go:Shell() - 0s
[TRACE] 22:02:26.799 shell.go:Flags() - 0s
[TRACE] 22:02:26.799 shell_windows.go:Root() - 0s
[TRACE] 22:02:26.799 shell.go:TemplateCache() - 0s
[TRACE] 22:02:26.799 shell.go:Flags() - 0s
[DEBUG] 22:02:26.799 properties.go:GetString:28 → files
[TRACE] 22:02:26.799 shell.go:Pwd() - 0s
[TRACE] 22:02:26.799 shell.go:Flags() - 0s
[DEBUG] 22:02:26.799 shell_windows.go:58 → C:\Users\azure
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[DEBUG] 22:02:26.799 segment.go:SetEnabled:529 → Segment: Executiontime
[DEBUG] 22:02:26.799 properties.go:GetBool:22 → always_enabled: true
[TRACE] 22:02:26.799 shell.go:Pwd() - 0s
[TRACE] 22:02:26.799 shell.go:ExecutionTime() - 0s
[DEBUG] 22:02:26.799 properties.go:GetFloat64:34 → threshold: 500.000000
[DEBUG] 22:02:26.799 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 22:02:26.799 properties.go:GetString:28 → austin
[DEBUG] 22:02:26.799 shell_windows.go:58 → C:\Users\azure
[DEBUG] 22:02:26.799 properties.go:GetString:28 → 
[TRACE] 22:02:26.799 shell.go:TemplateCache() - 0s
[DEBUG] 22:02:26.799 properties.go:GetString:28 → 
[DEBUG] 22:02:26.799 shell_windows.go:58 → C:\Users\azure
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:Pwd() - 0s
[DEBUG] 22:02:26.799 properties.go:GetString:28 → ~
[DEBUG] 22:02:26.799 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 22:02:26.799 shell.go:PathSeparator() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[DEBUG] 22:02:26.799 segment.go:SetEnabled:529 → Segment: Python
[DEBUG] 22:02:26.799 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 22:02:26.799 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 22:02:26.799 properties.go:GetBool:22 → home_enabled: false
[TRACE] 22:02:26.799 shell.go:Pwd() - 0s
[DEBUG] 22:02:26.799 shell_windows.go:58 → C:\Users\azure
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[DEBUG] 22:02:26.799 segment.go:SetEnabled:529 → Segment: Git
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[DEBUG] 22:02:26.799 shell.go:Getenv:325 → C:\Users\azure\AppData\Local
[TRACE] 22:02:26.799 shell.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 22:02:26.799 shell_windows.go:58 → C:\Users\azure
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:PathSeparator() - 0s
[TRACE] 22:02:26.799 shell.go:PathSeparator() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:PathSeparator() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:PathSeparator() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:GOOS() - 0s
[TRACE] 22:02:26.799 shell.go:PathSeparator() - 0s
[DEBUG] 22:02:26.799 properties.go:GetString:28 → NO DATA
[DEBUG] 22:02:26.799 shell_windows.go:58 → C:\Users\azure
[TRACE] 22:02:26.799 shell.go:PathSeparator() - 0s
[TRACE] 22:02:26.799 shell.go:Pwd() - 0s
[TRACE] 22:02:26.799 shell_windows.go:IsWsl() - 0s
[TRACE] 22:02:26.799 shell.go:TemplateCache() - 0s
[TRACE] 22:02:26.799 shell.go:StackCount() - 0s
[DEBUG] 22:02:26.799 properties.go:GetBool:22 → always_enabled: true
[TRACE] 22:02:26.799 shell.go:TemplateCache() - 0s
[DEBUG] 22:02:26.800 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 22:02:26.800 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 22:02:26.800 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 22:02:26.800 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 22:02:26.800 shell_windows.go:DirIsWritable() - 514.3µs
[TRACE] 22:02:26.800 shell.go:TemplateCache() - 0s
[DEBUG] 22:02:26.803 shell.go:HTTPRequest:665 → [{"_id":"6677821a42d491d51b7c5436","device":"xDrip-UiBased","date":1719108118862,"dateString":"2024-06-22T22:01:58.862-0400","sgv":167,"delta":0,"direction":"Flat","type":"sgv","filtered":0,"unfiltered":0,"rssi":100,"noise":1,"sysTime":"2024-06-22T22:01:58.862-0400"}]
[TRACE] 22:02:26.803 shell.go:HTTPRequest(http://192.168.4.40:1337/api/v1/entries.json?count=1&token=oc0FY6rT0S9zGVWEUKbc4Opj7j5Al4KHWo3TyabOgKwBA89AU3AUZJMJGR7Vuxsi) - 4.2128ms
[DEBUG] 22:02:26.806 shell.go:CommandPath:545 → C:\Program Files\Git\cmd\git.exe
[TRACE] 22:02:26.806 shell.go:CommandPath(git.exe) - 7.306ms
[TRACE] 22:02:26.806 shell.go:HasCommand(git.exe) - 7.306ms
[TRACE] 22:02:26.806 shell.go:Pwd() - 0s
[ERROR] 22:02:26.806 shell.go:HasParentFilePath:689 → CreateFile .git: The system cannot find the file specified.
[TRACE] 22:02:26.806 shell.go:HasParentFilePath(.git) - 0s
[DEBUG] 22:02:26.806 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 22:02:26.806 text.go:Render:70 → Rendering template:  {{ .UserName }}
[DEBUG] 22:02:26.806 text.go:Render:70 → Rendering template:    {{ .Path }}
[DEBUG] 22:02:26.806 text.go:Render:70 → Rendering template: <parentBackground></> 
[TRACE] 22:02:26.806 shell.go:Shell() - 0s
[DEBUG] 22:02:26.806 text.go:Render:70 → Rendering template:  
[DEBUG] 22:02:26.806 text.go:Render:70 → Rendering template: <transparent></>  {{ .FormattedMs }}⠀
[TRACE] 22:02:26.806 shell.go:Shell() - 0s
[TRACE] 22:02:26.807 shell.go:TemplateCache() - 0s
[TRACE] 22:02:26.807 shell.go:Shell() - 0s
[TRACE] 22:02:26.807 shell.go:TemplateCache() - 0s
[TRACE] 22:02:26.807 shell.go:Shell() - 0s
[TRACE] 22:02:26.807 shell.go:TemplateCache() - 0s
[TRACE] 22:02:26.807 shell.go:Shell() - 0s
[DEBUG] 22:02:26.807 text.go:Render:70 → Rendering template: diamond
[DEBUG] 22:02:26.807 text.go:Render:70 → Rendering template: powerline
[DEBUG] 22:02:26.807 text.go:Render:70 → Rendering template: powerline
[DEBUG] 22:02:26.807 text.go:Render:70 → Rendering template: powerline
[DEBUG] 22:02:26.807 text.go:Render:70 → Rendering template: diamond
[DEBUG] 22:02:26.807 text.go:Render:70 → Rendering template: powerline
[DEBUG] 22:02:26.807 text.go:Render:70 → Rendering template: plain
[DEBUG] 22:02:26.807 text.go:Render:70 → Rendering template: {{ if gt .Code 0 }}#e91e63{{ end }}
[TRACE] 22:02:26.807 shell.go:TemplateCache() - 0s
[DEBUG] 22:02:26.807 text.go:Render:70 → Rendering template: diamond
[TRACE] 22:02:26.807 shell.go:Shell() - 0s
[TRACE] 22:02:26.807 shell.go:Shell() - 0s
[TRACE] 22:02:26.807 shell.go:Shell() - 0s
[TRACE] 22:02:26.807 shell.go:Flags() - 0s
[TRACE] 22:02:26.807 shell.go:Flags() - 0s
[TRACE] 22:02:26.807 shell.go:Pwd() - 0s
[TRACE] 22:02:26.807 shell.go:Flags() - 0s
[TRACE] 22:02:26.807 shell.go:Flags() - 0s
[TRACE] 22:02:26.807 shell.go:Pwd() - 0s
[DEBUG] 22:02:26.807 shell_windows.go:58 → C:\Users\azure
[TRACE] 22:02:26.807 shell.go:GOOS() - 0s
[DEBUG] 22:02:26.807 shell_windows.go:58 → C:\Users\azure
[TRACE] 22:02:26.807 shell.go:Pwd() - 0s
[DEBUG] 22:02:26.807 shell.go:Pwd() - 0s
[DEBUG] 22:02:26.807 segment.go:SetEnabled:529 → Segment: Ytm
[DEBUG] 22:02:26.807 properties.go:GetString:28 → http://127.0.0.1:9863
[TRACE] 22:02:26.807 shell.go:TemplateCache() - 0s
[DEBUG] 22:02:26.807 segment.go:SetEnabled:529 → Segment: Shell
[DEBUG] 22:02:26.807 properties.go:GetInt:40 → api_url: 20
[TRACE] 22:02:26.807 shell_windows.go:IsWsl() - 0s
[DEBUG] 22:02:26.807 properties.go:GetKeyValueMap:46 → mapped_shell_names: map[]
[TRACE] 22:02:26.807 shell.go:Shell() - 0s
[TRACE] 22:02:26.807 shell.go:Flags() - 0s
[TRACE] 22:02:26.807 shell.go:TemplateCache() - 0s
[DEBUG] 22:02:26.808 shell.go:HTTPRequest:645 ↓
    GET /query HTTP/1.1
    Host: 127.0.0.1:9863
    User-Agent: Go-http-client/1.1
    Accept-Encoding: gzip

[ERROR] 22:02:26.808 shell.go:HTTPRequest:649 → Get "http://127.0.0.1:9863/query": dial tcp 127.0.0.1:9863: connectex: No connection could be made because the target machine actively refused it.
[TRACE] 22:02:26.808 shell.go:HTTPRequest(http://127.0.0.1:9863/query) - 516.1µs
[ERROR] 22:02:26.810 shell_windows_nix.go:BatteryState:15 → no battery
[TRACE] 22:02:26.810 shell_windows_nix.go:BatteryState() - 2.0648ms
[DEBUG] 22:02:26.810 text.go:Render:70 → Rendering template: <#0077c2,transparent></>  {{ .Name }} <transparent,#0077c2></>
[DEBUG] 22:02:26.810 text.go:Render:70 → Rendering template:  {{ .CurrentDate | date .Format }}
[TRACE] 22:02:26.810 shell.go:TemplateCache() - 0s
[TRACE] 22:02:26.810 shell.go:Shell() - 0s
[TRACE] 22:02:26.810 shell.go:TemplateCache() - 0s
[TRACE] 22:02:26.810 shell.go:Shell() - 0s
[DEBUG] 22:02:26.810 text.go:Render:70 → Rendering template: plain
[DEBUG] 22:02:26.810 text.go:Render:70 → Rendering template: powerline
[DEBUG] 22:02:26.810 text.go:Render:70 → Rendering template: powerline
[DEBUG] 22:02:26.810 text.go:Render:70 → Rendering template: diamond
[TRACE] 22:02:26.810 shell.go:Shell() - 0s
[TRACE] 22:02:26.810 shell.go:Flags() - 0s
[TRACE] 22:02:26.810 shell.go:Shell() - 0s
[TRACE] 22:02:26.810 shell.go:Shell() - 0s
[DEBUG] 22:02:26.810 shell_windows.go:TerminalWidth:111 → terminal width: 118
[TRACE] 22:02:26.810 shell_windows.go:TerminalWidth() - 0s
[DEBUG] 22:02:26.810 shell.go:Getenv:325 → C:\Users\azure\AppData\Local
[TRACE] 22:02:26.810 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 22:02:26.810 shell_windows.go:CachePath() - 0s
[TRACE] 22:02:26.810 shell.go:Flags() - 0s
JanDeDobbeleer commented 2 months ago

@azuravian where can I find a Nightscout API changelog? I suppose we need to keep this and past implementations available as per my understanding people host this solution themselves so we can have multiple API versions alive at the same time. @shanselman any thoughts/input on this one?

azuravian commented 2 months ago

I apologize for any work you may have put into looking at this. It appears to have been an error on my part. I somehow changed my setup to pull a Nightscout develop branch that hasn't been updated in 7 years.

I've fixed things on my end and everything looks good.

JanDeDobbeleer commented 2 months ago

@azuravian I'm the last to judge anyone on this. Thanks for using oh-my-posh!