Giter VIP home page Giter VIP logo

aws-iot-examples's Introduction

aws-iot-examples

Examples using AWS IoT (Internet of Things)

This repository is now deprecated and will not receive further updates. It was originally started in 2016 as a collection of samples for building with the brand new AWS IoT service. Most of the samples included have been made obsolete by more recent features or solutions. Sub-bullets of the projects below link to better projects, documentation, or solutions which would likely better serve your interests.

  • mqttSample: A reference implementation for connecting a web application to AWS IoT using MQTT-over-WebSockets
    • The best practice for connecting to AWS IoT Core in a browser application is to use AWS Amplify. Alternatively, check out the AWS IoT Device SDK for Javascript, which includes some browser examples.
  • truckSimulator: Sample code for simulating an Internet-connected truck sending location and performance metrics to AWS IoT or an AWS IoT Device Shadow
  • predictionDataSimulator: Python script which simulates publishing prediction data for a sample integration between AWS IoT and Amazon Machine Learning
    • This sample predates the launch of Amazon SageMaker. Check out this sample project for getting started with predictive maintenance using AWS IoT and Amazon SageMaker features.
  • deviceSimulator: CloudFormation template and Lambda function for publishing device data as a simulator to AWS IoT
  • justInTimeRegistration: Sample Lambda function code that creates and attaches an IoT policy to the just-in-time registered certificate. It also activates the certificate. The Lambda function is attached as a rule engine action to the registration topic $aws/events/certificates/registered/<caCertificateID>
    • This sample is still suitable for just-in-time registration but you may be interested in some additional device provisioning features that have launched since this sample was created, such as just-in-time provisioning, bulk provisioning, and fleet provisioning.
  • hereGeofencingRule: Sample Lambda function code that utilizes HERE geofencing capabilities. Add this as an in-line function call in your AWS IoT topic rule to build geofencing evaluation into your rule at run time.
    • The pattern expressed in this example is still sound for demonstrating how an IoT Core rule can integrate with a third-party API using an AWS Lambda function. The PDF documentation includes outdated screenshots of the AWS management console experience. At least one major version of the HERE API has been released since this sample was created. You may wish to review the latest developer documentation first.

aws-iot-examples's People

Contributors

dndkr0 avatar eclectir avatar eeshan-thakar avatar hyandell avatar k-cooper avatar rameezloladia avatar theryanburke avatar

Stargazers

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

Watchers

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

aws-iot-examples's Issues

How to create iot things with same in different thing groups ?

Hi,
I have tried to create two different things with same name in different iot thing groups,it is showing error?
Example:I have created in two thing groups called room1,room2.I have created iot-thing light in room1.when i tried to create iot-thing light in room2 ,it was showing error.

How to do that?
does aws-iot support that?

problem when use to https://aws.amazon.com/blogs/mobile/predictive-maintenance-with-aws-iot-and-amazon-machine-learning/

when i use command python emit_to_AWS_IoT.py sim_pred_maint_emit.csv from guild is have a miss take
Traceback (most recent call last):
File "mtrand.pyx", line 1111, in mtrand.RandomState.choice (numpy\random\mtrand\mtrand.c:16976)
TypeError: 'dict_keys' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "e:\4D\aws\emit_to_AWS_IoT.py", line 41, in
emit_to_iot(args.datafile)
File "e:\4D\aws\emit_to_AWS_IoT.py", line 23, in emit_to_iot
group = np.random.choice(list_of_groups.keys())
File "mtrand.pyx", line 1113, in mtrand.RandomState.choice (numpy\random\mtrand\mtrand.c:17060)
ValueError: a must be 1-dimensional or an integer

The MQTT request timed out: SDK Code -703.

Error Message
The application MQTT connection is normal and reconnection mechanism is valid. When publish, it will sometimes prompt "Publish runner failed. The MQTT request timed out: SDK code-703.". And then disconnects, and when it reconnects again, the connection succeeds, and the publish is normal again.

desired state

Hello there,
Can anyone let me know, Can we add more fields in desired?

more fileds mean that they don't apply to IoT devices.
also if using what will be the scenario?

Thanks

How to run mqttexample

Hi! I am new to aws-iot-sdk-js sdk, I would like to implement the mqttSample, but it is not clear to me how I can start the example code from my computer?
I executed:

git clone https://github.com/aws-samples/aws-iot-examples.git
cd aws-iot-example/mqttSample
node start

But I am getting this error:

internal/modules/cjs/loader.js:584
    throw err;
    ^

Error: Cannot find module '/home/borch/Documents/JavaScript-Apps/aws-iot-examples/mqttSample/start'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

Appreciate anyone could point me to the correct direction. Thank you.

How to build an internet connected RTSP video stream with AWS IoT ?

Hi,

I am using TI C3220 launchpad to stream RTSP video/audio to cloud streaming server.

I would like to use aws iot mqtt to connect and initiate RTSP stream to aws streaming server (MediaLive ...)

I found a link how to send the image as below.
https://www.slideshare.net/awskorea/aws-innovate-building-an-internet-connected-camera-with-aws-iot-tim-cruse

I would like to use the same approach but the end point would be aws medialive or any other streaming server.

Please help me how to implement it.

Thanks.

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.