AWS Location Services Tutorial | Fleet Tracking System Design | Logistics IoT

Sdílet
Vložit
  • čas přidán 16. 08. 2023
  • Timelines:
    0:06 Quick Demo
    0:25 High Level Components
    0:56 Architecture
    1:57 IoT Core | Rule
    3:00 Lambda - Save Location in Tracker
    3:16 Location Services - Tracker
    4:08 EventBridge
    5:20 Lambda - Send Location to Client
    5:41 Websockets API Gateway
    7:45 DynamoDB
    8:10 Cognito Identity Pool
    9:06 Webpages - S3 Static Website
    10:58 Demo
    Code:
    github.com/architecturebytes/...
    IoT Playlist:
    • IoT - Internet of Things
    #systemdesign #iot #aws #softwarearchitecture
    We can track location of devices or movement of vehicles on a map - with this Architecture & Tutorial. Fleet Management System
  • Věda a technologie

Komentáře • 22

  • @linuxgeek1872
    @linuxgeek1872 Před 5 měsíci

    This tutorial series is nothing less than a Gold mine....the more you dig the more you explore...... amazing work.....please keep posting such videos......🎉

  • @Cherupakstmt
    @Cherupakstmt Před 11 měsíci

    This is a gold!. Thanks for awesome presentation.

  • @jfr7038
    @jfr7038 Před 3 měsíci +1

    @architecturebytes, I'm sure I'm missing something. Being a newbie, Can you please clarify whats the purpose of having location service, event bridge and additional Lambda if the first Lambda function directly sends the data to DynamoDB table?

    • @ArchitectureBytes
      @ArchitectureBytes  Před 3 měsíci

      While you could store location data directly in DynamoDB, Location Service offers specialized capabilities for managing and processing location data, including geospatial data storage, spatial queries and calculations, geocoding/reverse geocoding, routing, map visualization, geofencing (trigger action if device enters or leaves a certain area) - which are very useful for Location based applications. This demo does not demonstrate All the capabilities of AWS Location Services.

  • @Seven-ky6nq
    @Seven-ky6nq Před 3 měsíci

    It keeps showing "Failed to load resource: the server responded with a status of 403 (Forbidden)" in browser for loading index.js & simulator.js for index.html & simulator respectively.

    • @Seven-ky6nq
      @Seven-ky6nq Před 3 měsíci

      btw I set rules and policies in us-east-1, and my default region is ap-southeast-2, will it be affected?

    • @ArchitectureBytes
      @ArchitectureBytes  Před 3 měsíci

      Please see the Readme file in the github repository linked in video description. Just check if you missed any configuration or step.

  • @user-ev5sn8hs7e
    @user-ev5sn8hs7e Před 7 měsíci

    "Error sending location data: An error occurred (AccessDeniedException) when calling the BatchUpdateDevicePosition operation: User: arn:aws:sts::{Account}:assumed-role/FleetLocationSave-role-pboyo8hn/FleetLocationSave is not authorized to perform: geo:BatchUpdateDevicePosition on resource: arn:aws:geo:ap-south-1:{Account}:tracker/FleetTracker"
    I am getting the above error while simulating the location data from FleetLocationSave Lambda function.Can you please help?

    • @ArchitectureBytes
      @ArchitectureBytes  Před 7 měsíci +1

      The lambda function must have a role that has permissions to write to tracker.
      Kindly see Readme on github repo - for details.

  • @user-ev5sn8hs7e
    @user-ev5sn8hs7e Před 7 měsíci

    I am getting 403 forbidden error when "send location data" button in simulator.html .do we need to add other authentication for that?

    • @ArchitectureBytes
      @ArchitectureBytes  Před 7 měsíci

      Have you updated the IDENTITY_POOL_ID, IOT_ENDPOINT, TOPIC, REGION correctly in web/js/simulator.js? Please check the same.

    • @user-ev5sn8hs7e
      @user-ev5sn8hs7e Před 7 měsíci

      @@ArchitectureBytes yes updated .

    • @ArchitectureBytes
      @ArchitectureBytes  Před 7 měsíci +1

      ​@@user-ev5sn8hs7e
      Pls check if Identity Pool is created with 'guest access' as shown at 8:10 onwards along with a Role that has appropriate permissions (see Readme on github repo for details ).

  • @zoomcam7706
    @zoomcam7706 Před 9 měsíci

    hi
    can u please integrate this option in our fleet management software?

    • @ArchitectureBytes
      @ArchitectureBytes  Před 9 měsíci

      Which software are you referring to?

    • @zoomcam7706
      @zoomcam7706 Před 9 měsíci

      datbase is sql server.I can explain to u table structure@@ArchitectureBytes

    • @ArchitectureBytes
      @ArchitectureBytes  Před 9 měsíci

      The tutorial should help you integrate.

  • @jfr7038
    @jfr7038 Před 4 měsíci

    Awesome tutorial to the point! Thanks. For me, all went well except the index.js is not able to make connection with websocket it looks like. socket.onmessage() is not executing . Still in the process of troubleshooting. but just wanted to check if anything i should look for
    here is my test code by removing other pieces
    socket.onmessage = (event) => {
    console.log('Message received:', event.data);
    };

    • @ArchitectureBytes
      @ArchitectureBytes  Před 4 měsíci

      Please see the Readme file in the github repository linked in video description. It has necessary instructions.

    • @jfr7038
      @jfr7038 Před 4 měsíci

      @@ArchitectureBytes Thanks, As a newbie, it took sometime to figure things out on how to setup right permissions to those lambda function. But, All looks good. Its works great . Thanks again. this gives me a overall idea about how to leverage AWS services to proceed further with my POC.!!!

    • @jfr7038
      @jfr7038 Před 4 měsíci

      Im just wondering if you have any insights / videos on sending real device data to Aws IOT and tracking its location through the similar architecture?>

    • @ArchitectureBytes
      @ArchitectureBytes  Před 3 měsíci +1

      @@jfr7038 You would use similar architecture for that. You can also see the IoT Playlist on this channel. The video description has a link to that.