Skip to content

Add isCharging to uploader device status#2

Open
bjorkert wants to merge 1 commit into
LoopKit:mainfrom
bjorkert:add-uploader-ischarging
Open

Add isCharging to uploader device status#2
bjorkert wants to merge 1 commit into
LoopKit:mainfrom
bjorkert:add-uploader-ischarging

Conversation

@bjorkert

@bjorkert bjorkert commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Adds an optional isCharging flag to UploaderStatus and includes it in the Nightscout devicestatus uploader payload when present.

This lets consumers of the device status (e.g. LoopFollow) show whether the uploading device is currently on power. The field is optional and defaults to nil, so all existing call sites and payloads are unchanged unless a caller supplies it.

The key name isCharging matches the field already produced by Trio and consumed by LoopFollow.

See also: LoopKit/NightscoutService#26

Expose an optional isCharging flag on UploaderStatus and include it in the Nightscout device status payload so consumers can show whether the uploading device is on power.
@bjorkert bjorkert marked this pull request as draft June 25, 2026 20:11
@bjorkert bjorkert marked this pull request as ready for review June 25, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant