Skip to content

State of outlet does not change until page is refreshed. #6

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

Open
thestraycat opened this issue Dec 11, 2024 · 2 comments
Open

State of outlet does not change until page is refreshed. #6

thestraycat opened this issue Dec 11, 2024 · 2 comments

Comments

@thestraycat
Copy link

thestraycat commented Dec 11, 2024

As above really. If i toggle on an outlet that is currently off, I will need to refresh the page around 3-5 seconds later for it to show the new state of the outlet is actually now "On".

Anything i can do? For what it might matter, i do have this externally facing from outside my LAN andbehind basic http auth....

In the video you see me click the outlet.
Then wait for around 5-6 seconds.
Then manually refresh the chrome window... and then the state shows as "On"

toggling_on_then_manual_refresh.mp4
@disisto
Copy link
Owner

disisto commented Dec 12, 2024

Hello,

the behavior is known and has been addressed with version 2.0, which is currently not released, among some other issues.

The cause is that the script loads faster than the PDU responds. Local benchmarks have shown that non-B models take ~2.7 sec while B models take ~0.7 sec, which is too slow. The solution is to load the page asynchronously, i.e. only display the current status when the PDU has fully responded.

Current workaround: Reload the page to get the actual status when using the web interface.

Solution: Use version 2.0 when it is available. Other projects currently have priority, which is why no ETA has been set.

@thestraycat
Copy link
Author

thestraycat commented Dec 12, 2024

Thanks for the thorough reply! Glad to see you're already aware of it.

Any other plans for v2.0? (whenever that might be)

My two pence would be a baked in user/password option? or Editting/renaming of the outlets. But i understand this is a personal passion project with a personal criteria.

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

No branches or pull requests

2 participants