Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add E1.31 Support #2355
base: dev
Are you sure you want to change the base?
Add E1.31 Support #2355
Changes from all commits
252a1d0
86826b7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(again about the cfg)
We also will send less keys to the WebUI.
But, it will be more complicated from the .js script side :/
Another alternative to map string is to use
e131Ch#
and simply loop all channels like Domoticz, Thingspeak map internal IDs to external.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to keep the same web UI and pack the settings from it into a string? I basically just copy pasted the web functionality from other pages as I'm not really sure how it works, nor am I well versed in javascript.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now this sends key-values as-is, so every key is 'mapped' to the same 'input name=...' elem, this is done at the end of
processData()
func of custom.jsWhat I meant about
e131Ch#
approach is to do something like:Treating empty string as disabled and non-empty as e1.31 channel number, while always creating N-channels items. Same thing in the configuration.
Then, we either create html block programmatically like dczRelayTemplate, or always have html blocks in the index.html but hide them by default via
display: none
css style and add additional js code such as:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the config be purely though settings / UI, no use for build flags to pre-configure the defauls?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note of
lightChannels()
. Right now configuration... seems straightforward, but bulky :/As noticed in the other comment, my92xx uses simple string to map as
1,2,3,4,5
to map espurna channel 0 to 1, channel 1 to 2 and etc. We also won't need 10 config keys at the same time. (and we need a bit different parser, as there are more channels in e131 that go above a single digit)'no mapping' is another question?
1,,3,4,5
1,-,-,4,5
0:1,2:2
(left of ':' is our channel, right is e131)