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

Use websockets for kindof real-time GUI [enhancement] #79

Open
migmolrod opened this issue Mar 11, 2016 · 0 comments
Open

Use websockets for kindof real-time GUI [enhancement] #79

migmolrod opened this issue Mar 11, 2016 · 0 comments

Comments

@migmolrod
Copy link

AFAICS, right now we need to refresh web interface in order to get new data. But now there are WebSockets that (if I understood them well) can make an almost real-time interface without the need of refreshing the whole page over and over.

It would take quite a lot of work and refactoring, maybe a possible long-term goal. But the improvement would be huge in my opinion.

I'm not sure about this, I've never used WebSockets myself, but I've seen a monitoring tool (also with a web based application/interface) using them in a Symfony2 conference and it's awesome.
I guess you should use this:
https://pypi.python.org/pypi/websockets
in sensor.py and/or server.py.

Then also change the web application to make use of those WebSockets. This comes to my mind:
http://plugins.jquery.com/Websocket/
since I see you're using jQuery in the frontend.

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

1 participant