Open source arduino code designed to operate with comma CMMS API and generate equipment work requests automatically based on actual field conditions
Other
Switch branches/tags
Nothing to show
Clone or download
Latest commit e68c18c Aug 8, 2017
Permalink
Failed to load latest commit information.
README.md Update README.md Aug 8, 2017
arduino_sensornet.ino Update arduino_sensornet.ino Jun 28, 2015

README.md

THIS HAS BEEN DEPRECATED AS OUR API HAS CHANGED

If you would like to contribute with your own client connection to comma CMMS, please contact us and we will be happy to provide API information to allow you to do that.

What is the sensorNET project?

Open source arduino code designed to operate with comma CMMS API and generate equipment work requests automatically based on actual field conditions

How do I get this working?

  1. Get an arduino controller board from here.
  2. Get an arduino ethernet shield (we developed the original code for the wired variant, but please feel free to fork and commit the code for a wireless variant with this hardware).
  3. Download the arduino IDE here.

The current code was developed for the VERY old arduino duemillenove, and we would love users to edit the code to make it work for the latest versions.

#Configuration Steps

##comma CMMS configuration:

Step 1: Register for a free comma CMMS trial account at the comma CMMS website.

Step 2: Login to comma CMMS and go to "Logged in as..." -> "Modules"-> "API".

Step 3: Click the "+Node" button.

Step 4:Enter "Test node" for node name and "Test node" for node description. Leave all other options as they are (ensure "Set as development node" is checked).

Step 5: Click "Add".

##Cient side hardware setup: Step 1: plug your ethernet shield on top of your arduino controller board

Step 2: plug in your ethernet shield to an ethernet cable with internet access.

Step 3: connect the circuit specified on the following picture (or simlar): arduino example circuit

The value of R is not very important but try to use anything from 1K to 10K, except for the leftmost R where you should not go too much above 1K5, otherwise the LED will be too dim.

The 5V are actually supplied by the arduino itself directly from the I/O headers.

The implementation of the circuit above: arduino example circuit actual

Step 4: connect your arduino to your computer

##Client side software configuration: Step 1: Open your arduino IDE (where you write and download the programs).

Step 2: Copy and paste the code on the "arduino_sensornet.ino" file to a new arduino sketch.

Step 3: Look at the Request string text which will be something like the following (you can see this by clicking "display" on the list of available nodes on your account): http://server_name/apiengine?f=output_format&o=number_1&n=number_2&w=write_key&r=read_key&rc=request_code&parameters

take the values above and place them on the following variables:

char server[] = "server_name";

char read_key[] = "read_key";

char write_key[] = "write_key";

char o[] = "number_1";

char n[] = "number_2";

Leave all other variables as they are.

##Final steps Step 1: load the arduino code to the board

Step 2: Connect your serial monitor (the magnifier symbol on the top right of the arduino IDE).

Step 3: If all went well, you should see system messages on the serial monitor window.