Latitude & Longitude to AWS MQTT


How can I send Latitude and Longitude live data from RUTX50 to Amazon Web Services (AWS) S3 Bucket? I have to configure the map application.


If you want to send GPS data to AWS, I would suggest sending it via MQTT as described here. This method uses Modbus to collect data about itself and send it to AWS via MQTT. If you want to collect GPS data, please refer to RUTX50 Modbus information here to see which registers to read.

If you want to use AWS S3, then it will more complicated as this is not directly supported. However, you can install AWS CLI and use it to copy files to S3:

opkg -e /etc/opkg/openwrt/distfeeds.conf update
opkg -e /etc/opkg/openwrt/distfeeds.conf install python3-awscli

Then, to setup AWS and copy files, you can execute:

#configure AWS - add your access keys.
aws configure
aws s3 cp /etc/yourfile s3://yourbucketname/

If there are errors, you can try:

opkg -e /etc/opkg/openwrt/distfeeds.conf install python3-pip
pip3 install awscli

You can use ‘gpsctl’ command to obtain coordinates:

gpsctl -h
gpsctl -i
gpsctl -x

If you plan to copy files with GPS information to S3, you will need to put those coordinates into a file periodically, likely with a script.

Kind Regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.