Help using variables

Post your questions and help other users.

Moderator: Martin

hcporto
Posts: 10
Joined: 09 Jun 2014 21:14

Help using variables

Post by hcporto » 09 Jun 2014 21:17

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

BoBo
Posts: 129
Joined: 05 May 2014 12:45

Re: Help using variables

Post by BoBo » 10 Jun 2014 09:13

Let's guess, yes. Are you talking about to check variable conditions or values in variables? :)

hcporto
Posts: 10
Joined: 09 Jun 2014 21:14

Re: Help using variables

Post by hcporto » 10 Jun 2014 22:13

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.

BoBo
Posts: 129
Joined: 05 May 2014 12:45

Re: Help using variables

Post by BoBo » 11 Jun 2014 15:18

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 :?:

hcporto
Posts: 10
Joined: 09 Jun 2014 21:14

Re: Help using variables

Post by hcporto » 11 Jun 2014 19:30

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).

BoBo
Posts: 129
Joined: 05 May 2014 12:45

Re: Help using variables

Post by BoBo » 11 Jun 2014 20:33

Monitor file for a specific string

..sdcard0/Automagic/Test/Test.txt

:)

BoBo
Posts: 129
Joined: 05 May 2014 12:45

Re: Help using variables

Post by BoBo » 16 Jun 2014 12:03

i'm a biologist, this is definitely hard for me
So you're a biologist?!
This is for you: Microtrip ;)

hcporto
Posts: 10
Joined: 09 Jun 2014 21:14

Re: Help using variables

Post by hcporto » 22 Jun 2014 14:35

indeed i am =D

hcporto
Posts: 10
Joined: 09 Jun 2014 21:14

Re: Help using variables

Post by hcporto » 12 Jul 2014 21:40

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?

hcporto
Posts: 10
Joined: 09 Jun 2014 21:14

Re: Help using variables

Post by hcporto » 12 Jul 2014 23:27

Btw. Can "Expression" condition also do the same? Read a variable on a specific line? I.E: contains(text_file, "variable" on line 3);

Post Reply