[WordPress] 外掛分享: Alerts via MQQT for WooCommerce

首頁外掛目錄 › Alerts via MQQT for WooCommerce
全新外掛
安裝啟用
尚無評分
2092 天前
最後更新
問題解決
WordPress 5.2+ PHP 7.0+ v0.2.2 上架:2020-06-23

內容簡介

MQTT Alerts for WooCommerce

這是一款針對 WooCommerce 設計的外掛,當訂單狀態改變、庫存不足/缺貨時,會將訊息發送到 shiftr.io 的 MQTT 實例。

以下主題會被發布到 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 [即將推出]

當訂單或產品過渡到那個狀態時,將會發布一條訊息到該主題。 訊息的有效負載為訂單 id 或產品 id。

所傳輸的資料最少,以限制 MQTT 的資料曝光。 通過使用 WooCommerce API,可以通過按id查詢訂單或產品以獲取更多信息。

統計資料主題每次傳送其他訊息時都會發布。 它們包含一個 JSON 資料有效負載,對於訂單而言,該有效負載是具有相應總數的訂單狀態數組。 更多的統計資料主題在待辦事項清單中。

MQTT 可以用於餵養許多不同的設備和服務。例如,NodeRed、Home Assistant 或當然是 Arduino 可以消耗這些發布。 可以在 https://github.com/yknivag/WooNofity-Arduino 找到樣本 Arduino 草稿 - 更多的草稿將在適當的時候添加。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Alerts via MQQT for WooCommerce」→ 直接安裝(推薦)

原文外掛簡介

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.

文章
Filter
Mastodon