Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

CommandFusion: iPhone control with customizable interface

If you have a question or need help, this is the place to be.
Post Reply
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by Fiasco »

Jarrod,

One thing I've noticed is that the remote screen periodically dissappears (goes black) when touching the screen. Is this a setting or something that is triggering this?
User avatar
CommandFusion
Experienced User
Posts: 59
Joined: Thu Jun 25, 2009 9:36 am
Location: Melbourne, Australia
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by CommandFusion »

Probably the 'Proximity Sensor' setting. This turns the screen off when ur finger goes over the sensor in the top left.
Just disable it in settings for iViewer if you often do this.

The reason for using this is so you can place the iPhone down face first on your lap or couch or table or something, and turn the screen off to save power, then when you pick it back up its instantly back on and usable as a remote, without having to wait a second or two like you do when the device goes to sleep and disables wifi.
Jarrod Bell
CommandFusion
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by Fiasco »

Did I mention I was blown away by this app and gui builder?

I'm a bit stumped on my progress.

I'm setting up a Denon receiver for a client. I've got my volume slider (99) (pictured on the previous page) which sends out the command to eventghost.

CommandFusion.AnalogChange_99 '28261' (for example)

This is passed off to a command in my Denon plugin to set the volume directly by passing {eg.event.payload} (in this case 28261) which sets my volume correctly on the receiver (I divide that in my plugin to get a number between 0 and 98).

When the Denon has a volume adjustment it kicks back the following event

DenonSerial.Volume '42' (Denon volume range is 0-98)

I setup a Serial Change Macro for the CommandFusion plugin which passes {eg.event.payload} to the remote triggered by the DenonSerial.Volume event above to Serial Join Number 99 (my volume slider)

This causes the following line to appear in my eventghost log

CommandFusion Message Sent: s99=43000 (for example)

I was expecting the volume indicator to change with that feedback but it doesn't. (I also tried manually passing a serial change number back 50000, 2000, ect) which also didn't trigger a change in the volume slider.

Am I missing a step in my setup to trigger this kind of reaction from the remote?
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by Fiasco »

I went to the commandfusion plugin configuration and unchecked enable logging of all messages.

When I try to send a serial change command I get an error in my eventghost log:

File ....\CommandFusion\_init__.py", line 159, in __call__
File ....\CommandFusion\_init__.py", line 366, in Push
IndexError: tuple index out of range
User avatar
CommandFusion
Experienced User
Posts: 59
Joined: Thu Jun 25, 2009 9:36 am
Location: Melbourne, Australia
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by CommandFusion »

For sliders/gauges, you need to send back an Analog Change event, with the value between 0 and 65535.

Serial feedback is to display the text value within a text field or something.
Jarrod Bell
CommandFusion
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by Fiasco »

Played with this a bit more.

If I send an Analog Change to the remote it doesn indeed change the volume slider.

The problem here is that you must manually enter a number for an Analog Change value. I can't (for example) pass the return volume value of the Denon Receivers volume directly through the Analog Change macro in the Command Fusion Plugin like I can with a serial change macro. The denon returns a value between 0 and 98 for it's volume value which I can script in event ghost to convert to a value between 0 and 65535 but I can't pass this value directly to an analog change.

It would be nice for the Analog Change macro if there were four fields
Field 1) The Analog Join #
Field 2) The maximum possible value to pass
Field 3) The minimum possible value to pass
Field 4) The value to pass (ie, eg.event.payload)

Then the plugin could automagically take the max and min value and convert it to the 0-65535 range needed by the remote interface.

The above tuple error appears to happen when the remote interface on my iphone has not yet contacted/connected with the command fusion plugin.
Last edited by Fiasco on Thu Nov 05, 2009 10:54 pm, edited 1 time in total.
User avatar
CommandFusion
Experienced User
Posts: 59
Joined: Thu Jun 25, 2009 9:36 am
Location: Melbourne, Australia
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by CommandFusion »

Just noticed a fault in the plugin, the Serial Change event configuration screen is the same as Analog Change, copy/paste, forget to change :P

I will post a fix to the Google Code repo shortly.

To send an analog change event dynamically, see how I did it in my example EG config. You need to do it via a python script or command.
Jarrod Bell
CommandFusion
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by Fiasco »

I edited my post above w/ a suggestion for the Analog Change screen in the plugin
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by Fiasco »

like so...
Attachments
Image1.jpg
User avatar
CommandFusion
Experienced User
Posts: 59
Joined: Thu Jun 25, 2009 9:36 am
Location: Melbourne, Australia
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by CommandFusion »

By putting the payload variable in curly braces like that, is there anything special I have to do within the plugin to convert the value? Or will it automatically send the right value and not the string literal of it?
Jarrod Bell
CommandFusion
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by Fiasco »

use eg.ParseString{valuepassed} in your plugin script.

eg.ParseString will then parse the value within curly braces and replace it with the value of eg.event.payload
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by Fiasco »

oops thats wrong

it's eg.ParseString(value) (parenthesis, not curly braces)
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by Fiasco »

BTW, I like your avatar icon here in the forum better then your CF iViewer icon on the iphone home screen.
User avatar
CommandFusion
Experienced User
Posts: 59
Joined: Thu Jun 25, 2009 9:36 am
Location: Melbourne, Australia
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by CommandFusion »

I have just updated the plugin, get latest copy from our google code repo:
http://commandfusion.googlecode.com

Also updated the EG example config, the old config will give errors on volume change when used with the new plugin version.
Jarrod Bell
CommandFusion
User avatar
CommandFusion
Experienced User
Posts: 59
Joined: Thu Jun 25, 2009 9:36 am
Location: Melbourne, Australia
Contact:

Re: CommandFusion: iPhone control with customizable interface

Post by CommandFusion »

Oh, and the avatar I use here is our updated company logo. The icon used in iViewer is just the app product icon, rather than our company logo.
I agree our logo looks nicer, but gotta have a different logo for each product we have (and plan to release).
Jarrod Bell
CommandFusion
Post Reply