Skip to content
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

DataRecovery node #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

DataRecovery node #5

wants to merge 1 commit into from

Conversation

eschava
Copy link

@eschava eschava commented Jun 30, 2017

New type of node combining DataIn and DataOut nodes and used to recovery node state on startup

@Belphemur
Copy link
Owner

Hello,

Can you describe in detail and with an example how you use this node ?

@eschava
Copy link
Author

eschava commented Jul 13, 2017

I need it to persist value of some parameter and restore it on startup
Actually, it's a pair of DataIn/DataOut nodes having same data path and initiated recovery on startup

E.g. to restore the latest value of dashboard switch I use:

[{"id":"8fe0367.8c3ecc8","type":"DataRecovery","z":"7d4b5f0a.6383c","collection":"fdac088a.008348","name":"","path":"/switch","error":false,"x":536.0000076293945,"y":652.0000171661377,"wires":[["851a5a9b.da70c8"]]},{"id":"851a5a9b.da70c8","type":"ui_switch","z":"7d4b5f0a.6383c","name":"","label":"switch","group":"df1f60c8.3d4dc","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":519.37890625,"y":733.6953125,"wires":[["8fe0367.8c3ecc8","d84ec4b4.c436e8"]]},{"id":"d84ec4b4.c436e8","type":"debug","z":"7d4b5f0a.6383c","name":"","active":true,"console":"false","complete":"false","x":718.3828125,"y":730.453125,"wires":[]},{"id":"fdac088a.008348","type":"json-db-collection","z":"","name":"test","collection":"test","save":true},{"id":"df1f60c8.3d4dc","type":"ui_group","z":"","name":"Default","tab":"10b63539.57807b","disp":true,"width":"6"},{"id":"10b63539.57807b","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants