@nanomatic/pzem-004t
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

PRZEM-004T

@nanomatic/pzem-004t

Status


PZEM-004T sensor implementation

📝 Table of Contents

🏁 Getting Started

Installing

npm i @nanomatic/pzem-004t

Using

Example code below:

import { PZEM004T } from '@nanomatic/pzem-004t'

const pzem004t = new PZEM004T({ port: '/dev/ttyUSB1' });

setInterval(async() => {
    try {
        const data = await pzem004t.getData();
        console.log(data);
    } catch ({ message }) {
        console.log(`Error: ${message}`);
    }
}, 500);

⛏️ Built With

📦 Dependencies

✍️ Authors

🎉 Acknowledgments

  • Special thanks for Sebastian for working together and giving ideas 😉

/@nanomatic/pzem-004t/

    Package Sidebar

    Install

    npm i @nanomatic/pzem-004t

    Homepage

    nanomatic.pl

    Weekly Downloads

    3

    Version

    1.0.2

    License

    none

    Unpacked Size

    5.75 kB

    Total Files

    4

    Last publish

    Collaborators

    • nano_matic