Alerts Via MQQT For WooCommerce Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
MQTT Alerts for WooCommerce
Plugin to WooCommerce which sends messages to a shiftr.io MQTT instance on order state changes and for low stock/out of stock nofifications.
The following topics are published to MQTT:
* {topic_prefix}/orders/pending
* {topic_prefix}/orders/on-hold
* {topic_prefix}/orders/processing
* {topic_prefix}/orders/completed
* {topic_prefix}/orders/cancelled
* {topic_prefix}/orders/refunded
* {topic_prefix}/orders/failed
* {topic_prefix}/stock/low
* {topic_prefix}/stock/out
* {topic_prefix}/stats/orders
* {topic_prefix}/stats/stock [COMING SOON]
A message is published to a topic when an order or product transitions to that state. The payload of the message is either the order id or the product_id.
The data transmitted is kept to the bear minimum to limit the data exposure over MQTT. Further information may be retrieved by the end point using the standard WooCommerce API by querying the order or product by id.
The stats topics are published to each time any other message is sent. They contain a JSON payload which for orders is an array of order states with the corresponding totals. Further stats topics are in the to-do list.
MQTT may be used to feed many different devices and services. For example the feed could be consumed by NodeRed, Home Assistant or, of course, an Arduino. Sample Arduino sketches may be found at https://github.com/yknivag/WooNofity-Arduino – more sketches will be added in due course.
Screenshots
No screenshots provided