Skip to content

Add information about which branch is being used - #3407

Closed
Moustachauve wants to merge 1 commit into
wled:mainfrom
Moustachauve:branch-data
Closed

Add information about which branch is being used #3407
Moustachauve wants to merge 1 commit into
wled:mainfrom
Moustachauve:branch-data

Conversation

@Moustachauve

Copy link
Copy Markdown
Contributor

Add the information about which software branch, beta or stable, is being used on this device. This is accessible through both the JSON API and MQTT, just like the version string. This will automatically detect if it is a beta or not based on the release version configured in package.json to make sure it is always set properly.

This could be really useful for any consumer of the API that wants to make sure to check the correct channel to know potentially if a device is using the most recent version, for example and also to match it to the correct branch (beta, soundreactive, ...).

Recreated from a topic branch to follow the project's guidelines.

Add the information about which software branch, beta or stable, is being used on this device.
This is accessible through both the JSON API and MQTT, just like the version string.
This will automatically detect if it is a beta or not based on the release version configured in package.json to make sure it is always set properly.

This could be really useful for any consumer of the API that wants to make sure to check the correct channel to know potentially if a device is using the most recent version, for example and also to match it to the correct branch (beta, soundreactive, ...).
@Moustachauve

Moustachauve commented Oct 1, 2023

Copy link
Copy Markdown
Contributor Author

cc @blazoncek and @softhack007 for missing labels form the previous PR #3402.

@Moustachauve Moustachauve changed the title Add information about which branch is being Add information about which branch is being used Oct 1, 2023
@softhack007 softhack007 added this to the 0.14.1 candidate milestone Oct 6, 2023
@softhack007 softhack007 added enhancement connectivity Issue regarding protocols, WiFi connection or availability of interfaces labels Oct 6, 2023
@blazoncek

Copy link
Copy Markdown
Contributor

Perhaps this should be combined with #3839

@Moustachauve

Copy link
Copy Markdown
Contributor Author

I think those are two different things. The same product (What #3839 is about) could be used for stable or beta branches.

@blazoncek

Copy link
Copy Markdown
Contributor

I think those are two different things. The same product (What #3839 is about) could be used for stable or beta branches.

That was exactly the point. Combine the two in one solution.

@blazoncek

Copy link
Copy Markdown
Contributor

This has been superseded by "release" key in "info" object in JSON API in 0.15.0-b3 or later.

@blazoncek blazoncek removed this from the 0.15.0-alpha candidate milestone May 21, 2024
@Moustachauve

Copy link
Copy Markdown
Contributor Author

Cool thanks. I couldn't find a PR for it, I thought there have been multiple ones in the past, I guess it was not linked to one?

@Moustachauve
Moustachauve deleted the branch-data branch November 29, 2025 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connectivity Issue regarding protocols, WiFi connection or availability of interfaces enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants