Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   pynetworktables2js (http://www.chiefdelphi.com/forums/showthread.php?t=152761)

beijing_strbow 20-12-2016 18:29

pynetworktables2js
 
We're trying to use pynetworktables2js to make a custom dashboard. The issue with this is that the NetworkTables on the robot are set to server mode, and pynetworktables2js also operates a server. The only idea I have is to install pynetworktables2js on the roboRIO, though this seems counterintuitive because the python server would be acting as a wrapper for the NetworkTables server.

I assume there is a solution because it seems quite a few teams use this.

beijing_strbow 20-12-2016 19:00

Re: pynetworktables2js
 
Shoot, sorry, I misunderstood how pynetworktables works. As of now, I think I know how to do it, but I'll probably have more questions once I actually try to get it working on the robot.

virtuald 21-12-2016 03:46

Re: pynetworktables2js
 
pynetworktables2js is an HTTP server, but it is a NetworkTables client. By default it tries to connect to a robot running at 127.0.0.1. You need to tell it to connect to your robot, via a command line option (use --help to see available options).

beijing_strbow 21-12-2016 12:21

Re: pynetworktables2js
 
Yep, I got that. I guess I was just confused about it connecting to the localhost by default.


All times are GMT -5. The time now is 04:50.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi