Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Python (http://www.chiefdelphi.com/forums/forumdisplay.php?f=187)
-   -   dashboard2: Extensible HTML/JS/Python dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=152736)

nickbrickmaster 19-12-2016 13:22

dashboard2: Extensible HTML/JS/Python dashboard
 
Over the past few weeks I've been developing a web dashboard to replace SmartDashboard. It runs a small web server on the RIO, and communicates using Server-Side Events and XHR.
Implemented so far:
- Charts
- Indicators
- MJPG stream
- Choosers
- Extensions (Including a virtual tank-drive robot)
Not implemented yet:
- Text fields and inputs

Examples and pictures are on Github.

virtuald 21-12-2016 03:43

Re: dashboard2: Extensible HTML/JS/Python dashboard
 
Curious, why not use pynetworktables2js?

nickbrickmaster 21-12-2016 10:27

Re: dashboard2: Extensible HTML/JS/Python dashboard
 
Not really any particular reason. I wanted something integrated into the robot code, definitely not a separate application running on the driver station.

Note that this is called dashboard2. I had a previous one that never got past initial testing that did use pynetworktables2js. I don't remember what I didn't like about it then, but I did cast around awhile before settling on this. Maybe I broke it somehow, and decided I didn't trust it anymore (not that I don't trust you!)

virtuald 21-12-2016 10:37

Re: dashboard2: Extensible HTML/JS/Python dashboard
 
Quote:

Originally Posted by nickbrickmaster (Post 1622671)
Not really any particular reason. I wanted something integrated into the robot code, definitely not a separate application running on the driver station.

Well, pynetworktables2js is a python package, so if you install it on the robot (using the RobotPy installer) you can just do an 'import pynetworktables2js' and then set up the server as the example code shows, it'll just work.

I generally don't recommend people installing dashboard software on the RoboRIO because of potential bandwidth issues during competition, but it will work.

Quote:

Note that this is called dashboard2. I had a previous one that never got past initial testing that did use pynetworktables2js. I don't remember what I didn't like about it then, but I did cast around awhile before settling on this. Maybe I broke it somehow, and decided I didn't trust it anymore (not that I don't trust you!)
Sure, I'm not offended. Just curious as to why you duplicated the work. I'm sure you learned a lot creating this though! :)


All times are GMT -5. The time now is 21:37.

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