RobotPy web-based low fidelity FRC robot simulation package
Project description
pynetworktables2js
A library that forwards NetworkTables key/values over a Websocket, so that you can easily write your dashboard in HTML5 + JavaScript.
This library does not provide a full dashboard solution, but is intended to provide the necessary plumbing for one to create one with only knowledge of HTML/Javascript. Because the communication layer uses NetworkTables, you can connect to all FRC languages (C++, Java, LabVIEW, Python).
Installation
Make sure to install python 2 or 3 on your computer, and on Windows you can execute:
py -m pip install pynetworktables2js
On Linux/OSX you can execute:
pip install pynetworktables2js
Usage
Go to the ‘example’ directory distributed with pynetworktables2js, and run:
python server.py --robot 127.0.0.1
If you navigate your browser (I recommend Chrome) to http://127.0.0.1:8888, all of the current NetworkTables values will be shown as they change.
One way of testing this out is use the TableViewer application, and start it in server mode.
Feel free to copy the example directory to create your own customized dashboard. Just add your custom files to the www directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pynetworktables2js-2015.0.1.tar.gz
.
File metadata
- Download URL: pynetworktables2js-2015.0.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7a24f7802243addad3bf47f2ffdd4fa331722576adde80f3396a02709cf7dcd |
|
MD5 | dc4a982dffbd3ff75cd5ec946ea34e79 |
|
BLAKE2b-256 | ebd8bb5d034c430a9300a470d714e33f68786e868784f576070b99926755b06f |