0.1.6 • Published 4 months ago

@vipstorage/tibbo-device-api v0.1.6

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

Tibbo Device API

coverage coverage coverage coverage

tables

A library/CLI tool to manage Tibbo devices

$ npm install @vipstorage/tibbo-device-api

Supported Features

  • Tables
    • List tables
    • List table's rows
    • Add a row
    • Delete a row
  • Settings
    • Query device settings
    • Set a setting
    • View a setting
    • Initialize settings
  • Info
    • Query basic device info (like firmware version)
  • Functions
    • Reboot device
    • Run command

Changelog

0.1.6

  • No longer using IP address, please send full url, so 0.0.0.0 becomes http://0.0.0.0

0.1.5

  • Changes authentication method
  • Adds login function

0.1.1

  • Adds ability to add a structured row
  • Fixes issue with empty table names

0.1.0

  • Adds ability to run command

0.1.0

  • Fixes bug where groups were NOT cleared

0.0.9

  • Adds ability to import/export settings

0.0.8

  • Fixes issue where setting description was not added to setting object

0.0.7

  • Adds reboot function

0.0.6

  • Fixes setting map bug

0.0.5

  • Adds query

0.0.4

  • Adds settings

0.0.3

  • Adds tests

0.0.2

  • Adds tables

0.0.1

  • Initial commit

Usage

Examples

query tables settings-all settings-set

CLI

$ npx tibbo-device-api

Example output of npx tibbo-device-api tables fetch http://0.0.0.0 password:

[
  {
    "name": "CREDS",
    "columns": [
      {
        "displayName": "Credential ID",
        "identifier": "ID",
        "min": 0,
        "max": 50,
        "dataType": "S"
      },
      {
        "displayName": "Raw Credential",
        "identifier": "RAW",
        "min": 0,
        "max": 50,
        "dataType": "S"
      }
    ],
    "rowCount": 2,
    "rows": [
      {
        "rowID": 1,
        "columnValues": {
          "ID": "Credential_ONE",
          "RAW": "1234"
        }
      },
      {
        "rowID": 2,
        "columnValues": {
          "ID": "Credential_TWO",
          "RAW": "4561"
        }
      }
    ]
  },
  {
    "name": "TBL2",
    "columns": [
      {
        "displayName": "Field 1",
        "identifier": "F1",
        "min": 0,
        "max": 50,
        "dataType": "F"
      },
      {
        "displayName": "FieldTwo",
        "identifier": "F2",
        "min": 0,
        "max": 50,
        "dataType": "S"
      }
    ],
    "rowCount": 2,
    "rows": [
      {
        "rowID": 1,
        "columnValues": {
          "F1": "1",
          "F2": "asdasdasd"
        }
      },
      {
        "rowID": 2,
        "columnValues": {
          "F1": "2",
          "F2": "pppp"
        }
      }
    ]
  }
]
0.1.6

4 months ago

0.1.5

4 months ago

0.1.4

9 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago