@vipstorage/tibbo-device-api
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

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"
        }
      }
    ]
  }
]

Readme

Keywords

none

Package Sidebar

Install

npm i @vipstorage/tibbo-device-api

Weekly Downloads

0

Version

0.1.6

License

ISC

Unpacked Size

3.09 MB

Total Files

51

Last publish

Collaborators

  • 128keaton