@hangtime/grip-connect-cli
Version:
CLI tool for Grip Connect devices
85 lines • 2.55 kB
JavaScript
/**
* Device definition for the Entralpi hangboard.
*/
import { Entralpi } from "@hangtime/grip-connect-runtime";
import { printResult } from "../utils.js";
const entralpi = {
name: "Entralpi",
class: Entralpi,
actions: [
{
name: "Battery",
description: "Read battery level",
run: async (device) => {
const d = device;
printResult("Battery:", await d.battery());
},
},
{
name: "Certification",
description: "Read certification info",
run: async (device) => {
const d = device;
printResult("Certification:", await d.certification());
},
},
{
name: "Firmware",
description: "Read firmware version",
run: async (device) => {
const d = device;
printResult("Firmware:", await d.firmware());
},
},
{
name: "Hardware",
description: "Read hardware version",
run: async (device) => {
const d = device;
printResult("Hardware:", await d.hardware());
},
},
{
name: "Manufacturer",
description: "Read manufacturer info",
run: async (device) => {
const d = device;
printResult("Manufacturer:", await d.manufacturer());
},
},
{
name: "Model",
description: "Read model number",
run: async (device) => {
const d = device;
printResult("Model:", await d.model());
},
},
{
name: "PnP ID",
description: "Read PnP identifier",
run: async (device) => {
const d = device;
printResult("PnP ID:", await d.pnp());
},
},
{
name: "Software",
description: "Read software version",
run: async (device) => {
const d = device;
printResult("Software:", await d.software());
},
},
{
name: "System ID",
description: "Read system identifier",
run: async (device) => {
const d = device;
printResult("System ID:", await d.system());
},
},
],
};
export default entralpi;
//# sourceMappingURL=entralpi.js.map