-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3: how to send calender? #77
Comments
Good news. The structure from v2 works in v3 too. After some reboots of the docker host and the nodered container. Topic "calChange" is in your example but not in the code. It generates an error message. |
what error is returning ? because for me works fine |
Hi Sergiu, we can not chance the calendar with a inject payload. It always gives an error. |
Hi Sergiu,
with v2 I used this structure to send a calender to the node:
"topic" : "setCalendar", "payload" : { "Monday": { "00:00": 17, "06:00": 17, "12:00": 17, "18:00": 17, "23:59": 17 }, "Tuesday": { "00:00": 17, "06:00": 17, "12:00": 17, "18:00": 17, "23:59": 17 }, ....
After migration to v3 this does not work anymore.
I tried to change to this structure, but no success.
"topic" : "userConfig", "payload" : { "calender" : { "Monday": { "00:00": 5, "06:00": 5, "12:00": 5, "18:00": 5, "23:59": 5 }, "Tuesday": { "00:00": 5, "06:00": 5, "12:00": 5, "18:00": 5, "23:59": 5 }, ....
Can you give me an example what structure I have to send to the node?
In your sample flow there is a topic "calChange". But there is no description what it does or how it works.
Thanks
Ingo
The text was updated successfully, but these errors were encountered: