Help using variables
Moderator: Martin
Help using variables
Hi all,
i'm really new on this and i wish i could learn some about using variables.
Is it possible to make a flow like:
On boot > Check a variable (on sdcard or on a ftp server) > the result of the var determines next actions
Thanks a lot, hope someone can help
i'm really new on this and i wish i could learn some about using variables.
Is it possible to make a flow like:
On boot > Check a variable (on sdcard or on a ftp server) > the result of the var determines next actions
Thanks a lot, hope someone can help
Re: Help using variables
Sorry, i'll try to be more specific:
I want to have a text file on a ftp server or into the sd card. I'd like automagic to be able to change that variable as an action. Also want to know how to make it check if a variable value is true or false.
I want to have a text file on a ftp server or into the sd card. I'd like automagic to be able to change that variable as an action. Also want to know how to make it check if a variable value is true or false.
Re: Help using variables
SD Card Monitoring: trigger:file observer > ...
FTP Monitoring: trigger:periodic timer > action:ftp download files > ...
... just to follow the standard procedure: read/compare/replace the file content and upload|save the updated "status" file.
The boolean mysteria
Is it true or false 
FTP Monitoring: trigger:periodic timer > action:ftp download files > ...
... just to follow the standard procedure: read/compare/replace the file content and upload|save the updated "status" file.
The boolean mysteria


Re: Help using variables
You are amazing dude, thanks a lot!
I'm really new to all this stuff and i'm trying to learn as fast as i can (i'm a biologist, this is definitely hard for me).
I'm really new to all this stuff and i'm trying to learn as fast as i can (i'm a biologist, this is definitely hard for me).
Re: Help using variables
Hey BoBo. Its me again. Is it possible to use the "Write to File" action to Append its text to a specific line on the txt file?
Re: Help using variables
Btw. Can "Expression" condition also do the same? Read a variable on a specific line? I.E: contains(text_file, "variable" on line 3);