Coder Social home page Coder Social logo

softwareag / oee-simulators Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 2.0 11.47 MB

Set of simulators built for testing and demoing Cumulocity IoT OEE app.

Dockerfile 0.28% Python 99.72%
cumulocity-iot iot simulation simulator oee iot-analytics cumulocity-simulator

oee-simulators's Introduction

OEE-simulators

Collection of simulators available for Cumulocity IoT OEE app. All simulators are available as Docker images and need to be deployed to the tenant where OEE app is running. Once deployed, the simulators automatically create preconfigured devices and start sending data.

Generic Simulators are the simulators we do use for development and should be used for testing and demoing of Cumulocity IoT OEE app. The simulators have been designed and configured to simulate commonly seen machine types. A detailed description of supported machine types and how to configure calculation profiles in OEE app can be found in the simulators project.

Simulators are needed to calculate OEE based on configuration profiles that can be setup in OEE app.

Prebuilt docker images can be downloaded from the Releases in this repository.

Tests

Collection of test for the Generic Simulators

To run specific test script:

python test/[script-name].py  [-h] [--tenant-id TENANT_ID] [--password PASSWORD] [--baseurl BASEURL] [--username USER]
Cumulocity platform credentials setup

optional arguments:
long syntax | short syntax | Functions ------------------------------------------------------------------------------------------ --help, | -h | show help message and exit --tenant-id TENANT_ID, | -t TENANT_ID | Tenant ID --password PASSWORD, | -p PASSWORD | C8Y Password --baseurl BASEURL, | -b BASEURL | C8Y Baseurl --username USER, | -u USER | C8Y Username It is important to note that all four arguments: Tenant ID, C8Y Password, C8Y Baseurl, and C8Y Username must be filled. Failure to provide any of these fields may cause the script to malfunction or produce unexpected results.

If you don't want to input arguments, you can set environment variables need to be set in cumulocityAPI.py in order to run simulators_test.py.
For example:

C8Y_BASEURL=https://test.development.c8y.io 
C8Y_TENANT=t123
C8Y_USER=yourusername
C8Y_PASSWORD=yourpassword

If you run the export_import_test.py, besides environment variables in cumulocityAPI.py, you must set environment variables also in Environment.py. Because they use both extra and main parts of simulators which are independent to each other.


These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.

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.