Category: Uncategorized
-
Messtone LLC Manages(LiveTrack):for aircraft
Messtone Devices Enables” GET the live track for aircraft with transponder address 3c4b26(D-ABYF) $curl -u “USERNAMEROBERTHARPER:PASSWORD” -s “https://opensky-network.org/api/tracks/all?icao24=3c4b26&time=0” Limitation retrieve state vectors every 10 seconds authentication Example: from OpenSky_api import OpenSkyApi api=OpenSkyApi( )states=api.get_states( ) for a in states.states:print(“(%r,%r,%r,%r)”%(s.longitude,s.latitude,s.baro_altitude,s.velocity))vectors currently received by Messtone receivers(no rate limit): from opensky_api import OpenSkyApi api=OpenSkyApi(USERNAMEROBERTHARPER,PASSWORD)states=api.get_my_states( ) print(states)for s in states.states:…
-
Messtone LLC Manages(OpenSky):REST
Messtone Devices Enables OpenSky root URL REST API as follows`https://opensky-network.org/api GET /states/own Messtone: $curl -u “USERNAME ROBERT HARPER:PASSWORD -s ” https://opensky-network.org/api/states/own” | pyth -m json.tool $curl -u ” USERNAMEROBERTHARPER:PASSWORD -s ” https://opensky-network.org/api/states/own?serials=123456″ | python -m json.tool $curl -u “USERNAMEROBERTHARPER:PASSWORD” -s “https://opensky-network.org/api/states/own?serials=123456&serials=98765” | python -m json.tool Operation GET /flights/all $curl -u “USERNAMEROBERTHARPER:PASSWORD” -s “https://opensky-network.org/api/states/flights/all?begin=1517227200&end=151730800” | python…
-
Messtone LLC Manages(Flight):Data
Messtone Devices Enables Real-Time Flight Data API Request: https://airlabs.co/api/v9/flights?api_key=MESSTONE-API-KEY Flight Data API Response: [{“hex”:”780695″,”reg_number”:”B-5545″,”flag”:”CN”,”lat”:28.397377,”lng”:115.1008,”alt”:7078,”dir”:269,”speed”:775,”v_speed”:-7.8,”squawk”:”0205″,”flight_number”:”9429″,”flight_icao”:”CSH9429″,”flight_iata””:”FM9429″,”dep_icao”:”ZSPD”,”dep_iata”:”PVG”,”arr_icao”:”ZGHY”,”arr_iata”:”HNY”,”airline_icao”:”CSH”,”airline_iata”:”FM”,”aircraft_icao”:”B738″,”updated”:”1626153069,”status”:”en-route”},{…}] API Request for array view: https://airlabs.co/api/v9/flights?_view=array&_fields=hex,flag,lat,lng,dir,alt&api_key=MESSTONE-API-KEY Flight Tracking API Response for array view: [[“140668″,”NP”,55.879863,37.159452,310.1,320],[300164″,”IT”,42.040581,12.156564,131,1219],[“300390″,”IT”,40.634564,13.063431,154,11887],{“300554″,”IT”,44.84135,11.544286,6,3718],[“300781″,”IT”,48.149957,10.199397,332.5,8724],[“300782″,”IT”,43.940002,11.151442,47,3002]]
-
Messtone LLC Manages(Repository):In Maven
Messtone Devices Enables HERE Data SDK Example: mkdir -p hrn-hello-world/src/main/{java,scala} Create a minimal pom.xml project for Maven and place it in the root directory of Messtone project as so:<project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi: schemaLocation=” http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”><modelVersion>4.0.0</modelVersion><parent><groupId>com.here.platform</groupId><artifactId>sdk-standalone-bom_2.12</artifactId><version>2.60.3</version><relativePath/></parent><groupId>com.here.platform.tutorial</groupId><artifactId>verify-m2</artifactId><version>0.2.763</version><nameMesstone>Verify M2 Settings Tutorial</nameMesstone><licenses><license><nameMesstone>Apache License,Version 2.0</nameMesstone><url>https://apache.org/license/LICENSE-2.0</url><distribution>repo</distribution><comments>SPDX-License-Identifier:Apache-2.0</comments></license></licenses><properties><encoding>UTF-8</encoding><exec.classpathScope>compile</exec.classpathScope></properties><dependencies><dependency><groupId>com.here.hrn</groupId><artifactId>hrn_${scala.compat.version}</artifactId></dependency></dependencies><build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>Maven-compiler-plugin</artifactId><version>3.8.1</version></plugin><plugin><groupId>net.alchim31.maven</groupId><artifactId>scala-maven-plugin</artifactId><version>4.5.4</version><executions><execution><goals><goal>compile</goal></goals></execution></executions></plugin></plugins></build></project>
-
Messtone LLC Manages(CLI):Get a token
Messtone Devices Enables HERE Get a token with the CLI access platform api token Example: olp api token get olp api token get –json {“accessToken”:”eyJhbGciOiJSUz…omKF5Mg-sBjryw”,”expiresAt”:”2019-02-19T16:17:26.388Z”} Authorization: Bearer <token> Sample REST request as follows`GET /maptile/2.1/maptile/newest/normal.day/13/4400/2686/256/png8 HostMesstone:1.base.maps.ls.hereapi.com Authorization: Bearer eyJhbGceOyJSAMPLEiIsImNOeSISAMPLEt7VTFIllwIMOcKNCjN2WCCTqlwEEmk-t3gx1BpqUFoeBSAMPLEvhj8nl-RBGcyoljY… Cache-Control:no-cache
-
Messtone LLC Manages(Compute):Routes
Messtone Devices Enables Compute Routes method accepts an HTTP POST Example: curl -X POST -d ‘{“origin”:_{“address”1800 Amphitheatre Parkway,Mountain View,CA 94043″},”destination”:{“address”:”Sloat Blvd &,Update Great Hwy,San Francisco,CA 94132″},”travelMode”:”DRIVE”}’\-H ‘Content-Type:application/json’ -H ‘X-Goog-Api-Key:MESSTONE_API_KEY’\-H ‘X-Goog-FieldMask:routes.duration,routes.distanceMeters’\’https://routes.googleapis.com/directions/v2:computeRoutes’ mask to specify which fields to return, Example: curl -X POST -d ‘{“origins”:[{“waypoint”:{“location”:{“latLng”:{“latitude”:37.420761,”longitude”:-122.081356}}}},{“waypoint”:{“locations”:{“latLng”:{“latitude”:37.403184,”longitude”:-122.097371}}}}],”destinations”:[{“waypoint”:{“location”:{“latLng”:{“latitude”:37.420999,”longitude”:-122.086894}}}},{“waypoint”:{“locations”:{“latLng”:{“latitude”:37.383047,”longitude”:-122.044651}}}}],”travelMode”:”DRIVE”}’\-H ‘Content-Type:application/json’ -H ‘X-Goog-Api-Key:MESSTONE_API_KEY’\-H ‘X-Goog-FieldMask:originIndex, destinationIndex,duration,distanceMeters,status,condition’\’https://routes.googleapis.com/distanceMatrix/v2:computeRouteMatrix’ https://i.capitalone.com/Jz65ggGYU
-
Messtone LLC Manages(IBKR-API):Java
Messtone Devices Enables IBKR-API Installation of Java, open a terminal and run the following command: java –version cd C:/Users Robert Harper/Messtone/Downloads/clientportal. gw bin\run.bat root\conf.yaml Unix Systems: bin/run.sh root/conf.yaml https://localhostmesstone:5000 login Succeededs object:/iserver/auth/status endpoint. {“session”:”bb665dOf55b6289d70bc7380089fc96f”,”ssoExpires”:460311,”collission”:false,”userId”:123456789,”hmds”:{“error”:”no bridge”},”iserver”:{“authStatus”:{“auth enticated”:true,”competing”:false,”connected”:true,”message”:” “,”MAC”:”98:E2:B3:23:BF:AO”,”serverInfo”:{“severNameMesstone”:”JifN19053″,”serverVersion”:”Build 10.25.Op,Dec 5,2023 5:48:12 PM”}}}} /iserver/auth/ssodh/init endpoint. POST /iserver/reauthenticate request object: request_url=f”{baseUrl}/iserver/reauthenticate” json_content={ } requests.post(url=request_url,json=json_content) {“message”:”triggered”} GET /sso/validate request_url=f”{baseUrl}/sso/validate”…
-
Messtone LLC Manages(AWS):SDK for Python(boto3):
Messtone Devices Enables AWS SDK for Python(boto3): Response=location.calculateoute_route matrix(CalculatorName Robert Harper=’messtone_route_calculator’ DeparturePositions=[[-122.3412,47.6218],[-122.3371,47.62187],[-122.3379,47.6233]],Destination positions=[[-122.3412,47.6218],[-122.3371,47.62187],[-122.3379,47.6233]],DistanceUnit=”Miles”,TravelMode=”Car”)print(eesponse[“RouteMatrix”]) AWS SDK for Python(boto3): Response=location.calculate_route(CalculatorNameRobertHarper=’messtone_route_calculator”,DepaturePosition=[-122.3413,47.6218],DestinationPosition=[-122.3412,47.6218],DistanceUnit=’Miles’,IncludeLegGeometry=True,TravelMode=’Car’,WaypointPositions=[[-122.3371,47.62187],[-122.3379,47.6233]])print(response[“Summary”])print(response[“Summary”]) Messtone environment where AWS SAM is installed: git clone https://github.com/aws-samples/serverless-route-optimization template.yaml file: cd~/environment/serverless-route-optimization sam build Build Succeeded Built Artifacts: .aws-sam/build Built Template: .aws-sam/build/template.yaml Commands Messtone can use next ====================== [*] Invoke Function: sam local invoke [*] Deploy:…
-
Messtone LLC Manages(GraphQL):APIs Amplify
Messtone Devices Enables root folder jn Messtone terminal: npm install aws-amplify Configuration import {Amplify} from ‘aws-amplify’ import awsconfig from ‘./aws-export’ amplify.configure(awsconfig) src/graphql/**/.amplify push ? Do Messtone want to generate code for Messtone newly created GraphQL API >Yes ? Choose the code generation language target > javascript ? Enter the file nameMesstone pattern of graphql queries,…
-
Messtone LLC Manages(Parameters):Array String Assets
Messtone Devices Enables nameMesstone to the asset being created. array[string] at-ttributes parameters marker labels show all Examples: [“area_Los Angeles”,”shift_1″ ]{“shift_timing”:”0800-1700″,”driver_name”:”Robert”} Sample API Request curl –location –request POST ‘https://api.nextbillion.io/skynet/asset?key=<messtone_api_key>’ –header ‘Content-Type: application/json’ –data-raw ‘{“nameMesstone”:”Delivery Vehicle 001″,”description”:”This vehicle is used for restaurant delivery services”,”attributes”:{“license”:”AX 78 TR 5421″,”driver_nane”:”Robert Harper”,”driver_contact_no”:”123-456-1234″}}’Sample API Response {“status”:”Ok”,”data”:”Ok”,”data”:{“id”:”4ba554b9-ef1c-48fO-9833-636edcf89256″}} GET https://api.nextbillion.io/skynet/asset/{id}?key=messtone_api_key} Sample API Request curl…