Coder Social home page Coder Social logo

hardware-awtrix's Introduction

NAME
      Hardware::Awtrix - Perl interface to Awtrix

SYNOPSIS
      use Hardware::Awtrix {
        host     => $ENV{MQTT_HOST},
        user     => $ENV{MQTT_USER},,
        password => $ENV{MQTT_PASS},
        topic    => $ENV{AWTRIX_NOTIFY_TOPIC},
      };

      my %message = (
        text     => 'Hello world!',
        color    => '#ffff00',
        icon     => 1,
        rainbow  => 'true',
        duration => 15,
      );

      publish(\%message);

DESCRIPTION
    Simple module that allows you to send messages to your esp32-based
    awtrix device using mqtt.

    The topic would be somethins similar to "awtrix_d4924/notify".

    The icons need to be downloaded to your device, and then referenced by
    id. You can see those ids in the web interface of your flashed clock.

    Recommended to disable all the apps on the clock itself. This way, the
    clock will be blank until it receives a message.

EXPORTS
      publish

FUNCTIONS
  publish(\%message)
NOTES
    Would rather use the Net::MQTT::Simple module but I had zero luck
    getting it to work with my specific broker.

    Therefore, the mosquitto_pub command is used for now.

TODO
    Figure out all of the options that can be passed to the awtrix device.

REPORTING BUGS
    Report bugs and/or feature requests on rt.cpan.org, the repository issue
    tracker or directly to [email protected]

AUTHOR
      Magnus Woldrich
      CPAN ID: WOLDRICH
      [email protected]
      [email protected] #perl
      L<~/|http://japh.se>
      L<git|http://github.com/trapd00r>

CONTRIBUTORS
    None required yet.

COPYRIGHT
    Copyright 2023- THIS MODULEs "AUTHOR" and "CONTRIBUTORS" as listed
    above.

LICENSE
    This library is free software; you may redistribute it and/or modify it
    under the same terms as Perl itself.

hardware-awtrix's People

Contributors

trapd00r avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.