Alerts via MQQT for WooCommerce

MQTT Alerts for WooCommerce

Author:yknivag (profile at wordpress.org)
WordPress version required:5.2
WordPress version tested:5.4.6
Plugin version:0.2.2
Added to WordPress repository:24-06-2020
Last updated:26-06-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:https://github.com/yknivag/WooNotify
Total downloads:518
plugin download
Click to start download

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.


FAQ
ChangeLog