trapd00r / hardware-awtrix Goto Github PK
View Code? Open in Web Editor NEWControl an Awtrix LED Matrix Display with MQTT
Control an Awtrix LED Matrix Display with MQTT
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.