Git Product home page Git Product logo

aws-iot-sitewise-operator-input's Introduction

Adding Operator Inputs into SiteWise

In an Industrial environment, the Operators can be an important source of information, for instance, they can enter the machine status (In maintenance, Stopped, Waiting parts from the productions line, operator in break,...) and it can be used to calculate metrics such as OEE (Overall equipment effectiveness).

Architecuture

Architecture

** The Code in this repository covers only the Operator input path (HMI to SiteWise)

Files

  • operator_hmi.html - Operator Input SPA (Single Page Application)

Change:

const ALIAS = "<SITEWISE-ALIAS-CHANGE-IT>";
const URL = "<API-GATEWAY-ENDPOINT-CHANGE-IT>";
  • read_write_operator_input.py - Machine status AWS Lambda - Used to read and update status from the DynamoDB
Table name:	operator-input
Primary partition: key	propertyAlias (String)
Primary sort key: timestamp (Number)
Additional Field: Comment (String)
Additional Field: ropertyValue (Number)
  • write_iotcore_from_dynamodb.py - Read Amazon DynamoDB Streams and push message to IoTCore

Sample Topic at AWS IoT Core

TOPIC = "lambda/operator/input"
  • siteWiseRuleRole.json - AWS IoT SiteWise to grant AWS IoT Rule Access

Change AWS IoT Alias resource or * for tests (DON"T use it in production), then create a new Role

"Resource": "<ARN-AWS-IoT-SiteWise-ALIAS - CHANGE-IT>"
  • operInputToSiteWiseRule.json - AWS IoT Rule Definition

Change the roleARN by the roleARN created basead on the file siteWiseRuleRole.json

"roleArn": "<ARN-AWS-IoT-SiteWise-Access-Role - CHANGE-IT>"

AWS CLI command to create the AWS Iot Rule

aws iot create-topic-rule --rule-name OperInputToSiteWiseRule --topic-rule-payload file://operInputToSiteWiseRule.json

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

aws-iot-sitewise-operator-input's People

Contributors

amazon-auto avatar simberg-aws avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

simberg-aws

aws-iot-sitewise-operator-input's Issues

Offline Mode

How would this change if the operator was not always able to access cloud applications. For instance if there were a network outage. Could the input be gathered using components on the green grass device and then forwarded?

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.