Strongly typed Shelly API client written in Typescript
You can install it in a Typescript/Javascript project by doing the following:
npm i @intruder-detection/shelly-api-typescript
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);
There are some helper scripts/demos that show how to use the client API in the demos branch