Giter Site home page Giter Site logo

sensor-emulator's Introduction

Sensor Emulator

This is a simple sensor emulator software implemented for IoT experiments. It emulates sensors sending data to an MQTT broker.

Features

  • This can emulate a number of sensors based on the performance of the emulation machine

The following parameters can be defined for each sensors

  • Sensor type: Ex: temperature, humidity, traffic, co2 etc.
  • Frequency: The number of records per second
  • Source: The source text file containing the tuples representing sensor readings

Requirements

  • Go compiler if you want to download and compile the code.
  • MQTT broker for the simulator to send data to.

Configuring the sensors

The sensors to be emulated can be configured by editing the sensoremulator.yml file

deviceid: semu01
messaging:
  protocol: mqtt
  data_topic: sensordata
  command_topic: command1
  broker: localhost:1883
  dataratereadseconds: 10

sensors:
  sensor01:
    type: temperature
    freq: 600
    file: ./data/sensor01.dat
  sensor02:
    type: vibration
    freq: 400
    file: ./data/sensor02.dat
  sensor03:
    type: no2
    freq: 100
    file: ./data/sensor03.dat

Compiling the code

git clone 
go build -o emulator main.go

Running the compiled program

./emulator run

sensor-emulator's People

Contributors

nipunbalan avatar

Watchers

James Cloos 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.