Linux 软件免费装

Alerts via MQQT for WooCommerce

开发者 yknivag
更新时间 2020年6月26日 23:30
捐献地址: 去捐款
PHP版本: 5.2 及以上
WordPress版本: 5.4
版权: LGPLv3 or later
版权网址: 版权信息

标签

woocommerce notify notifier mqtt shiftr.io

下载

详情介绍:

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: 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.

安装:

  1. Upload plugin wc-mqtt-alerts folder to the /wp-content/plugins/ directory.
  2. Activate the plugin using the 'Plugins' menu in your WordPress admin panel.
  3. You can adjust the necessary settings using your WordPress admin panel in "MQTTWoo".
  4. Create a page or a post, customize button settings and insert generated shortcode into the text.

常见问题:

Why use MQTT instead of the API

Calls to the API put a load on the server and to make a "real-time" update the API would have to be called at least every 5 minuntes and that would put a substantial load on the server. The idea behind this plugin is to use MQTT to push an event notification so that the API need only be called when a change is detected.

Why shiftr.io

It's free and it works well. In essence the plugin posts to a URL using basic authentication and so could be used with any other MQTT broker with an HTTP interface that follows the same pattern. Or your own server.

What is the topic prefix

By default the topic prefix is empty, but it may be set to allow the topics to fit in with an existing MQTT infrastructure.

更新日志:

0.1.0 - 20th June 2020 0.2.0 - 21st June 2020 0.2.1 - 23rd June 2020 0.2.2 - 26th June 2020 To Do