Page 1 of 2

Help using variables

Posted: 09 Jun 2014 21:17
by hcporto
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

Re: Help using variables

Posted: 10 Jun 2014 09:13
by BoBo
Let's guess, yes. Are you talking about to check variable conditions or values in variables? :)

Re: Help using variables

Posted: 10 Jun 2014 22:13
by hcporto
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.

Re: Help using variables

Posted: 11 Jun 2014 15:18
by BoBo
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 :o Is it true or false :?:

Re: Help using variables

Posted: 11 Jun 2014 19:30
by hcporto
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).

Re: Help using variables

Posted: 11 Jun 2014 20:33
by BoBo
Monitor file for a specific string

..sdcard0/Automagic/Test/Test.txt

:)

Re: Help using variables

Posted: 16 Jun 2014 12:03
by BoBo
i'm a biologist, this is definitely hard for me
So you're a biologist?!
This is for you: Microtrip ;)

Re: Help using variables

Posted: 22 Jun 2014 14:35
by hcporto
indeed i am =D

Re: Help using variables

Posted: 12 Jul 2014 21:40
by hcporto
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

Posted: 12 Jul 2014 23:27
by hcporto
Btw. Can "Expression" condition also do the same? Read a variable on a specific line? I.E: contains(text_file, "variable" on line 3);