In this article:
TagoIO
TagoIO is an IoT cloud platform that transforms the way businesses create value from connected products and user interactions. It provides tools for your business to manage devices, store data, run analytics, and integrate services, with a high level of customization and specific functions based on your application.
To find out more about the features of the platform and determine whether it is the right solution for you, check out the TagoIO website.
Register your account
TagoIO offers a free plan that enables you to set up and test your Myriota integration at no cost.
Complete your registration before returning here to continue with the tutorial.
Configuring TagoIO Visualisation
If you aren't already, log in to your TagoIO account and familiarise yourself with the landing page.
To begin setting up TagoIO, you must first register a device with TagoIO. You can do this from the main dashboard.
From the list of devices, choose Myriota, then Custom Myriota.
Give your device a name and enter its module ID.
From here you will need to generate an authorization token, this is a secure string that lets you add data to your device on TagoIO. Give your token a name, and proceed with the rest of the prompts. Copy the Myriota Authorization code (TOKEN) from the table that is associated with your device.
Now open Device Manager, and create a new HTTP destination. Specify the URL as https://myriota.middleware.tago.io/uplink?authorization=TOKEN, where TOKEN represents the token you generated earlier
e.g.
https://myriota.middleware.tago.io/uplink?authorization=at9a53c1b6276d4c71a5f5f5164c94ec24
Now click Create.
If required, you can find your token back in TagoIO on the General Information page for your device.
Within the Device Manager, navigate to your device and assign the destination you have just created to complete the connection.
Switch back to the device view in TagoIO, where you can now set up a parser.
Enable the "Run your own parser" option.
The nature of the parsing required will vary from app to app, but we have provided an example below to for the tracker app available to use with the Myriota Developer Kit:
const payload_raw = payload.find(x => x.variable === 'payload_raw' || x.variable === 'payload' || x.variable === 'data');
if (payload_raw) {
try {
// Convert the data from Hex to Javascript Buffer.
const buffer = Buffer.from(payload_raw.value, 'hex');
// Extract the buffer data into variables
const data = [
{ variable: 'seq', value: buffer.readUInt16LE(0,1) },
{ variable: 'lat', value: buffer.readInt32LE(2,5)/10000000, unit: '°' },
{ variable: 'lon', value: buffer.readInt32LE(6,9)/10000000, unit: '°' },
{ variable: 'time', value: buffer.readUInt32LE(10,13)},
{ variable: 'location', value: "Location", location:{lat:buffer.readInt32LE(2,5)/10000000,lng:buffer.readInt32LE(6,9)/10000000}},
];
// This will concat the content sent by your device with the content generated in this payload parser.
// It also adds the field "serie" and "time" to it, copying from your sensor data.
payload = payload.concat(data.map(x => ({ ...x, group: payload_raw.group, time: payload_raw.time})));
} catch (e) {
// Print the error to the Live Inspector.
console.error(e);
// Return the variable parse_error for debugging.
payload = [{ variable: 'parse_error', value: e.message }];
}
}
With your parser in, click Save, in the bottom right corner.
From here you can now begin creating dashboards for your device, click the + icon next to Dashboards to begin.
For more information go to: https://community.tago.io/t/how-to-integrate-tagoio-with-myriota-satellite-connectivity/926