This object is in archive! 

Storing variables externally ??

Torbjorn Hall shared this idea 7 years ago
Under Consideration

Is there any way to store a variable externally from the box, i.e. on USB-stick or network disc and later read it into the same variable...???


best regards

Torbjorn

Replies (10)

photo
1

Creating another variable and use it as buffer maybe? The only problem is if the box reboots your data is gone. Another option would be maybe store the value in a virtual meter, those values do not get deleted after a reboot.

photo
1

Or you can post your values (if you have paid/enabled the parameters option ) in HTTP requests to a server and have that server post it back to a virtual meter, when you need it. You will need a web server and some basic programming skills, though


Not a very elegant solution, I am afraid :) Just using a virtual meter like Alberto suggests seems easier...


Why do you want to store externally?

photo
1

Hello Alberto and Marius,


Thanks for your ideas and comments!


I'm thinking of implementing a rain sensor (already have the Oregon PCR800 in the system) to show rain amount Year To date and Month To date and need to store the accumulated amount in several variables externally. I need to have the values retained after both restart and power off/on of the box....

Webserver I have but programming skill are mediocre.....

I have the PRO license, how do I enable the parameters option ??


Best regards

Torbjorn

photo
1

yes try using the http post command.


Maybe using IFTTT, you can use the maker channel to receive the value, and post or store it somewhere (like google drive) then post it back to the virtual meter later.

photo
1

Uf you have PRO, you should already have the send parameter functionality, I think. Look in the http request (configure) puzzle, or in the email puzzle

photo
1

Hello Adrian,


Thanks for your suggestion. I set up maker channel to create a textfile on Dropbox when the rule runs on the Zipabox, it works basically, textfile is created. But....

I don't know how to parse the values (variables) in the HTTP request configuration, I tested to insert variables ( I have all rainrelated valus as variables) but they did not come through to the text file....


Maybe, you have an example or tips ???


Best regards

Torbjorn

photo
1

I think Marius idea is quite more complicated for what you want to do, unless you are planning to use this stored value with another service or device (not your zipato controller) there is no reason why you cannot use the virtual meter to save the value you want. It'm much more simple and your data will be there even if you power off the controller. I'm using this method to create a "presence detector" using IFTTT and maker channel with post method.

photo
1

Alberto,


Can I kindly ask you for an example of how you post your variable/value to IFTTT in HTTP request configuration...??


Best regards

Torbjorn

photo
1

I don't post a variable to IFTTT, I use IFTTT to post a value on my virtual meter, based on the fact that my celphone is connected or not to my home wifi. I write 0 if not connected, 1 if its connected. As far as I can see you don't need to post the value to IFTTT either you just need to use a SET puzzle, see attached picture. Then you can read that value whenever you need.

With this method your value is stored on zipato servers.

photo
1

Hello ,


This case is now solved with the help of using virtual meters for all values that need to be retained...


Thank you for all your help and suggestions !


Best regards

Torbjorn

Leave a Comment
 
Attach a file