nabaztag2018 / pynab

Nabaztag en Python pour RaspberryPi
GNU General Public License v3.0
162 stars 53 forks source link

Internet connection status : different LED colors does not work #348

Closed nabaztag2018 closed 2 years ago

nabaztag2018 commented 2 years ago

The mechanism that should change the color of the bottom LED does not work and may confuse the user.

Violet (=good) color is displayed when there's no connection and Orange (No Internet connection) is displayed when there's w valid connection.

More over, they are some cases where the bottom LED blinks very rapidly (in orange), do not know it this is related.

f-laurens commented 2 years ago

The mechanism that should change the color of the bottom LED does not work and may confuse the user.

The network state check mechanism worked nicely when it was integrated (merge of PR #294). If there is a regression, it must have been induced by a recent change.

Note also that the check is made by nabd when it enters its idle loop. So if state is not idle when network state changes, it may take a moment before new state is displayed.

More over, they are some cases where the bottom LED blinks very rapidly (in orange), do not know it this is related.

Probably unrelated, since network state check only changes pulse color, not the pulse rate.

f-laurens commented 2 years ago

The introduction of the comitup package (PR #338) may also have some impact here. If comitup is used:

f-laurens commented 2 years ago

Why is this closed? Where was the bug?

nabaztag2018 commented 2 years ago

I do not think it's a bug, it's just that it does not react immediately to a loss of connection (on my experience). I think it's totally OK for the user experience.