Skip to content

intruder-detection/shelly-api-typescript

Repository files navigation

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);

Demos

There are some helper scripts/demos that show how to use the client API in the demos branch

Releases

No releases published

Packages

No packages published