global variablle

Post your questions and help other users.

Moderator: Martin

Post Reply
rsegoly
Posts: 46
Joined: 14 Jun 2013 15:30

global variablle

Post by rsegoly » 27 Sep 2013 16:25

Is it possible to create global variable to be used across flows?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: global variablle

Post by Martin » 27 Sep 2013 16:36

Yes, variables with the prefix global_ are automatically treated as global and are accessible by all flows.
See also the description of action Script.
Global variables are also available from the flow list: Menu->Manage->Global Variables

rsegoly
Posts: 46
Joined: 14 Jun 2013 15:30

Re: global variablle

Post by rsegoly » 27 Sep 2013 17:00

managed to use global variable as state keeper fro flows.
I have now flow activated by voice (autovoice) which turns on/off the light in my room

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: global variablle

Post by Martin » 27 Sep 2013 18:19

Nice, sounds very interesting!
How are you turning the light on/off from your device, over WiFi?

rsegoly
Posts: 46
Joined: 14 Jun 2013 15:30

Re: global variablle

Post by rsegoly » 27 Sep 2013 18:37

I keep the system as independent module

The core is Web server with MYSQL
The phone and also web interface can update the database accordingly
The end system is Arduino with several components
1. IR led
2. RF transmitter
3. 220 Volt relay
Of course I do not need all but it's for demo

The Arduino can send IR commands and I have IR receiver with socket
It can send RF commands and I have RF receiver with socket
And of course close open 220 Volt circuit on relay

The Arduino connects to the Web, receive it's commands and execute
The connection is either from board with Ethernet capabilities or via Python script on PC

It's not that complicated, but the end result is mobile which can send commands (I use Automagic and open URL flow)
Triggered by voice
Also on the Web interface I created connection to IFTTT so I can automate activities, so for example when sun sets I get light on command.

The end product will also send commands to the mobile for example to dial specific number or say the time

See all in this short video http://www.youtube.com/watch?v=mEjTM-IV ... m_8PLdvBAU

http://212.150.200.169:84/index.php

artpc
Posts: 12
Joined: 02 Jul 2013 11:59

Re: global variablle

Post by artpc » 28 Sep 2013 02:54

For me Autovoice , Autoremote and EventGhost

Controlling your living room with EventGhost:
http://www.eventghost.net/mediawiki/ind ... EventGhost

Homepage http://www.eventghost.net/
Plugin remote Receiver , SmartTV , projector, XBMC and more , serial port , broadcaster ,remote event maper, desktop remote and more
Control Windows power , mosue , files, media player and more

rsegoly
Posts: 46
Joined: 14 Jun 2013 15:30

Re: global variablle

Post by rsegoly » 28 Sep 2013 04:02

Nice.
I did not want the pc to send commands as I am planning to have more devices at home, and one device will act like switchboard.
Also when I use Arduino I have the flexibility to connect it via wifi and not pc.
And I use linux, eventghost is for windows. But very nice

artpc
Posts: 12
Joined: 02 Jul 2013 11:59

Re: global variablle

Post by artpc » 28 Sep 2013 10:44


Post Reply