Giter Club home page Giter Club logo

streaming-plc-grafana's Introduction

Streaming from PLC to Grafana with Inxton

grafana-stream-gif-2.gif

Requirements

  • Grafana - link
  • Inxton developer license - link
  • hse Streaming Source - link
  • .NET SDK - link
  • TwinCAT 3 installed

How to run

  1. Install hse Stream Source by unpacking from .\assets\ it to path_to_grafana\plugins-bundled\internal\.
  2. Add hse Stream Source as Data Source in Grafana - grafana docs.
  3. Open the solution, activate configuration, run the PLC.
  4. Run the WebSocketGrafana project.
  5. Open Grafana. link
  6. Create new dashboard. Select the hse Stream source in the panel. grafana docs. It will say that the datasource is unsigned. Don't worry about that.
  7. To server field write ws://127.0.0.1:5002/MAIN/Data/IntValue$
  8. You should see the value live.

If you want to use the dashoard in the Gif import the dashboard from json (located in assets\Inxton-Grafan.json) grafana docs.

What is going on

When you enter ws://127.0.0.1:5002/MAIN/Data/IntValue$ to Grafana a WebSocket connection is estabilshed between the Grafana panel and the server app.

The server app will parse the input MAIN/Data/IntValue$ into MAIN.Data.IntValue and read the value from PLC and publish it to the websocket.

URL explained

  • ws://127.0.0.1 Address of the websocket server
  • :5002 Port
  • /MAIN/Data/IntValue path to the variable
  • $ terminating character

Adding new variable in the PLC

When you add a variable to the PLC, you need to run the Inxton builder and restart the app.

streaming-plc-grafana's People

Contributors

jozefchmelar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ptku mr-robot35

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.