Code Monkey home page Code Monkey logo

servicenow-arduino-integration's Introduction

ServiceNow-Arduino-Integration

This integration will connect an Arduino to a computer. An application on the computer will consume web service which will check ServiceNow for Critical (P1) incidents in a New status.

Getting Started

This integration will connect an Arduino to a computer. An application on the computer will consume web service which will check ServiceNow for Critical (P1) incidents in a New status.

If the web service returns an incident, an LED attached to the Arduino will light up red. A user can hit a button which will temporarily light up the LED blue and assign the incident to Fred Luddy in the CAB Approvers group.

SETUP

  • Download and install the Arduno IDE: http://arduino.cc/en/main/software
  • Download and install Node.JS: https://nodejs.org/download/
  • Download and extract the Zip (the button on the right side of this). Extract to your user directory.
  • Install NODE modules.
    1. Open a command prompt/terminal
      Type this and hit enter: npm install

ARDUINO STEPS

  • Wire the Arduino based on this diagram
  • Open Arduino IDE
  • Download this sketch.. HERE ..and paste in to the Arduino IDE
  • In the Arduino IDE, hit the Arrow icon (upper left, to the right of the check) to upload the script to the Arduino

NODE.JS STEPS

  • In your preferred text editor open config.js (it is one of the files in the Zip file).
  • Update the instance URL with your instance name
  • Update username and password with an Admin username and password.
  • Update the serialport variable. You will find this by opening the Arduino IDE, going to Tools -> Port. It will say something like "/dev/tty.usbmodem1451 (Arduino Uno)" or "COM4 (Arduino Uno)". In this example, the com port is "/dev/tty.usbmodem1451" or "COM4"
  • Save the file.

SERVICENOW STEPS

  • Log in to your ServiceNow instance
  • Update the web services properties (go to System Web Services -> Properties)
  • Set following check boxes to "Yes" leave all other unchecked
    1. Require authorization for incoming RSS requests
      Require basic authorization for incoming SOAP requests
      Require authorization for incoming WSDL requests.
      Use unique targetNamespace for WSDL definition.

RUN THE APPLICATION

  • After confirming you do not have any unassigned, P1 incidents in a "new" status, on your instance.
  • Open the command prompt/terminal.
  • type "node arduino".
  • In your ServiceNow instance, create a new, unassigned, P1 instance.
  • Wait for the light connected to the Arduino to turn red (it should be just a few seconds after you save the incident)
  • Push the button. The light on the arduino will turn blue.
  • Go back to your ServiceNow instance. Confirm that the incident as been assigned.

servicenow-arduino-integration's People

Contributors

chengdu28 avatar jasontmckeesn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.