bbindreiter / node-red-contrib-alexa-remote2-applestrudel

Node-Red Nodes for interacting with Alexa
https://flows.nodered.org/node/node-red-contrib-alexa-remote2-applestrudel
MIT License
77 stars 21 forks source link

How do you refresh cookie? #111

Closed hoegge closed 1 year ago

hoegge commented 1 year ago

I got my flow to work, store the token in the flow and reload it ther to initialize when re-deploying. But after some days the token run out and I have to manually login in with user and pw again. I've tried the initialize node with the 'refresh' setting but does not seem to work. Just initializes a new user / pw login.

Can anybody tell how to autmatically refresh the token, and then I'd be happy to add it to the documentation. The different choices in the initialize node are not documented in the node.`

image

Amishman commented 1 year ago

I know this is not the steps you are looking for but this works for me. Since I have set this flow up, I have not had an issue with having to sign in.

[{"id":"fbc1eea0fadc5a54","type":"alexa-remote-init","z":"93d0995a606671df","name":"","account":"","option":"initialise","x":500,"y":1140,"wires":[["ae33c26db19a0c5a"]]},{"id":"0ff35634776f6aa8","type":"inject","z":"93d0995a606671df","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 12 * * *","once":false,"onceDelay":0.1,"topic":"","payload":"alexa","payloadType":"flow","x":350,"y":1120,"wires":[["fbc1eea0fadc5a54"]]},{"id":"ae33c26db19a0c5a","type":"change","z":"93d0995a606671df","name":"","rules":[{"t":"set","p":"alexa","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":1140,"wires":[[]]},{"id":"e9f7e9dc94f75cd8","type":"inject","z":"93d0995a606671df","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"alexa","payloadType":"flow","x":340,"y":1160,"wires":[["fbc1eea0fadc5a54"]]}]

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.