Skip to content

Commit 08b1558

Browse files
committed
Add --dashboard flag back in
1 parent 20678f4 commit 08b1558

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pynetworktables2js/__main__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def init_networktables(options):
4343
logger.info("Connecting to NetworkTables at %s", options.robot)
4444
NetworkTables.initialize(server=options.robot)
4545

46-
#if options.dashboard:
47-
# logger.info("Connecting to networktables in Dashboard mode")
48-
# NetworkTables.setDashboardMode()
46+
if options.dashboard:
47+
logger.info("Connecting to networktables in Dashboard mode")
48+
NetworkTables.setDashboardMode()
4949

5050
logger.info("Networktables Initialized")
5151

@@ -66,8 +66,8 @@ def main():
6666

6767
parser.add_option('--team', type='int', help='Team number of robot to connect to')
6868

69-
#parser.add_option('--dashboard', default=False, action='store_true',
70-
# help='Use this instead of --robot to receive the IP from the driver station. WARNING: It will not work if you are not on the same host as the DS!')
69+
parser.add_option('--dashboard', default=False, action='store_true',
70+
help='Use this instead of --robot to receive the IP from the driver station. WARNING: It will not work if you are not on the same host as the DS!')
7171

7272
parser.add_option('--identity', default='pynetworktables2js %s' % __version__,
7373
help='Identity to broadcast to remote NT clients')

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
tornado>=4.0
2-
pynetworktables>=2018.0.1
2+
pynetworktables>=2018.2.0

0 commit comments

Comments
 (0)