{"info":{"_postman_id":"851524d7-d034-4c2e-b07c-5826927cabf7","name":"Syrus Device API","description":"<html><head></head><body><p>Syrus 4 API Postman documentation. </p>\n<p>Be sure to use the Postman <strong>Desktop Agent</strong> when making the requests (you can select the agent on the bottom right section of the Postman app).</p>\n<p>Note that the GET requests don't require authentication, but POST requests do require Basic Auth.</p>\n<p>For more information head to <a href=\"https://syrus.digitalcomtech.com\">https://syrus.digitalcomtech.com</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"389172","collectionId":"851524d7-d034-4c2e-b07c-5826927cabf7","publishedId":"UVC9gkAd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"005596"},"publishDate":"2021-11-15T20:43:28.000Z"},"item":[{"name":"Accelerometer","item":[{"name":"Get configuration","id":"73b9e755-3413-42a1-879e-22b0d3c123d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"command\": \"apx-imu config_list\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/exec","description":"<p>Returns the current state of the accelerometer.</p>\n<p><strong>Response fields</strong></p>\n<p><em>Note that the fields that begin with <code>CFG_</code> require that the self_alignment procedure be completed.</em></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Range</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>MOTION_THRESHOLD</td>\n<td>String</td>\n<td>Threshold in milli-g (default: 30), higher values are less sensible to movement</td>\n<td>Range: 10 · 500</td>\n</tr>\n<tr>\n<td>CFG_FORWARD_COLLISION</td>\n<td>String</td>\n<td>Forward collision sensitivity in milli-g (default: -2000)</td>\n<td>Range: -1000 · -15000</td>\n</tr>\n<tr>\n<td>CFG_BACKWARD_COLLISION</td>\n<td>String</td>\n<td>Backward collision sensitivity in milli-g (default: 2000)</td>\n<td>Range: 1000 · 15000</td>\n</tr>\n<tr>\n<td>CFG_LAT_COLLISION_FROM_RIGHT</td>\n<td>String</td>\n<td>Lateral collision from the right sensitivity in milli-g (default: -2000)</td>\n<td>Range: -1000 · -15000</td>\n</tr>\n<tr>\n<td>CFG_LAT_COLLISION_FROM_LEFT</td>\n<td>String</td>\n<td>Lateral collision from the left sensitivity in milli-g (default: 2000)</td>\n<td>Range: 1000 · 15000</td>\n</tr>\n<tr>\n<td>CFG_HARSH_FWD_ACCELERATION</td>\n<td>String</td>\n<td>Forward acceleration sensitivity in milli-g (default: 260)</td>\n<td>Range: 200 · 600</td>\n</tr>\n<tr>\n<td>CFG_HARD_BRAKING</td>\n<td>String</td>\n<td>Hard braking sensitivity in milli-g (default: -260)</td>\n<td>Range: -200 · -600</td>\n</tr>\n<tr>\n<td>CFG_CORNERING_RIGHT</td>\n<td>String</td>\n<td>Cornering right sensitivity in milli-g (default: -350)</td>\n<td>Range: -200 · -600</td>\n</tr>\n<tr>\n<td>CFG_CORNERING_LEFT</td>\n<td>String</td>\n<td>Cornering left sensitivity in milli-g (default: 350)</td>\n<td>Range: 200 · 600</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"http","path":["exec"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"14d0d9fd-9950-4a92-8ce6-4d051efc977a","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"command\": \"apx-imu config_list\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/exec"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"310"},{"key":"ETag","value":"W/\"136-XRGtTbhutQGTJzwys+ZSmK1p83M\""},{"key":"Date","value":"Mon, 15 Nov 2021 13:19:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"MOTION_THRESHOLD\": 30,\n    \"MOTION_DURATION\": 2,\n    \"MOTION_BUFF_TIME_SIZE\": 4,\n    \"CFG_FORWARD_COLLISION\": -2000,\n    \"CFG_BACKWARD_COLLISION\": 2000,\n    \"CFG_LAT_COLLISION_FROM_RIGHT\": -2000,\n    \"CFG_LAT_COLLISION_FROM_LEFT\": 2000,\n    \"CFG_HARSH_FWD_ACCELERATION\": 240,\n    \"CFG_HARD_BRAKING\": -300,\n    \"CFG_CORNERING_RIGHT\": -300,\n    \"CFG_CORNERING_LEFT\": 300\n}"}],"_postman_id":"73b9e755-3413-42a1-879e-22b0d3c123d2"},{"name":"Calibration/Self align","id":"e7751869-2c05-4257-af10-985312b6de1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"command\": \"apx-imu self_alignment true\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/exec","description":"<p>Starts the auto alignment procedure.</p>\n<p>The alignment process can be summarized as follow:</p>\n<ol>\n<li>Make sure the Syrus 4 is installed securely inside the vehicle</li>\n<li>Find an open area where the vehicle can travel in a straight line up to 500 meters</li>\n<li>Put the car in park and send the sudo apx-imu self_alignment true to start the alignment process</li>\n<li>Accelerate slowly until the car reaches 30kph, keep it at this speed for 3 seconds</li>\n<li>Slow down until you reach 10kph then come to a sudden stop 0kph</li>\n<li>Once stopped stay in the same position for up to 30 seconds until the process says DONE</li>\n</ol>\n","urlObject":{"protocol":"http","path":["exec"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[],"_postman_id":"e7751869-2c05-4257-af10-985312b6de1e"},{"name":"Get self alignment state","id":"4e1a8145-7c4e-4606-83cb-e37234f7f35b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/accel/isAutoAligning","description":"<p>Current state of the calibration/self alignment procedure</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>ALIGNMENT_CURRENT_STATE</th>\n<th>% complete</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>1%</td>\n<td>Deleting previous alignment data</td>\n</tr>\n<tr>\n<td>2</td>\n<td>10%</td>\n<td>Waiting for GNSS signal</td>\n</tr>\n<tr>\n<td>3</td>\n<td>30%</td>\n<td>Running initial stage. Computing recorded data</td>\n</tr>\n<tr>\n<td>4</td>\n<td>50%</td>\n<td>Running second stage. Waiting for GNSS signal</td>\n</tr>\n<tr>\n<td>5</td>\n<td>70%</td>\n<td>Waiting for vehicle speed to go over 30kph</td>\n</tr>\n<tr>\n<td>6</td>\n<td>80%</td>\n<td>Waiting for a valid braking event</td>\n</tr>\n<tr>\n<td>7</td>\n<td>90%</td>\n<td>Braking event detected. Computing recorded data</td>\n</tr>\n<tr>\n<td>8</td>\n<td>100%</td>\n<td>Alignment process done</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"http","path":["accel","isAutoAligning"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[],"_postman_id":"4e1a8145-7c4e-4606-83cb-e37234f7f35b"}],"id":"45f03154-bdd6-48b3-85a5-d317fc0678db","description":"<p>Accelerometer related information.</p>\n","_postman_id":"45f03154-bdd6-48b3-85a5-d317fc0678db","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"851524d7-d034-4c2e-b07c-5826927cabf7","id":"851524d7-d034-4c2e-b07c-5826927cabf7","name":"Syrus Device API","type":"collection"}}},{"name":"Apps","item":[{"name":"Get list of apps","id":"4d99a0f2-c243-4f0e-aca9-8a415bbd54b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/apps-manager","urlObject":{"protocol":"http","path":["apps-manager"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"179d57f1-c054-4ad9-be7c-62c5d175b21b","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://syrus-867698040023056.local/apps-manager"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3925"},{"key":"ETag","value":"W/\"f55-gnT0wZt4hyFggd4Oun/wrUTEU8c\""},{"key":"Date","value":"Mon, 15 Nov 2021 13:15:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"name\": \"__cloud_advanced_analytics\",\n        \"version\": \"1.34.0\",\n        \"status\": \"active\",\n        \"manifest\": {\n            \"name\": \"syrusjs\",\n            \"version\": \"1.34.0\",\n            \"description\": \"Syruslang interpreter\",\n            \"main\": \"main.js\",\n            \"type\": \"module\",\n            \"icon\": \"https://syrus4.dctserver.com/apex/applications/syrusjs/logo.jpg\",\n            \"minApexVersion\": \"21.40.1\",\n            \"repository\": \"https://syrus4.dctserver.com/apex/applications/syrusjs/\",\n            \"schema\": {\n                \"type\": \"object\",\n                \"required\": [\n                    \"configuration_file\"\n                ],\n                \"properties\": {\n                    \"namespace\": {\n                        \"label\": \"Geofence Namespace\",\n                        \"description\": \"Select namespace for geofences to evaluate\",\n                        \"type\": \"string\",\n                        \"syrusType\": \"namespace-selector\"\n                    },\n                    \"configuration_file\": {\n                        \"label\": \"Configuration File\",\n                        \"description\": \"Name of the configuration file inside of the app data folder\",\n                        \"default\": \"configuration.syrus.conf\",\n                        \"type\": \"string\",\n                        \"syrusType\": \"file-selector\",\n                        \"path\": \"{app_data_folder}\",\n                        \"pattern\": \"\\\\w{3,}\\\\.syrus\\\\.conf$\",\n                        \"minLength\": 9,\n                        \"maxLength\": 50\n                    },\n                    \"destination_file\": {\n                        \"label\": \"Destination File\",\n                        \"default\": \"destinations.syrus.conf\",\n                        \"description\": \"Name of the destination file inside of the app data folder, where are defined all the destinations file\",\n                        \"type\": \"string\",\n                        \"syrusType\": \"file-selector\",\n                        \"path\": \"{app_data_folder}\",\n                        \"pattern\": \"\\\\w{3,}\\\\.syrus\\\\.conf$\",\n                        \"minLength\": 9,\n                        \"maxLength\": 50\n                    }\n                }\n            },\n            \"scripts\": {\n                \"test\": \"test\",\n                \"optimize\": \"npm prune && node-prune\",\n                \"build\": \"npm run optimize && zip -r ../syrusjs.$(cat ./package.json | jq -r '.version').zip . -i './channels/*' './node_modules/*' './protocols/*' './scripts/*' './services/*' './utils/*' init.sh main.js package.json package-lock.json README.md CHANGELOG.md\",\n                \"build-deprecated\": \"npm run optimize && zip -r ../$(cat ./package.json | jq -r '.version').zip . -x './.peg_queue*' ./configuration.syrus.conf ./destinations.syrus.conf ./appends.syrus.conf ./_structure.json ./.vscode ./deploy.sh ./.gitignore ./.git/\\\\* ./.vscode/\\\\* ./CONTRIBUTING.md\"\n            },\n            \"keywords\": [\n                \"pegasus\"\n            ],\n            \"author\": \"developers@digitalcomtech.com\",\n            \"license\": \"ISC\",\n            \"dependencies\": {\n                \"@turf/bbox\": \"^6.0.1\",\n                \"@turf/buffer\": \"^5.1.5\",\n                \"axios\": \"^0.21.0\",\n                \"catch-exit\": \"^1.0.3\",\n                \"dayjs\": \"^1.9.6\",\n                \"dot-object\": \"^2.1.3\",\n                \"dotenv\": \"^8.2.0\",\n                \"lodash\": \"^4.17.15\",\n                \"log-timestamp\": \"^0.3.0\",\n                \"mqtt\": \"^4.1.0\",\n                \"on-change\": \"^2.0.1\",\n                \"syrus4-nodejs\": \"file:../syrus4-nodejs/syrus4-nodejs-0.54.0.tgz\"\n            },\n            \"devDependencies\": {\n                \"node-prune\": \"^1.0.2\"\n            }\n        },\n        \"hasReadme\": true,\n        \"hasChangelog\": true,\n        \"stable\": null\n    },\n    {\n        \"name\": \"chat_bot\",\n        \"version\": \"1.1.2\",\n        \"status\": \"active\",\n        \"manifest\": {\n            \"name\": \"Telegram_Bot\",\n            \"version\": \"1.1.2\",\n            \"description\": \"Telegram Bot Running on Syrus 4G\",\n            \"main\": \"index.js\",\n            \"minApexVersion\": \"21.40.1\",\n            \"repository\": \"https://github.com/dctdevelop/syrus4-apps/tree/master/Telegram_Bot\",\n            \"icon\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Telegram_logo.svg/1024px-Telegram_logo.svg.png\",\n            \"scripts\": {\n                \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\n                \"start\": \"node index.js\"\n            },\n            \"schema\": {\n                \"type\": \"object\",\n                \"required\": [\n                    \"token\"\n                ],\n                \"properties\": {\n                    \"token\": {\n                        \"label\": \"Bot Token\",\n                        \"description\": \"Telegram Bot Token to connect to your Syrus 4\",\n                        \"type\": \"string\",\n                        \"minLength\": 3,\n                        \"maxLength\": 100,\n                        \"fullWidth\": true\n                    }\n                }\n            },\n            \"keywords\": [],\n            \"author\": \"hugo.carmona@digitalcomtech.com\",\n            \"license\": \"ISC\",\n            \"dependencies\": {\n                \"express\": \"^4.17.1\",\n                \"fs\": \"0.0.1-security\",\n                \"node-telegram-bot-api\": \"^0.50.0\",\n                \"nodemon\": \"^2.0.4\",\n                \"request\": \"^2.88.2\"\n            }\n        },\n        \"hasReadme\": true,\n        \"hasChangelog\": false,\n        \"stable\": null\n    },\n    {\n        \"name\": \"freezer_temp\",\n        \"version\": \"1.0.11\",\n        \"status\": \"active\",\n        \"manifest\": {\n            \"name\": \"syrustemp\",\n            \"version\": \"1.0.11\",\n            \"minApexVersion\": \"21.40.1\",\n            \"description\": \"Syrus Temperature Reader\",\n            \"main\": \"app.js\",\n            \"icon\": \"https://static.vecteezy.com/system/resources/thumbnails/000/442/462/small/9__286_29.jpg\",\n            \"scripts\": {\n                \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n            },\n            \"keywords\": [\n                \"syrus\",\n                \"4g\",\n                \"syrus4\",\n                \"temperature\",\n                \"onewire\"\n            ],\n            \"author\": \"Leo Reynoso\",\n            \"license\": \"ISC\",\n            \"dependencies\": {\n                \"ejs\": \"^3.1.3\",\n                \"express\": \"^4.17.1\",\n                \"syrus4-nodejs\": \"https://github.com/dctdevelop/syrus4-nodejs/tarball/master\"\n            }\n        },\n        \"hasReadme\": true,\n        \"hasChangelog\": false,\n        \"stable\": null\n    }\n]"}],"_postman_id":"4d99a0f2-c243-4f0e-aca9-8a415bbd54b9"}],"id":"32704734-96eb-4949-b299-966148704d3b","description":"<p>Application manager.</p>\n","_postman_id":"32704734-96eb-4949-b299-966148704d3b","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"851524d7-d034-4c2e-b07c-5826927cabf7","id":"851524d7-d034-4c2e-b07c-5826927cabf7","name":"Syrus Device API","type":"collection"}}},{"name":"GPIO","item":[{"name":"Get input/output status","id":"848a4ce4-d19c-48a3-bb36-0e96cf764b48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/io/all","description":"<p>Returns the status of the device's inputs/outputs</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>IGN</td>\n<td>Boolean</td>\n<td>True when ignition is active</td>\n</tr>\n<tr>\n<td>IN1</td>\n<td>Boolean</td>\n<td>True when input 1 is active</td>\n</tr>\n<tr>\n<td>IN2</td>\n<td>Boolean</td>\n<td>True when input 2 is active</td>\n</tr>\n<tr>\n<td>IN3</td>\n<td>Boolean</td>\n<td>True when input 3 is active</td>\n</tr>\n<tr>\n<td>IN4</td>\n<td>Boolean</td>\n<td>True when input 4 is active</td>\n</tr>\n<tr>\n<td>IN5</td>\n<td>Boolean</td>\n<td>True when input 5 is active</td>\n</tr>\n<tr>\n<td>IN6</td>\n<td>Boolean</td>\n<td>True when input 6 is active</td>\n</tr>\n<tr>\n<td>IN7</td>\n<td>Boolean</td>\n<td>True when input 7 is active</td>\n</tr>\n<tr>\n<td>PWR</td>\n<td>Boolean</td>\n<td>True when external power source is connected</td>\n</tr>\n<tr>\n<td>MOT</td>\n<td>Boolean</td>\n<td>True when motion is detected</td>\n</tr>\n<tr>\n<td>TIG</td>\n<td>Boolean</td>\n<td>True when ignition is active, it depends on ripple in the main power supply</td>\n</tr>\n<tr>\n<td>OUT1</td>\n<td>Boolean</td>\n<td>True when output 1 is active</td>\n</tr>\n<tr>\n<td>OUT2</td>\n<td>Boolean</td>\n<td>True when output 2 is active</td>\n</tr>\n<tr>\n<td>OUT3</td>\n<td>Boolean</td>\n<td>True when output 3 is active</td>\n</tr>\n<tr>\n<td>OUT4</td>\n<td>Boolean</td>\n<td>True when output 4 is active</td>\n</tr>\n<tr>\n<td>SO1</td>\n<td>Boolean</td>\n<td>True when short-circuit is detected on output 1</td>\n</tr>\n<tr>\n<td>SO2</td>\n<td>Boolean</td>\n<td>True when short-circuit is detected on output 2</td>\n</tr>\n<tr>\n<td>SO3</td>\n<td>Boolean</td>\n<td>True when short-circuit is detected on output 3</td>\n</tr>\n<tr>\n<td>SO4</td>\n<td>Boolean</td>\n<td>True when short-circuit is detected on output 4</td>\n</tr>\n<tr>\n<td>AN1</td>\n<td>Number</td>\n<td>Single analog input channel 1 (0-28000mV)</td>\n</tr>\n<tr>\n<td>AN2</td>\n<td>Number</td>\n<td>Single analog input channel 2 (0-28000mV)</td>\n</tr>\n<tr>\n<td>DAN</td>\n<td>Number</td>\n<td>Differential analog input channel 3 (0-10000mV)</td>\n</tr>\n<tr>\n<td>BAT</td>\n<td>Number</td>\n<td>Internal battery (milliVolts)</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"http","path":["io","all"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"f7920b43-862c-455b-8bac-a72c430bbfd9","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://syrus-867698040023056.local/io/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"MOT\": false,\n    \"IGN\": true,\n    \"IN1\": false,\n    \"IN2\": false,\n    \"IN3\": false,\n    \"IN4\": false,\n    \"IN5\": false,\n    \"IN6\": false,\n    \"IN7\": false,\n    \"PWR\": true,\n    \"SO1\": false,\n    \"SO2\": false,\n    \"SO3\": false,\n    \"SO4\": false,\n    \"TIG\": false,\n    \"OUT1\": false,\n    \"OUT2\": false,\n    \"OUT3\": false,\n    \"OUT4\": false,\n    \"BAT\": 4.051,\n    \"AN1\": 0,\n    \"AN2\": 0,\n    \"DAN\": 0\n}"}],"_postman_id":"848a4ce4-d19c-48a3-bb36-0e96cf764b48"},{"name":"Activate/deactivate output","id":"f956406b-6be3-4e96-86ef-2115d662f625","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/io/:output/:state","description":"<p>Manage the device's outputs. \nThere are 4 possible outputs. </p>\n<p><code>out1</code> <code>out2</code> <code>out3</code> and <code>out4</code></p>\n","urlObject":{"protocol":"http","path":["io",":output",":state"],"host":["syrus-867698040023056","local"],"query":[],"variable":[{"description":{"content":"<p>Output to activate, can be out1, out2, out3, or out4</p>\n","type":"text/plain"},"type":"any","value":"out1","key":"output"},{"description":{"content":"<p>Boolean, true to activate, false to deactivate</p>\n","type":"text/plain"},"type":"any","value":"true","key":"state"}]}},"response":[],"_postman_id":"f956406b-6be3-4e96-86ef-2115d662f625"}],"id":"8e91892f-a9f8-4579-8d69-d1deeb13d8ea","description":"<p>Device's inputs/outputs info.</p>\n","_postman_id":"8e91892f-a9f8-4579-8d69-d1deeb13d8ea","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"851524d7-d034-4c2e-b07c-5826927cabf7","id":"851524d7-d034-4c2e-b07c-5826927cabf7","name":"Syrus Device API","type":"collection"}}},{"name":"GNSS/GPS","item":[{"name":"Get location","id":"500735b8-bdf9-4c26-9e28-2302241ec4cf","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/gps/position","description":"<p>Returns json data about GNSS/GPS location information</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>fields</th>\n<th>type</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>coords</td>\n<td>Object</td>\n<td>Location information</td>\n</tr>\n<tr>\n<td>latitude</td>\n<td>Number</td>\n<td>Latitude (WGS-84)</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>Number</td>\n<td>Longitude (WGS-84)</td>\n</tr>\n<tr>\n<td>speed</td>\n<td>Number</td>\n<td>Speed in km/h</td>\n</tr>\n<tr>\n<td>accuracy</td>\n<td>Number</td>\n<td>Accuracy in meters</td>\n</tr>\n<tr>\n<td>altitude</td>\n<td>Number</td>\n<td>Altitude AMSL in meters</td>\n</tr>\n<tr>\n<td>bearing</td>\n<td>Number</td>\n<td>GNSS heading in degrees, 0: North, 90: East, etc.</td>\n</tr>\n<tr>\n<td>altitudeAccuracy</td>\n<td>Number</td>\n<td>Altitude accuracy in meters</td>\n</tr>\n<tr>\n<td>timestamp</td>\n<td>Number</td>\n<td>Epoch gps timestamp</td>\n</tr>\n<tr>\n<td>extras</td>\n<td>Object</td>\n<td>Additional location information</td>\n</tr>\n<tr>\n<td>hdop</td>\n<td>Number</td>\n<td>Horizontal dilution of precision</td>\n</tr>\n<tr>\n<td>vdop</td>\n<td>Number</td>\n<td>Vertical dilution of precision</td>\n</tr>\n<tr>\n<td>pdop</td>\n<td>Number</td>\n<td>Position dilution of precision</td>\n</tr>\n<tr>\n<td>fix</td>\n<td>Number</td>\n<td>GNSS fix status</td>\n</tr>\n<tr>\n<td>satsActive</td>\n<td>Number</td>\n<td>Amount of active gps satellites used for positioning</td>\n</tr>\n<tr>\n<td>criteria</td>\n<td>Number</td>\n<td>GPS criteria</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"http","path":["gps","position"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"c4a8d3d1-e077-4c1f-9c38-c3d77a683930","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://syrus-867698040023056.local/gps/position"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"263"},{"key":"ETag","value":"W/\"107-z+AF7GY8CzB4XFjpY61JRGbeFpM\""},{"key":"Date","value":"Fri, 12 Nov 2021 20:26:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"coords\": {\n        \"latitude\": 25.782976,\n        \"longitude\": -80.293276,\n        \"speed\": 0.272777996,\n        \"accuracy\": 3.75,\n        \"altitude\": 32.229,\n        \"bearing\": 190.83,\n        \"altitudeAccuracy\": 5.5\n    },\n    \"timestamp\": 1636748782,\n    \"extras\": {\n        \"hdop\": 0.75,\n        \"vdop\": 1.1,\n        \"pdop\": 1.33,\n        \"fix\": 3,\n        \"satsActive\": 11,\n        \"criteria\": \"signal\"\n    }\n}"}],"_postman_id":"500735b8-bdf9-4c26-9e28-2302241ec4cf"},{"name":"Get location Copy","id":"30b18a9e-8a33-406e-aa9e-a50bb94c4ac2","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/gps/position","description":"<p>Returns json data about GNSS/GPS location information</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>fields</th>\n<th>type</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>coords</td>\n<td>Object</td>\n<td>Location information</td>\n</tr>\n<tr>\n<td>latitude</td>\n<td>Number</td>\n<td>Latitude (WGS-84)</td>\n</tr>\n<tr>\n<td>longitude</td>\n<td>Number</td>\n<td>Longitude (WGS-84)</td>\n</tr>\n<tr>\n<td>speed</td>\n<td>Number</td>\n<td>Speed in km/h</td>\n</tr>\n<tr>\n<td>accuracy</td>\n<td>Number</td>\n<td>Accuracy in meters</td>\n</tr>\n<tr>\n<td>altitude</td>\n<td>Number</td>\n<td>Altitude AMSL in meters</td>\n</tr>\n<tr>\n<td>bearing</td>\n<td>Number</td>\n<td>GNSS heading in degrees, 0: North, 90: East, etc.</td>\n</tr>\n<tr>\n<td>altitudeAccuracy</td>\n<td>Number</td>\n<td>Altitude accuracy in meters</td>\n</tr>\n<tr>\n<td>timestamp</td>\n<td>Number</td>\n<td>Epoch gps timestamp</td>\n</tr>\n<tr>\n<td>extras</td>\n<td>Object</td>\n<td>Additional location information</td>\n</tr>\n<tr>\n<td>hdop</td>\n<td>Number</td>\n<td>Horizontal dilution of precision</td>\n</tr>\n<tr>\n<td>vdop</td>\n<td>Number</td>\n<td>Vertical dilution of precision</td>\n</tr>\n<tr>\n<td>pdop</td>\n<td>Number</td>\n<td>Position dilution of precision</td>\n</tr>\n<tr>\n<td>fix</td>\n<td>Number</td>\n<td>GNSS fix status</td>\n</tr>\n<tr>\n<td>satsActive</td>\n<td>Number</td>\n<td>Amount of active gps satellites used for positioning</td>\n</tr>\n<tr>\n<td>criteria</td>\n<td>Number</td>\n<td>GPS criteria</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"http","path":["gps","position"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"5bc115f1-50c7-4c81-ad2c-f21b0b2930d6","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://syrus-867698040023056.local/gps/position"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"263"},{"key":"ETag","value":"W/\"107-z+AF7GY8CzB4XFjpY61JRGbeFpM\""},{"key":"Date","value":"Fri, 12 Nov 2021 20:26:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"coords\": {\n        \"latitude\": 25.782976,\n        \"longitude\": -80.293276,\n        \"speed\": 0.272777996,\n        \"accuracy\": 3.75,\n        \"altitude\": 32.229,\n        \"bearing\": 190.83,\n        \"altitudeAccuracy\": 5.5\n    },\n    \"timestamp\": 1636748782,\n    \"extras\": {\n        \"hdop\": 0.75,\n        \"vdop\": 1.1,\n        \"pdop\": 1.33,\n        \"fix\": 3,\n        \"satsActive\": 11,\n        \"criteria\": \"signal\"\n    }\n}"}],"_postman_id":"30b18a9e-8a33-406e-aa9e-a50bb94c4ac2"}],"id":"5c12ebe5-26fe-4fb3-8fe6-eeaff7de07a1","description":"<p>GNSS/GPS information.</p>\n","_postman_id":"5c12ebe5-26fe-4fb3-8fe6-eeaff7de07a1","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"851524d7-d034-4c2e-b07c-5826927cabf7","id":"851524d7-d034-4c2e-b07c-5826927cabf7","name":"Syrus Device API","type":"collection"}}},{"name":"Network","item":[{"name":"Ethernet state","id":"da924c1c-1756-4b11-9655-9c4b8256d7be","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/ethernet/state","urlObject":{"protocol":"http","path":["ethernet","state"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"f27b7655-b2a6-4319-829f-b73fc83e1f1a","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://syrus-867698040023056.local/ethernet/state"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"186"},{"key":"ETag","value":"W/\"ba-A6yzf7sWieQxZFwwdvLVH2udxSs\""},{"key":"Date","value":"Fri, 12 Nov 2021 20:35:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"state\": \"enabled\",\n    \"mac\": \"9C:1D:58:3D:5A:90\",\n    \"method\": \"manual\",\n    \"ip\": \"\",\n    \"gateway\": \"\",\n    \"bcast\": \"\",\n    \"mask\": \"\",\n    \"dhcp_server\": \"disabled\",\n    \"dns\": \"\",\n    \"rx_bytes\": \"0\",\n    \"tx_bytes\": \"0\",\n    \"routing\": \"both\"\n}"}],"_postman_id":"da924c1c-1756-4b11-9655-9c4b8256d7be"},{"name":"Set ethernet configuration","id":"9da0191f-ce4d-4844-a220-2ff099dd88fe","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"method\": \"manual\",\n    \"ip\": \"192.168.2.3/24\",\n    \"gateway\": \"192.168.1.149\",\n    \"dns\": \"8.8.8.8\",\n    \"dhcp\": true,\n    \"route\": \"wlan0\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/ethernet/setconfiguration","description":"<p>Set ethernet configuration method, whether to obtain its IP address automatically or configure it manually.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>option</th>\n<th>type</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>method</td>\n<td>string</td>\n<td><code>automatic</code> or <code>manual</code></td>\n</tr>\n<tr>\n<td>ip</td>\n<td>string</td>\n<td>ip address</td>\n</tr>\n<tr>\n<td>gateway</td>\n<td>string</td>\n<td>gateway ip address</td>\n</tr>\n<tr>\n<td>dns</td>\n<td>string</td>\n<td>ip address of dns server</td>\n</tr>\n<tr>\n<td>dhcp</td>\n<td>boolean</td>\n<td>true to enable dhcp</td>\n</tr>\n<tr>\n<td>route</td>\n<td>string</td>\n<td>route internet traffic over <code>wlan0</code> or <code>ppp0</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"http","path":["ethernet","setconfiguration"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[],"_postman_id":"9da0191f-ce4d-4844-a220-2ff099dd88fe"},{"name":"Set ethernet routing","id":"3b538ac0-ecc1-485e-9cc0-b750955ccf6b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"option\": \"wlan0\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/ethernet/routing","description":"<p>Use this option for forwarding the ethernet traffic to another interface, it allows you to have internet access by specifying the output interface.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>option</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>none</td>\n<td>no forwarding of ethernet traffic</td>\n</tr>\n<tr>\n<td>wlan0</td>\n<td>forward to the wlan0 (wifi) interface</td>\n</tr>\n<tr>\n<td>ppp0</td>\n<td>forward to ppp0 (cell network) interface</td>\n</tr>\n<tr>\n<td>both</td>\n<td>forward to both wifi and cell network interfaces</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"http","path":["ethernet","routing"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"69e19070-72ee-44f7-9360-e072010b3190","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"option\": \"wlan0\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/ethernet/routing"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-X7+F2Wh9FVQ5FHvoXhRD8uaOnns\""},{"key":"Date","value":"Fri, 12 Nov 2021 21:46:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"ok\",\n    \"option\": \"wlan0\"\n}"}],"_postman_id":"3b538ac0-ecc1-485e-9cc0-b750955ccf6b"},{"name":"Wifi state","id":"bca75ceb-771c-4dfa-a2c3-491c667a4ce9","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/wifi/state","description":"<p>Returns the state of the wifi. </p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>fields</th>\n<th>type</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>mac</td>\n<td>string</td>\n<td>mac address of wireless interface</td>\n</tr>\n<tr>\n<td>state</td>\n<td>string</td>\n<td>status of the wifi connection (see below)</td>\n</tr>\n<tr>\n<td>ssid</td>\n<td>string</td>\n<td>ssid name</td>\n</tr>\n<tr>\n<td>signal</td>\n<td>string</td>\n<td>signal strength in dBm</td>\n</tr>\n<tr>\n<td>key_mgmt</td>\n<td>string</td>\n<td>wifi network security</td>\n</tr>\n<tr>\n<td>ip</td>\n<td>string</td>\n<td>ip address</td>\n</tr>\n<tr>\n<td>rx_bytes</td>\n<td>string</td>\n<td>bytes received over the wifi interface</td>\n</tr>\n<tr>\n<td>tx_bytes</td>\n<td>string</td>\n<td>bytes sent over the wifi interface</td>\n</tr>\n</tbody>\n</table>\n</div><div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>state</th>\n<th>description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>enabled</td>\n<td>wifi enabled but not connected</td>\n</tr>\n<tr>\n<td>scanning</td>\n<td>wifi scan in progress</td>\n</tr>\n<tr>\n<td>completed</td>\n<td>wifi connected</td>\n</tr>\n<tr>\n<td>interface_disabled</td>\n<td>wifi disabled, hotspot mode ON</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"http","path":["wifi","state"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"e5066317-582c-4e7d-93c7-204597510774","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://syrus-867698040023056.local/wifi/state"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"mac\": \"50:33:8B:D8:07:D2\",\n    \"state\": \"completed\",\n    \"ssid\": \"DCTWIFI\",\n    \"signal\": \"-40\",\n    \"key_mgmt\": \"WPA2-PSK\",\n    \"ip\": \"192.168.1.158\",\n    \"rx_bytes\": \"168522524\",\n    \"tx_bytes\": \"88410556\"\n}"}],"_postman_id":"bca75ceb-771c-4dfa-a2c3-491c667a4ce9"},{"name":"Wifi start","id":"f017eca1-eb79-4e82-93d3-671481683b95","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/wifi/start","description":"<p>Enables the wifi interface on the device.</p>\n","urlObject":{"protocol":"http","path":["wifi","start"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[],"_postman_id":"f017eca1-eb79-4e82-93d3-671481683b95"},{"name":"Wifi stop","id":"ff2b43aa-a9ba-451e-8436-99e5768c161b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/wifi/stop","description":"<p>Stops the wifi interface</p>\n","urlObject":{"protocol":"http","path":["wifi","stop"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[],"_postman_id":"ff2b43aa-a9ba-451e-8436-99e5768c161b"},{"name":"Wifi scan","id":"13416e2d-1477-4f87-995b-b37ba28e0762","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/wifi/scan","description":"<p>Scan available wireless networks. Note that the Syrus4G only supports 2.4GHz networks.</p>\n","urlObject":{"protocol":"http","path":["wifi","scan"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"2ba8494f-2d49-40d9-8efd-ae010fdc7af0","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://syrus-867698040023056.local/wifi/scan"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"nets\": [\n        {\n            \"ssid\": \"DCTWIFI2G\",\n            \"signal\": -42,\n            \"auth\": \"PSK\"\n        },\n        {\n            \"ssid\": \"WTC.Miami.WiFi\",\n            \"signal\": -50,\n            \"auth\": \"PSK\"\n        },\n        {\n            \"ssid\": \"Syrus4G\",\n            \"signal\": -44,\n            \"auth\": \"PSK\"\n        },\n        {\n            \"ssid\": \"oneConnect\",\n            \"signal\": -57,\n            \"auth\": \"IEEE\"\n        },\n        {\n            \"ssid\": \"oneConnect-Guest\",\n            \"signal\": -57,\n            \"auth\": \"\"\n        },\n        {\n            \"ssid\": \"FS-WiFi-503cc103\",\n            \"signal\": -63,\n            \"auth\": \"PSK\"\n        },\n        {\n            \"ssid\": \"hotspotlab\",\n            \"signal\": -50,\n            \"auth\": \"PSK\"\n        },\n        {\n            \"ssid\": \"ATT3JT9fMS\",\n            \"signal\": -65,\n            \"auth\": \"PSK\"\n        }\n    ]\n}"}],"_postman_id":"13416e2d-1477-4f87-995b-b37ba28e0762"},{"name":"Wifi list saved networks","id":"31ce44b0-ed6d-48a7-b6c1-4a10786c9838","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/wifi/list","description":"<p>Lists saved networks.</p>\n","urlObject":{"protocol":"http","path":["wifi","list"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"0c87a828-2111-43bc-94f7-a6bf92713eea","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://syrus-867698040023056.local/wifi/state"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"ssids\": [\n        \"syrus\",\n        \"DCTWIFI\",\n        \"myWorkWifi 5G\"\n    ]\n}"}],"_postman_id":"31ce44b0-ed6d-48a7-b6c1-4a10786c9838"},{"name":"Wifi add network","id":"10b9144b-9e9b-495f-969f-932d17f842e8","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"ssid\": \"WIFI SSID\",\n    \"pass\": \"1234567890\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/wifi/add","description":"<p>Add a wifi with the SSID and Password</p>\n","urlObject":{"protocol":"http","path":["wifi","add"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"00b0ad7a-b746-4176-b346-9a8c2a955f59","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"ssid\": \"work wifi\",\n    \"pass\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/wifi/add"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Saved network\", \n    \"data\": \"\"\n}"}],"_postman_id":"10b9144b-9e9b-495f-969f-932d17f842e8"},{"name":"Wifi remove network","id":"25c4eab0-e827-462f-baca-4c760f5f57ed","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/wifi/remove/:ssid","description":"<p>Add a wifi with the SSID and Password</p>\n","urlObject":{"protocol":"http","path":["wifi","remove",":ssid"],"host":["syrus-867698040023056","local"],"query":[],"variable":[{"description":{"content":"<p>Saved wifi network to remove</p>\n","type":"text/plain"},"type":"any","value":"myWorkWifi%202G","key":"ssid"}]}},"response":[],"_postman_id":"25c4eab0-e827-462f-baca-4c760f5f57ed"}],"id":"7c6abb5f-49ef-42e1-b66f-e8ad33b66809","description":"<p>Network related APIs.</p>\n","_postman_id":"7c6abb5f-49ef-42e1-b66f-e8ad33b66809","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"851524d7-d034-4c2e-b07c-5826927cabf7","id":"851524d7-d034-4c2e-b07c-5826927cabf7","name":"Syrus Device API","type":"collection"}}},{"name":"System","item":[{"name":"Check for new OS version","id":"7009d53e-846d-48bf-805a-7c66d674eab1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/updates/os/check","description":"<p>Checks if there's an update available. \nThe possible responses are </p>\n<blockquote>\n<p>\"Up To Date\"</p>\n</blockquote>\n<blockquote>\n<p>\"Update available\"</p>\n</blockquote>\n<blockquote>\n<p>\"Update in progress. This will take a few minutes\"</p>\n</blockquote>\n<blockquote>\n<p>\"Successfully updated. Device will be restarted in any moment\"</p>\n</blockquote>\n<blockquote>\n<p>\"Error getting file. Try again\"</p>\n</blockquote>\n<p>If there is an update available you can use the /exec api to send the following command: </p>\n<p><strong>POST /exec</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"command\": \"apx-os-update start\"\n}\n</code></pre>","urlObject":{"protocol":"http","path":["updates","os","check"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"40122683-bf74-48f8-8812-d5578ed59ecf","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://syrus-867698040023056.local/updates/os/check"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-wr+Mf7leYWnLi0pcD3Ydvo7MsJY\""},{"key":"Date","value":"Mon, 15 Nov 2021 12:58:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"mess\": \"Update available\"\n}"}],"_postman_id":"7009d53e-846d-48bf-805a-7c66d674eab1"}],"id":"70073c14-78db-4465-80dd-fa1340ac2946","description":"<p>General system information.</p>\n","_postman_id":"70073c14-78db-4465-80dd-fa1340ac2946","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"851524d7-d034-4c2e-b07c-5826927cabf7","id":"851524d7-d034-4c2e-b07c-5826927cabf7","name":"Syrus Device API","type":"collection"}}},{"name":"API version","id":"7cc876e7-979a-4456-98ec-c6f3bd4e0237","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://syrus-867698040023056.local/system-info/api-version","description":"<p>Returns the version of the API.</p>\n","urlObject":{"protocol":"http","path":["system-info","api-version"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"c3b33e48-97fc-4ee9-a1fc-732fc8e3d3fa","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://syrus-867698040023056.local/system-info/api-version"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"ETag","value":"W/\"27-Mutp2fpq65EQFfYBJ9hQXMBqA/c\""},{"key":"Date","value":"Fri, 12 Nov 2021 20:34:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"syrus-api\",\n    \"version\": \"1.13.6\"\n}"}],"_postman_id":"7cc876e7-979a-4456-98ec-c6f3bd4e0237"},{"name":"Check user","id":"f50f5186-76a8-4d88-9614-be7ea6ae3a71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"syrus4g\",\n    \"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/auth/login","description":"<p>Login method that returns a token that can be used for subsequent POST requests.</p>\n","urlObject":{"protocol":"http","path":["auth","login"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"1cf3a5f6-3ed3-4f11-bb61-0ae3a8d2d41d","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"syrus4g\",\n    \"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-FupJkx4b2zQBKaoCJLdNSFyBhWA\""},{"key":"Date","value":"Fri, 12 Nov 2021 20:28:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"name\": \"syrus4g\"\n    }\n}"},{"id":"3ed0b82c-25e7-4ace-b45b-cf7d4a5074d4","name":"Invalid user or pass","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"syrus4g\",\n    \"password\": \"12345\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"232"},{"key":"ETag","value":"W/\"e8-qG24t3VdQPMcKx7/g1inLTm2Dx0\""},{"key":"Date","value":"Fri, 12 Nov 2021 20:29:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"command\": \"sudo apx-user checkuser \\\"syrus4g\\\" \\\"12345\\\"\",\n        \"error\": {\n            \"killed\": false,\n            \"code\": 1,\n            \"signal\": null,\n            \"cmd\": \"sudo apx-user checkuser \\\"syrus4g\\\" \\\"12345\\\"\"\n        },\n        \"errorText\": \"\",\n        \"output\": \"\\\"Invalid Username or Password\\\"\\n\"\n    }\n}"}],"_postman_id":"f50f5186-76a8-4d88-9614-be7ea6ae3a71"},{"name":"Execute a command","id":"62552210-dab5-4a99-97b3-6cd0dd67af0f","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"user-agent":true,"host":true}},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"command\": \"apx-about\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/exec","description":"<p>Executes a command via the shell and returns the result.\nYou can use it to send some linux commands and all <code>apx-</code> commands. Note that you don't need to use <code>sudo</code>.</p>\n","urlObject":{"protocol":"http","path":["exec"],"host":["syrus-867698040023056","local"],"query":[],"variable":[]}},"response":[{"id":"4469a6d7-da4f-4e12-9416-09dba72cb354","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"command\": \"apx-about\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/exec"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"527"},{"key":"ETag","value":"W/\"20f-6WO6pniI2/hF7gDv2aja7c+refQ\""},{"key":"Date","value":"Fri, 12 Nov 2021 20:32:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"ram\": {\n        \"total\": 506084,\n        \"used\": 130996,\n        \"free\": 155684,\n        \"available\": 340796\n    },\n    \"cpu\": {\n        \"currF\": 1000,\n        \"usage\": 49,\n        \"governor\": \"ondemand\",\n        \"stats\": {\n            \"300\": 0.9,\n            \"600\": 119349.88,\n            \"720\": 1833.2,\n            \"800\": 1892.93,\n            \"1000\": 42764.64\n        }\n    },\n    \"rootfs\": {\n        \"total\": 590260,\n        \"free\": 166140\n    },\n    \"datafs\": {\n        \"total\": 2255680,\n        \"free\": 1947468\n    },\n    \"uptime\": 165843,\n    \"loadAvg\": [\n        1.6,\n        1.66,\n        1.75\n    ],\n    \"apexVersion\": \"apex-21.45.1\",\n    \"releaseDate\": \"20211110180136\",\n    \"sessionCount\": 219,\n    \"kernelVersion\": \"5.4.20-g738552d0b0\",\n    \"netLink\": {\n        \"name\": \"wlan0\",\n        \"ip\": \"192.168.1.148\"\n    },\n    \"hostname\": \"syrus-867698040023056\"\n}"},{"id":"f9b667e9-d687-455c-bc55-6a7a8defd6d4","name":"Invalid credentials","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"command\": \"apx-about\"\n}","options":{"raw":{"language":"json"}}},"url":"http://syrus-867698040023056.local/gps/position"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"48"},{"key":"ETag","value":"W/\"30-w7RKk4xQQF98cf6nOp6CQqlnTH8\""},{"key":"Date","value":"Fri, 12 Nov 2021 20:31:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid Authentication Credentials\"\n}"}],"_postman_id":"62552210-dab5-4a99-97b3-6cd0dd67af0f"}],"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]}},"event":[{"listen":"prerequest","script":{"id":"15681995-8b1f-4ed5-a9cd-505f4c9e7f7f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e28bb86d-197b-45b5-9440-d09148216f1f","type":"text/javascript","exec":[""]}}],"variable":[{"key":"IMEI","value":"867698040023056"}]}