Update when_data.js
This commit is contained in:
parent
4b2b8705f7
commit
ad0e464a7d
1 changed files with 2 additions and 10 deletions
|
|
@ -5,28 +5,23 @@ export default {
|
||||||
name: "Any Data",
|
name: "Any Data",
|
||||||
colour: 30,
|
colour: 30,
|
||||||
inputsInline: true,
|
inputsInline: true,
|
||||||
description: "Run this action when a Feed receives a new data point.",
|
description: "The simplest trigger - runs your Action every single time ANY new data arrives at a feed, regardless of what the value is. Perfect for logging all activity ('record every sensor reading'), acknowledging data receipt ('send confirmation for every message'), or triggering workflows that need to process all incoming data. No conditions, no filtering - just pure data arrival detection.",
|
||||||
|
|
||||||
connections: {
|
connections: {
|
||||||
mode: "statement",
|
mode: "statement",
|
||||||
output: "trigger",
|
output: "trigger",
|
||||||
next: "trigger"
|
next: "trigger"
|
||||||
},
|
},
|
||||||
|
|
||||||
mixins: ['replaceDropdownOptions'],
|
mixins: ['replaceDropdownOptions'],
|
||||||
extensions: ['populateFeedDropdown'],
|
extensions: ['populateFeedDropdown'],
|
||||||
|
|
||||||
template: "When %FEED_KEY gets any data |LEFT",
|
template: "When %FEED_KEY gets any data |LEFT",
|
||||||
|
|
||||||
fields: {
|
fields: {
|
||||||
FEED_KEY: {
|
FEED_KEY: {
|
||||||
description: "the Feed to watch for new data points",
|
description: "Choose which feed to monitor for activity. Every single data point that arrives at this feed will trigger your Action - whether it's a number, text, true/false, or any other value type.",
|
||||||
options: [
|
options: [
|
||||||
[ "Loading Feeds...", ""]
|
[ "Loading Feeds...", ""]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
generators: {
|
generators: {
|
||||||
json: block => {
|
json: block => {
|
||||||
const
|
const
|
||||||
|
|
@ -34,15 +29,12 @@ export default {
|
||||||
payload = JSON.stringify({
|
payload = JSON.stringify({
|
||||||
whenData: { feed }
|
whenData: { feed }
|
||||||
})
|
})
|
||||||
|
|
||||||
return payload
|
return payload
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
regenerators: {
|
regenerators: {
|
||||||
json: blockObject => {
|
json: blockObject => {
|
||||||
const payload = blockObject.whenData
|
const payload = blockObject.whenData
|
||||||
|
|
||||||
return {
|
return {
|
||||||
type: "when_data",
|
type: "when_data",
|
||||||
fields: {
|
fields: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue