Skip to content
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

TaplistIO Tap numbers should always be non-zero #18

Closed
thorrak opened this issue Jan 18, 2022 · 3 comments · Fixed by #39
Closed

TaplistIO Tap numbers should always be non-zero #18

thorrak opened this issue Jan 18, 2022 · 3 comments · Fixed by #39
Assignees
Labels
bug Something isn't working

Comments

@thorrak
Copy link
Collaborator

thorrak commented Jan 18, 2022

Found a bug in the taplistio implementation -- This line should be

if (flow.taps[tapid].taplistioTap <= 0 || flow.taps[tapid].taplistioTap > 255)

if (flow.taps[tapid].taplistioTap < 0 || flow.taps[tapid].taplistioTap > 255)

@thorrak thorrak added the bug Something isn't working label Jan 18, 2022
@thorrak thorrak self-assigned this Jan 18, 2022
thorrak added a commit that referenced this issue Jan 18, 2022
@lbussy
Copy link
Owner

lbussy commented Jun 26, 2022

This could be fixed by the inclusion of a controller sequence (i.e. 1, 2, 3, etc.) That way the tapid sent to TaplistIO could be factored from that. I'm thinking:

tio_tapid = (tapid + 1) + ((controllerid-1) * 9)

If my math is right:

  • Controller 1 = Tap 1 -9
  • Controller 2 = Tap 10-18
  • ...

Are you able to finish this feature or should I look at it?

@thorrak
Copy link
Collaborator Author

thorrak commented Jun 26, 2022

If I'm interpreting your suggestion correctly, you're linking the taplistio tap ID to the Keg Cop tap IDs? I don't recommend that, as it requires very tight pairing between Keg Cop and Taplistio. What happens if someone wants to use Keg Cop for 3 of their taps, but -- IDK -- Kegtron for 2 of the others?

Personally I think TaplistIO tap ID should be an input, rather than derived.

@lbussy
Copy link
Owner

lbussy commented Jul 3, 2022

Pretty sure this is closed with the logic you added in 16c4152. Let me know if that's not your intent.

@lbussy lbussy closed this as completed Jul 3, 2022
@lbussy lbussy linked a pull request Jul 7, 2022 that will close this issue
lbussy pushed a commit that referenced this issue Jul 9, 2022
lbussy added a commit that referenced this issue Jul 9, 2022
* Add taplistioTap to Taps struct

* Add config for taplistio tap number, fix tap label

* Add taplistio venue/secret handling

* Send pours to Taplist.io

* Add documentation for taplist.io support

* Fix docs for #8

* Fix #8 (again)

* Fix for #10

* Skip taplistio send if taplistio tap ID is 0

Fixes #18

* Update for #19

* Update Copyright date

* Ignore DS_Store on Mac

* Update Alpha firmware

* Fix build process for Macs

* Re-Build Firmware

* Fix tap label

* Fix default condition

* Update temperature control docs

* Update Alpha binaries

* Add coolonhigh to settings

* Invert coolonhigh settings

* Add link to HBT

* Update Alpha binaries

* Alpha.1 release

* Fix build under GitBash

* Fix tap label

* Fix cooling delay

* Added serial flush (danger)

* Avoid race condition

* Remove blank env lines

* Fully embrace 'bevname'

* Remove false fail condition

* Remove debug

* Update Alpha binaries

* Clean up 'controlnum'

* Fix WiFi reconnect

* Add build type to environment

* Add reboot data timer functionality

* Reduce spam

* Rename 'Keg Screen'

* Inject build_mode()

* Change partition scheme

* Cleanuo uptime semaphore logic

* Add uptime JSON model

* Add reboot/uptime notification

* Move uptime log to sep file

* Temp remove uptimelog

* Refactor for clarity

* Remove old commented lines

* Add uptime log timer

* Add logging to csv

* Add release binaries

* Only enable telnet/edit on debug build

* 1.1.0-Alpha.1 Release

* Alpha firmware

* Remove duplicate

* New partition scheme

* Updated binaried

* Fix directives

* Remove country set (crashes)

* Update literals with macros

* Remove enforced dependencies

* Remove enforced dependencies

* Update binaries

* Fix index tap label

* Update firmware

* Re-write URLs to alow local dev

* Fix TIO Display Toggle

* Fix TIO settings toggle

* Prevent default action (properly)

* Fix quirks and home link

* Update to new lib

* Reverse dev server changes

* Move to release mode

* Binaries for Beta.1

* Schedule TIO pushes

* Fix for #35

* Fix #36 Normalize Config Names

* Update TODO

* Change sanity of log messages

* Update binaries for Beta.2

