Socket
Socket
Sign inDemoInstall

tasmota-node

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tasmota-node

A helpfull typescript package for making Tasmota API calls.


Version published
Maintainers
1
Created

Readme

Source

Tasmota-Node

A helpfull package for making Tasmota API calls.

Examples

ES6 Javascript / Typescript

import { TasmotaInstance } from "../src/index";

// Selfcalling async function
(async () => {
    // Create instance of class.
    const bedroom = new TasmotaInstance("http://192.168.1.100/"); // Trailing slash is required.

    // Toggle power for all Modules
    const res = await bedroom.power("TOGGLE");
    console.log(res); // {POWER1: "OFF", POWER2: "OFF"}

    // Toggle power for Module 1
    const res = await bedroom.power("ON", 1);
    console.log(res.POWER1); // "OFF"
})();

FAQs

Last updated on 28 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc