Code Monkey home page Code Monkey logo

tajgosimulatorsample's Introduction

TajGo Azure IoT Hub Simulator Sample

This is a sample on how to send / receive data with Azure IoT Hub and then kicking off Azure Stream Analytics Service to perform data management on the received data.

It consist out of 2 projects:

  • Tajgo.Client.Simulator - it purpose is to send simulated data to the Azure IoT Hub
  • Tajgo.Client.Receiver - it purpose is to get data from Azure IoT Hub to check, if sending data was a success

After data is received, Azure Stream Analytics kicks in and perform data management.

{
"SystemPressure":0,
"SplittingCilinderPressure":0
"SawPressure":0,
"OilTemperature":0,
"LogLength":0,
"LogDiameter":0,
"TotalQuantity":0,
"CurrentQuantity":0,
"CurrentLogProduction":0,
"MaksimumPullForce":0,
"ShaftTurns":0,
"TotalWorkingHours":0,
"IntervalWorkingHours":0,
"CorrectionFactor":0
}

Query in Azure Stream Analytics get's the data from Azure IoT Hub and then saves data to Azure Table Storage for raw log processing. Other data is saved into Sql Azure. Other services are added to for additional data management possibilities (like PowerBI for creating rich visualizations, etc.).

The result is then entries in the database with following structure. Data is then be pulled out of database for data analysis and preview on website (other database tables ommited).

Database

You can download SQL script for creating the upper structure here.

Sample instructions for code to work

In order to use the sample, you will need to create Azure IoT Hub. You can create it via Azure Portal. Follow this tutorial to create IoT Hub.

After you created service, you need to change settings in Settings.cs file.

IoT Hub Host Name is the name of your IoT hub. Click on the Overview information in your Azure IoT Hub and copy the name. Replace the [IotHubhostName].

Now you only need to enter the connection string. It can be obtained in the Settings blade. Click on the Settings option, choose Shared access policies, select policy (in our case iothubowner) and copy** Connection String** (primary key).

If you have any questions, feel free to contact me.

tajgosimulatorsample's People

Contributors

bovrhovn avatar bojanv 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.