* Fixed typo in #37

* Add binaries

* Reduce TIO debug print

* Shrink kegscreen reports in flash

* Cleanup api and getguid

* Moved device.sensor back to name vs index

* Moved device.sensor back to name vs index

* Add link to uptime log

* Fix index page link

* Update binaries

* Minor fixes (#40)

* Fix release (#41)

* Remove reference to Brew Bubbles

* Fix message timer

* Fix release (#42)

* Remove reference to Brew Bubbles

* Fix message timer

* Remove firmware (#43)

* Remove firmware from working tree

* Create directory if needed

* Create env variables if git fails (#44)

* Remove debug download (#45)

* Remove wifimanager debug output (#46)

* Lock all versions before release (#47)

* Refactor reports (#50)

* Refactor keys (#49)

Co-authored-by: John <jbeeler@optictheory.com>

* Add URL Target notice.

* Refactor keys (#48)

Co-authored-by: John <jbeeler@optictheory.com>
Co-authored-by: John <thorrak@users.noreply.github.com>

Co-authored-by: John <jbeeler@optictheory.com>
Co-authored-by: John <thorrak@users.noreply.github.com>
lbussy added a commit that referenced this issue Jul 9, 2022
* Add taplistioTap to Taps struct

* Add config for taplistio tap number, fix tap label

* Add taplistio venue/secret handling

* Send pours to Taplist.io

* Add documentation for taplist.io support

* Fix docs for #8

* Fix #8 (again)

* Fix for #10

* Skip taplistio send if taplistio tap ID is 0

Fixes #18

* Update for #19

* Update Copyright date

* Ignore DS_Store on Mac

* Update Alpha firmware

* Fix build process for Macs

* Re-Build Firmware

* Fix tap label

* Fix default condition

* Update temperature control docs

* Update Alpha binaries

* Add coolonhigh to settings

* Invert coolonhigh settings

* Add link to HBT

* Update Alpha binaries

* Alpha.1 release

* Fix build under GitBash

* Fix tap label

* Fix cooling delay

* Added serial flush (danger)

* Avoid race condition

* Remove blank env lines

* Fully embrace 'bevname'

* Remove false fail condition

* Remove debug

* Update Alpha binaries

* Clean up 'controlnum'

* Fix WiFi reconnect

* Add build type to environment

* Add reboot data timer functionality

* Reduce spam

* Rename 'Keg Screen'

* Inject build_mode()

* Change partition scheme

* Cleanuo uptime semaphore logic

* Add uptime JSON model

* Add reboot/uptime notification

* Move uptime log to sep file

* Temp remove uptimelog

* Refactor for clarity

* Remove old commented lines

* Add uptime log timer

* Add logging to csv

* Add release binaries

* Only enable telnet/edit on debug build

* 1.1.0-Alpha.1 Release

* Alpha firmware

* Remove duplicate

* New partition scheme

* Updated binaried

* Fix directives

* Remove country set (crashes)

* Update literals with macros

* Remove enforced dependencies

* Remove enforced dependencies

* Update binaries

* Fix index tap label

* Update firmware

* Re-write URLs to alow local dev

* Fix TIO Display Toggle

* Fix TIO settings toggle

* Prevent default action (properly)

* Fix quirks and home link

* Update to new lib

* Reverse dev server changes

* Move to release mode

* Binaries for Beta.1

* Schedule TIO pushes

* Fix for #35

* Fix #36 Normalize Config Names

* Update TODO

* Change sanity of log messages

* Update binaries for Beta.2

* Fixed typo in #37

* Add binaries

* Reduce TIO debug print

* Shrink kegscreen reports in flash

* Cleanup api and getguid

* Moved device.sensor back to name vs index

* Moved device.sensor back to name vs index

* Add link to uptime log

* Fix index page link

* Update binaries

* Minor fixes (#40)

* Fix release (#41)

* Remove reference to Brew Bubbles

* Fix message timer

* Fix release (#42)

* Remove reference to Brew Bubbles

* Fix message timer

* Remove firmware (#43)

* Remove firmware from working tree

* Create directory if needed

* Create env variables if git fails (#44)

* Remove debug download (#45)

* Remove wifimanager debug output (#46)

* Lock all versions before release (#47)

* Refactor reports (#50)

* Refactor keys (#49)

Co-authored-by: John <jbeeler@optictheory.com>

* Add URL Target notice.

* Refactor keys (#48)

Co-authored-by: John <jbeeler@optictheory.com>
Co-authored-by: John <thorrak@users.noreply.github.com>

Co-authored-by: John <jbeeler@optictheory.com>
Co-authored-by: John <thorrak@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants