最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Redis GET in Node-RED - Stack Overflow

programmeradmin1浏览0评论

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
Add a comment  | 

1 Answer 1

Reset to default 1

Looking at the source code for the node, it expects parameters to be in msg.payload and will not use any other fields

发布评论

评论列表(0)

  1. 暂无评论