Skip to main content

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.

Authors

Leon Tan of FRC Team 1418 did the initial research/work to get this working, and created an initial working prototype for Team 1418’s 2015 Dashboard.

Dustin Spicuzza cleaned stuff up, rewrote things, added more functionality, and packaged it so other teams could use it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynetworktables2js-2015.0.1.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file pynetworktables2js-2015.0.1.tar.gz.

File metadata

File hashes

Hashes for pynetworktables2js-2015.0.1.tar.gz
Algorithm Hash digest
SHA256 f7a24f7802243addad3bf47f2ffdd4fa331722576adde80f3396a02709cf7dcd
MD5 dc4a982dffbd3ff75cd5ec946ea34e79
BLAKE2b-256 ebd8bb5d034c430a9300a470d714e33f68786e868784f576070b99926755b06f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page