https://github.com/natronics/telemetry-websocket-example
A test PSAS telemetry websocket deployed to heroku
https://github.com/natronics/telemetry-websocket-example
Last synced: 10 months ago
JSON representation
A test PSAS telemetry websocket deployed to heroku
- Host: GitHub
- URL: https://github.com/natronics/telemetry-websocket-example
- Owner: natronics
- License: gpl-3.0
- Created: 2016-07-20T17:25:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-21T19:53:12.000Z (almost 10 years ago)
- Last Synced: 2025-03-13T06:42:47.499Z (over 1 year ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
PSAS Telemetry Websocket
========================

[](https://travis-ci.org/natronics/telemetry-websocket-example)
A test PSAS telemetry websocket deployed to heroku.
Live instance: `wss://psas-telemetry-demo.herokuapp.com/` (websocket connection only).
## Develop
The best way to deal with dependencies in python is with [virtualenv][virtualenv]. If you've never used it before, you can read more about how it works here:
Once you have `python3`, `pip`, and `virtualenvwrapper` installed, you can build this project.
To install everything you need for this project, create a new environment (you only need to do this once):
$ mkvirtualenv -p `which python3` telemetry
Now you can install all the requirements:
$ pip install -r requirements.txt
When you're done working you can close the virtualenv like this
$ deactivate
And when you want to work on it again do this:
$ workon telemetry
## Running
Assuming you have the correct libraries installed in your virtualenv, the run a server locally like this:
$ honcho start
This will run the commands in the `Procfile`, starting a local webserver on port 5000. You can now test the code by making a websocket connection to
`ws://localhost:5000`
[virtualenv]: https://virtualenv.pypa.io/en/stable/