Go to Post You really can't have a bad year. The only way you can is to come out of it and not learn anything. - Dan Petrovic [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-12-2016, 18:29
beijing_strbow beijing_strbow is offline
Registered User
FRC #5968 (Cyborg Indians)
Team Role: Programmer
 
Join Date: Aug 2016
Rookie Year: 2016
Location: Kansas
Posts: 23
beijing_strbow is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-12-2016, 19:00
beijing_strbow beijing_strbow is offline
Registered User
FRC #5968 (Cyborg Indians)
Team Role: Programmer
 
Join Date: Aug 2016
Rookie Year: 2016
Location: Kansas
Posts: 23
beijing_strbow is an unknown quantity at this point
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-12-2016, 03:46
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,032
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
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).
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #4   Spotlight this post!  
Unread 21-12-2016, 12:21
beijing_strbow beijing_strbow is offline
Registered User
FRC #5968 (Cyborg Indians)
Team Role: Programmer
 
Join Date: Aug 2016
Rookie Year: 2016
Location: Kansas
Posts: 23
beijing_strbow is an unknown quantity at this point
Re: pynetworktables2js

Yep, I got that. I guess I was just confused about it connecting to the localhost by default.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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