1.0.1 • Published 2 years ago

iotjobs v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

IoT Jobs

Application to run on device and run remote jobs.

Install

  1. Install dependencies
sudo apt-get install cmake
sudo apt-get install libssl-dev 
  1. Create a new thing on aws console and download certifications
  2. Move certs directory into home (~/certs)
  3. Create a copy of the example/deviceConfig.json and move to (~/certs)
  4. Edit deviceConfig.json for device specific settings
  5. All files must have the following permissions
chmod 644 deviceConfig.json
chmod 600 private.pem.key 
chmod 644 AmazonRootCA1.pem 
chmod 644 device.pem.crt
  1. npm install

Running

  1. npm run prepare
  2. npm run start
  3. if deviceConfig.json not in the default ~/certs directory use
npm run app -- --device_config <my_location>/deviceConfig.json

`