gluxon / DriverStation.js

An open source alternative FRC Driver Station
Mozilla Public License 2.0
35 stars 5 forks source link

DriverStation.js

An Open Source FRC Driver Station.

DriverStation.js DriverStation.js DriverStation.js

Downloads

v0.4.4

Packages
Packages are avalible here: http://gustavemichel.com/OSCPDSPackages/.

Compile from Source

Compiling from source can be found in the node-webkit documentation. You still have to run npm install in the cloned git repository before packaging. Otherwise, DriverStation.js will be unresponsive because of JavaScript crashing from dependency errors.

$ npm install

After installing the required dependencies, additional actions will need to be taken to obtain a functional application.

Compiling node-gamepad

Due to node-gamepad using native files and the use of node-webkit instead of node, the pre-installed native may not work, below is the process for compiling the native from the Application Directory.

$ npm install -g node-gyp nw-gyp node-pre-gyp # May require Sudo
$ cd node_modules/gamepad/
$ node-pre-gyp build --runtime=node-webkit --target=0.8.6

The Additional Platform Specific dependencies for compiling node natives can be found on the node-gyp github repo README.

Linux

If your system's Python 2.7 executable isn't just called python you can use the --python=<executable name> flag.

Windows

This process was rather difficult, taking nearly 2 weeks to resolve issues, below is a step by step of what I did to complete this task (in additon to the above general instructions).
Note: I started with a clean install of Windows 7 Home Premium 64-bit.

Running Unpackaged

Run in the Application Directory.

$ ./node_modules/nodewebkit/nodewebkit/nw ./

Repairing Missing libudev.so.0

Since node-webkit is installed in node_modules, the sed commq and can be used fairly easily to correct this issue. I assume you are starting at the Application Directory.

$ cd node_modules/nodewebkit/nodewebkit/
$ sed -i 's/udev\.so\.0/udev.so.1/g' nw

License

DriverStation.js is distributed under the MPL 2.0.

Changelog

0.4

These changes are from Gustave Michel III.

0.3

These changes are from FRC 2539, the Krypton Cougars. Many thanks to them!

0.2

0.1