Internet of Things (IoT) for Pier 9
Note: It also relies on the https://github.com/cyrillef/PlougonvelinNode Project which is the real brain running on a BeagleBone Black device which controls the shutters, lights, and sensors.
Live demo at
This sample uses the Autodesk Forge Viewer to display the CNC Workshop, and implements a Viewer IoT Extension to connect to the Raspberry PI IoT broadcaster via a secured socket.io connection.
This sample is dependent on the server part on Node.js and couple of Node.js extensions which would update/install automatically via 'npm':
This sample is dependent of Node.js and few Node.js extensions which would update/install automatically via 'npm'.
Bootstrap - Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.
Deploy on a server or local machine
Download and install Node.js (that will install npm as well)
Download this repo anywhere you want
Execute 'npm install', this command will download and install the required node & bower modules automatically for you.
Edit file ./html/index.html line #75-77, and set your model URN
Edit files in ./html/data to describe your model / sensors settings.
Install your credential keys:
Use system environment variables (This is actually the option you need to use for the tests suite which runs on Travis-CI). Replace keys placeholder xxx with your own keys.
* Windows<br /> ``` set FORGE_CLIENT_ID=xxx set FORGE_CLIENT_SECRET=xxx [set PORT=<port>] node start.js ``` * OSX/Linux<br /> ``` [sudo] [PORT=<port>] FORGE_CLIENT_ID=xxx FORGE_CLIENT_SECRET=xxx node start.js ```
Note: the port argument can be omitted and default to port 80. If port 80 is already in use by another application (like Skype, or IIS, or Apache, ...), you can use any other free port such as 8000, 3000, etc... But in the next section you would need to specify the port to use, i.e. http://localhost[:port]/
Hans Kellner, Autodesk, Inc.
Alex Chein, Autodesk, Inc.