Coder Social home page Coder Social logo

fake-weather-stations-fleet's Introduction

Fake weather stations fleet

Part of Open IoT Agro project.

Console utility that aims to send fake weather data to AWS IoT cloud.

node fake-weather-stations-fleet.js --broker <broker address>

Weather station data example:

{
  "tmp": 24,
  "hmd": 50,
  "wind": 12,
  "wdir": 1,
  "rain": 0
}

Sensors node data example:

{
  "tmp1": 22,
  "hmd1": 50,
  "tmp2": 20,
  "hmd2": 40,
  "tmp3": 18,
  "hmd3": 30
}

Certificates

Amazon requires to have signed certificates and TLS1.2 to connect things Certificates are placed to ./certs folder

To generate them follow articles: https://gist.github.com/exAspArk/f738f0771e2675e7f4c3b5d11403efd8 https://docs.aws.amazon.com/iot/latest/developerguide/create-CA-verification-cert.html?icmpid=docs_iot_console_secure_ca_reg

To get root-CA.crt I run curl https://www.amazontrust.com/repository/AmazonRootCA1.pem > root-CA.crt

It's important to Allow * for certificate policy. Policy example:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "*",
      "Resource": "*"
    }
  ]
}

mqqt test

fake-weather-stations-fleet's People

Watchers

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