This repository contains some demos showing usage of the Infusion Nexus integration technology:
- A music demo
- A science lab demo
> git clone https://github.com/fluid-project/infusion-nexus-demos.git
> cd infusion-nexus-demos
> npm install
Each of the demos requires a running Nexus and the hosting of web pages. This section describes the steps that are common to all of the demos. Sections following will contain demo-specific information.
For the Music demo, the base Nexus may be used. It can be found at:
For the Science lab demo, a Co-Occurrence Engine enabled Nexus is required. To run such a Nexus, clone the following repository:
And run:
> node nexusWithCoOccurrenceEngine.js
This repo contains a simple static webserver configuration, or you can use a webserver that you've already got set up.
There is a top level index.html
with links to the individual
demos.
To use the webserver configured in nexus-demos
:
> node nexus-demos.js
Then, point your web browser to:
> node music-demo/constructNexusPeers.js
- Use the AsTeRICS fork with the NexusConnector component at https://github.com/simonbates/AsTeRICS/tree/GPII-1543
- Run ACS
- Run ARE
- Upload and run one of the models in
asterics-models
such asFacetracker to NexusConnector.acs
Instructions for building the ARE can be found here: https://github.com/simonbates/AsTeRICS/blob/GPII-1543/ReadMe.md
The AsTeRICS NexusConnector component has properties for configuring the address of the Nexus instance to connect to and the component path to bind to. It has the following properties:
- nexusHostname
- nexusPort
- nexusComponentPath
> node science-lab/ConstructScienceLabPeersAndRecipes.js
We currently have a driver for Atlas Scientific pH and Electrical
Conductivity sensors. This driver may be found in the
science-lab/atlas-scientific-driver
directory and can be run in
2 ways:
MonitorSerialDevice.sh DEVICE_PATH
- For example:
MonitorSerialDevice.sh /dev/ttyUSB0
- Continually monitors the device at the provided path
- When the device is present, it will attempt to establish a
serial connection (by running
RunAtlasScientificDriver.js
below) - When the device is removed, it will continue to monitor for the device to appear again
- For example:
node RunAtlasScientificDriver.js --device DEVICE_PATH
- Runs the driver for the specified device
- Terminates if the device is not available or if the device is removed
For testing, we also provide science-lab/FakeSensor.js