AWS Location Services Tutorial | Fleet Tracking System Design | Logistics IoT
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
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......🎉
This is a gold!. Thanks for awesome presentation.
@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?
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.
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.
btw I set rules and policies in us-east-1, and my default region is ap-southeast-2, will it be affected?
Please see the Readme file in the github repository linked in video description. Just check if you missed any configuration or step.
"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?
The lambda function must have a role that has permissions to write to tracker.
Kindly see Readme on github repo - for details.
I am getting 403 forbidden error when "send location data" button in simulator.html .do we need to add other authentication for that?
Have you updated the IDENTITY_POOL_ID, IOT_ENDPOINT, TOPIC, REGION correctly in web/js/simulator.js? Please check the same.
@@ArchitectureBytes yes updated .
@@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 ).
hi
can u please integrate this option in our fleet management software?
Which software are you referring to?
datbase is sql server.I can explain to u table structure@@ArchitectureBytes
The tutorial should help you integrate.
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);
};
Please see the Readme file in the github repository linked in video description. It has necessary instructions.
@@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.!!!
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?>
@@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.