@intruder-detection/shelly-api-typescript
v0.0.12
Published
Typescript client for the Shelly HTTP API
Downloads
19
Maintainers
Readme
Shelly API Typescript
Strongly typed Shelly API client written in Typescript
Install
You can install it in a Typescript/Javascript project by doing the following:
npm i @intruder-detection/shelly-api-typescript
Usage
import { ShellyGen2PlusHTTPAPI, ShellyMethods } from '@intruder-detection/shelly-api-typescript';
const gen2Device = new ShellyGen2PlusHTTPAPI('192.168.1.10');
const status = await gen2Device.post(ShellyMethods.GetStatus);
console.log(status);