admin管理员组文章数量:1336380
I have a node with the following output:
{"task_id":"celery-task-meta-d024fe34-eb5a-4493-829c-41f1877cffed","_msgid":"aca5b7a07ef39fb3"}
I want to pass this task_id to a Redis node "node-red-contrib-redis" to get the updates: I tried every combination in the Topic/Key field, like: {{msg.task_id}}, {{task_id}}, msg.task_id. But without any success! But when copy paste the task_id into the Topic/Key field it will work: like celery-task-meta-d024fe34-eb5a-4493-829c-41f1877cffed. How to pass this dynamic value in the Redis node!
I have a node with the following output:
{"task_id":"celery-task-meta-d024fe34-eb5a-4493-829c-41f1877cffed","_msgid":"aca5b7a07ef39fb3"}
I want to pass this task_id to a Redis node "node-red-contrib-redis" to get the updates: I tried every combination in the Topic/Key field, like: {{msg.task_id}}, {{task_id}}, msg.task_id. But without any success! But when copy paste the task_id into the Topic/Key field it will work: like celery-task-meta-d024fe34-eb5a-4493-829c-41f1877cffed. How to pass this dynamic value in the Redis node!
Share Improve this question edited Dec 3, 2024 at 20:31 Joker King asked Nov 20, 2024 at 0:00 Joker KingJoker King 234 bronze badges 4- Can you edit the question to confirm which Node-RED redis node you are using (node-red-node-redis?) – hardillb Commented Nov 21, 2024 at 21:09
- node-red-contrib-redis – Joker King Commented Nov 22, 2024 at 21:22
- Are you sure, because that doesn't match the screenshot – hardillb Commented Nov 23, 2024 at 7:42
- Sure, it is node-red-contrib-redis – Joker King Commented Dec 2, 2024 at 16:45
1 Answer
Reset to default 1Looking at the source code for the node, it expects parameters to be in msg.payload
and will not use any other fields
本文标签: Redis GET in NodeREDStack Overflow
版权声明:本文标题:Redis GET in Node-RED - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742389790a2465757.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论