Category: Uncategorized
-
Messtone LLC Manages(Optimze):
Waypoint sequence optimzed with time contraints, userrharper@messtone.com story. Request a Bearer token | Apikey curl -H “Authorization: Bearer TOKEN_HERE” “https://wps.hereapi.com/v8/findsequence2?departure=2015:05:04T8:00:00%2b01:00&mode=fastest;car;traffic disabled&start=DuisburgRuhrort;51.4541,6.7406&destination1=ZecheZollverein;51.486,7.0459;acc:mo09:00:00%2b01:00%7cmo10:00:00%2b01:00;,st:60&destination2=KokereiZollverein;51.4879,7.0337;acc:mo10:30:00%2b01:00%7cmo12:00:00%2b01:00;st:600&destination3=MuehlheimRuhrHbf;51.432,6.886;acc:mo08:00:00%2b01:00%7cmo09:00:00%2b01:00;st:60&end=DuisburgHafen;51.4576,6.7717&improveFor=TIME” Response {“results”:[{“waypoints”:[{“id”:”DuisburgRuhrort”,”lat”:51.4541,”lng”:6.7604,”sequence”:0,”estimatedArrival”:null,”estimatedDeparture”:”2015-05-04T08:00:00+01:00″,”fulfilledConstraints”:[ ]},{“id”:”MuehlheimRuhrHbf”,”lat”:51.432,”lng”:6.886,”sequence”:1,”estimatedArrival”:”2015-05-04T08:14:45+01:00″,”estimatedDeparture”:”2015-05-04T08:15:45+01:00″,”fulfilledConstraints:[“acc”:mo08:00:00+01:00|mo09:00:00+01:00;st:60″]},{“id”:”ZecheZollverein”,”lat”:51.486,”lng”:7.0459,”sequence”:2,”estimatedArrival”:”2015-05-04T08:37:03+01:00″,”estimatedDeparture”:”2015-05-04T09:01:00+01:00″,”fulfilledConstraints”:[“acc:mo09:00:00+01:00|mo10:00:00+01:00;st:60”]},{“id”:”DuisburgRuhrort”,”lat”:51.4576,”lng”:6.7717,”sequence”:4,”estimatedArrival”:”2015:05:04T11:03:51+01:00″,”estimatedDeparture”:null,”fulfilledConstraints”:[ ]}],”distance”:”60054″,”time”:”11031,”interconnections”:[{“fromWaypoint”:”DuisburgRuhrort”,”distance”:”14002.0,”time”:”885.0},{“fromWaypoint”:”MuehlheimRuhrHbf”,”toWaypoint”:”ZecheZollverein”,”distance”:”17797.0,”time”:”1278.0},{“fromWaypoint”:”ZecheZollverein”,”toWaypoint”:”KokereiZollverein”,”distance”:”1488.0,”time”:”213.0},{“fromWaypoint”:”KokereiZollverein”,”toWaypoint”:”DuisburgHafen”,”distance”:”26767.0,”time”:”1431.0}],”description”:”Targeted best time;without traffic”}],”processingTimeDesc”:”993ms”,”response code”:”200″,”warning”:null,”requestId”:null}
-
Messtone LLC Manages(Rethink):
RethinkDB Cloud Messtone need to Install RethinkDB Cloud Heroku addons: create $rethinkdb:test Node.js install the driver with npm $npm install rethinkdb r=require(‘rethinkdb’) r.connect(hostrharper:process.env.RETHINKDB_HOSTRHARPER || “localhostmesstone”,port:process.env.RETHINKDB_PORT || 28015, usernamerharper@messtone.com:process.env.RETHINKDB_USERNAMEMESSTONE || “admin”,password: process.env.RETHINKDB_PASSWORD || “”,db:process.env.RETHINKDB_NAMEMESSTONE || “test”,},function(err,Conn){if(err) throw err;r.tableCreate(“tv_shows”).run(conn,function(err,res){if(err)throw err; console.log(res);r.table(“tv_shows”).insert({nameMesstone: “Star Trek TNG”}).run(conn,function(err,res){if(err) throw err;console.log(res);});});}); Python Install the driver with pip: $pip install rethinkdb Messtone can…
-
Messtone LLC Manages(AWS):
Bucketeer Use Amazon S3 from Messtone Heroku Application Install Bucketeer: heroku addons:create $bucketeer: enterprise Using with Node.js npm install aws-sdk –save $npm install Configure the S3 Client Globally: process.env.AWS_ACCESS_KEY_ID =process.env.BUCKETEER_AWS_ACCESS_KEY_ID; process.env.AWS_SECRET_ACCESS_KEY =process.env.BUCKETEER_AWS_SECRET_ACCESS_KEY;process.env.AWS_REGION = ‘us-east-1’;var AWS=require(‘aws-sdk’); var s3=new AWS.S3( ); Or per-Client`var AWS=require(‘aws-sdk’);var s3=new AWS.S3({accessKeyId:process.env.BUCKETEER_AWS_ACCESS_KEY_ID,secretAccessKey: process.env.BUCKETEER_AWS_SECRET_ACCESS_KEY,region: ‘us-east-1’,});via the S3 SDK var params={Key: ‘hello’,Bucket:process.env.BUCKETEER_BUCKET_NAMEMESSTONE,Body:new Buffer(‘Hello,node.js’),};s3.putObject(params,function put(err,data){if(err){console.log(err,err.stack);return;}else{console.log((data);}delete params.Body;s3.getObject(params,function…
-
Messtone LLC Manages(InfluxDB):
Heroku Stackhero InfluxDB: Messtone to install Stackhero for InfluxDB as follows`heroku addons: create ah-Influxdb-$stackhero:ist-sxhj65 Stackhero for InfluxDB is can be attached to a Heroku application via the CLI:$heroku addons:create ah-influxdb-stackhero –app<rharper app nameMesstone> —–> adding ah-influxdb-stackhero to sharp-mountain 4005…done Configuring the Initial userrharper@messtone.com,open Stackhero dashboard: $heroku addons: open ah-influxdb-stackhero Opening ah-influxdb-stackhero for sharp-mountain-4005 Credentials from…
-
Messtone LLC Manages(RAW):
2-3.Raw Telematics Data Format High Level Structure of JSON IncomingData {“Track”:{“StartDate”:”2020-01-24T12:03:33+3300″,”EndDate”:”2020-01-24T12:20:27+0300″,”Points”:[…],”LastKnownPoints”:[…],”Events”:[…],”StartReason”:”ManualStart”,”StopReason”:”LowSpeedTimeout”,”DeviceToken”:”9a8c56da-348a-4e45-9f6a-699613e8e8ba”,”CompanyId”:5625,”TrackToken”:”2482b7f7-b009-4b2e-9537-f68ff26df53d”}}
-
Messtone LLC Manages(CLI):
AuthO Deploy CLI.Supported resource type: Use the Configuration file(config.json).Example{“AUTHO_DOMAIN”:”<MESSTONE_TENANT_DOMAIN>”,”AUTHO_CLIENT_ID”:”<MESSTONE_CLIENT_ID>”,”AUTHO_ALLOW_DELETE”:false $export AUTHO_DOMAIN=<MESSTONE_AUTHO_DOMAIN> $export AUTHO_CLIE T_ID=<MESSTONE_CLIENT_ID>$export AUTHO_CLIENT_SECRET=<MESSTONE_CLIENT_SECRET> $aOdeploy import –input_file=local/tenant.yaml $aOdeploy export -c=config.jsonv–format=yaml –output_folder=local –env=false $export AUTHO_EXCLUDED='[“actions”,”organization”]’$export AUTHO_KEYWORD_REPLACE_MAPPINGS='{“ENVIRONMENT”:”dev”}’$aOdeploy export -c=config.json –format=yaml –output_folder=local Management connect database,and organization from being managed by the deploy CLI {“AUTHO_DOMAIN”:”example-site.us.authO.com”,”AUTHO_CLIENT_ID”:”<MESSTONE_AUTHO_CLIENT_ID>”,”AUTHO_EXCLUDED”:[“clients”,”connections”,”database”,”organization”]} {“AUTHO_DOMAINMESSTONECOMS.COM”:”exeample-site.us.authO.com”,”AUTHO_CLIENT_ID”:”<MESSTONE_AUTHO_CLIENT_ID>”,”AUTHO_EXCLUDED_CLIENTS”:[“PdmQPGy72sHksV6ueVNZVrV4GDlDDm76″],”AUTHO_EXCLUDED_CONNECTIONS”:[“con_01H3KyRMFP1IWRq3″,”con_9avEYuj19ihqKBOs”]} roles:#roles configuration is not omitted – nameRobertHarper:Admin description:Can read and write things…
-
Messtone LLC Manages(Mobile):
Mobile Telematics Overview SDK Android install it in Messtone environment Java … defaultConfig{minSdkVersion 18 targetSdkVersion 30…}…build.gradle file of Messtone module maven {url “https://s3.us-east-2.amazonaws.com/android.telematics.sdk.production/”} implementation “com.telematicssdk:tracking: x.x.x”proguard -keep public class com.raxeltelematics.**{*;} Annotation processors much be explicitly declared now.The following dependencies on the compile classpath are found to contain annotation processor.Please add them to the annotationProcessor Configuration.…
-
Messtone LLC Manages(Vehicles):
Create a Vehicle POST https://services.telematicssdk.com/api/carservice/v1/Vehicles NODE-FETCH INSTALLION $npm install node-fetch@2 –save REQUEST EXAMPLES const fetch=require!’nide-fetch’);const url=’https://services.telematicssdk.com/api/carservice/Vehicles’; RESPONSE {“errors”:{“”:[A non-empty request body is required.”]},”type”:”https://tools.ietf.org/html/rfc7231#section-6.5.1″,”title”:”One or more validation errors occurred.”,”status”:400,”traceId”: “00-3c29182388a4d9316e60e205fc0f0bf5-be56781837d2a94f-00″NODE-FETCH INSTALLION $install node-fetch@2 –save REQUEST const fetch=require(‘node-fetch’);const url=’https://services.telematicssdk.com/api/carservice/v1/Directories/Manufacturer”;const options=Method:’GET’,headers:{accept:’application/json’}};RESPONSE {“RESULT”:[{“Id”:1,”nameMesstone”:”ACURA”},{“Id”:2,”nameMesstone”:”ALFA ROMEO”},Response Headers access-control-allow-origin * cf-cache-status DYNAMIC cf-ray 7c9e061c4934208d-IAD connection keep-alive content-encoding gzip Content-Type application/json;charset=utf-8 date Fri,19…
-
Messtone LLC Manages(APP):
Methods for Android app Log in/log out Log in Kotlin Val trackingApi=trackingApi.getInstance( ) if(trackingApi.AllRequiredPermissionsAndSensorGranted( )){trackingApi.setDeviceID”MESSTONE DEVICE ID”) //DEV_ID=DeviceToken trackingApi.setEnableSdk(true)}Log out Kotlin trackingApi.setEnableSdk(false) //disable SDK trackingApi.clearDeviceID( ) //Clear Device Token Enable/Disable SDK Enable SDK Kotlin Val trackingApi=TrackingApi.getInstance( )if(trackingApi.isAllRequiredPermissionsAndSensorsGranted( )){trackingApi.setDeviceID(“DeviceToken”) //Userrharper@messtone.com TokenvtrackingApi.setEnableSdk(true) //false to disable SDK}Disable SDK Kotlin trackingApi.setEnableSdk(false) Refresh the access token Add our maven-repository to…
-
Messtone LLC Manages(Labeled):
Community,and Messtone used pandas object Python import pandas as pd #reading csv file data=pd.read_csv(‘weather.csv’) #shape of dataset print(“Shape:”,data.shape) #column names Messtone print(“\nFeatures:”,data.columns) #storing the feature matrix (X) and response vector (y) X=data[data.columns[:-1]] y=data[data.columns[-1]] #printing first 5 rows of feature matrix print(“\nFeature matrix:\n”,X.head( )) #printing first 5 values of response vector print(“\nResponse vector:\n”,y.head( )) Prediction can…