Author |
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 04 2004 at 14:05 | IP Logged
|
|
|
PowerHome beta version 1.03.4.2 is now available for download.
This version has a completely rewritten interface for the PowerLinc as well as corrects problems with internal COM functions and other minor fixes. This version also includes support for the new PowerHome Distributed Control Client (available as a separate download on the download page).
Dave.
|
Back to Top |
|
|
seattlechris Groupie
Joined: June 29 2002 Location: United States
Online Status: Offline Posts: 49
|
Posted: November 07 2004 at 13:39 | IP Logged
|
|
|
Thanks Dave. Installing the new beta went very smoothly, and I like the new windows spy utility. I'm also planning to use the built in FTP functions (currently I execute a 3rd party program to do FTPs).
I'm still having trouble with the COM interface though, details are in my updated post in the bug reports section.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 08 2004 at 12:42 | IP Logged
|
|
|
Chris,
Let me know if you have any problems with the new FTP functions.
Also, I'll look into the problems you're having with the COM functions and see what I can turn up.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 11 2004 at 19:41 | IP Logged
|
|
|
Comments:
Help works!
You still need to update the logo!
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 12 2004 at 10:13 | IP Logged
|
|
|
Any examples on PH DCC?
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 12 2004 at 13:03 | IP Logged
|
|
|
Well, Im glad I got that help problem fixed. If I ever get around to getting context sensitive help however, the new alternate way of launching wont work .
I know..., Ive got to get that logo into the next version. Im actually going to include a couple of different ones along with a couple of different CSS files so people will be able to easily select their preferred look for the web interface. If anyone has any mods theyve done to the ph.css and would like to pass them along, I'd be happy to include them.
Concerning the new PH DCC. No ready made examples but it's quite easy to setup and use. Ive just started playing with it myself. It's real power is when you want to have PowerHome remotely control another machine on the network. Im using it to control the new HTPC machine I built.
Once youve setup the socket server on the DCC (in the dcc.ini file), just execute DCC.EXE. The program will launch and immediately minimize to an icon in the system tray. At this point you're ready to send commands to the DCC from PowerHome using the ph_ssrequest function. An example would be:
ph_ssrequest("192.168.0.15",8500,"dwh","dwh","FORMULA","ph_sendkeys('{downarrow}')")
The first parameter is the IP of the machine running the DCC. 8500 is the port that I configured the DCC to use. The next two parameters are the userid and password. "FORMULA" is the socket server request type (The DCC only supports "FORMULA"). And the last parameter is the formula that you wish to execute on the DCC machine. In this case, I wish to simulate the down arrow key being pressed. In the HTPC machine, I have a Hauppauge PVR-250 MPEG-2 encoder card. This, coupled with BeyondTV 3.5 software allows me to use the HTPC as a TIVO. The BeyondTV software and it's menuing is capable of being controlled by a variety of infrared remote controls, but I wanted to control it from my palmpad. And since PowerHome is on a completely different machine, the DCC is what I use.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 12 2004 at 15:25 | IP Logged
|
|
|
Sounds cool, Dave. Is there a command that sets window focus, or, is BeyondTV always up on your HTPC? Also, is there a way to communicate back to PH?
The PVR-250 seems to be very popular.
I'll have to think about what I can use DCC for...
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 12 2004 at 18:19 | IP Logged
|
|
|
Tony,
Yep...you can use the ph_setforegroundwindow() and ph_switchto() formula functions.
As far as communicating back...you could use the ph_ssrequest() function. Also, when the formula is evaluated by the DCC, the result is passed back to the calling function. In other words, when you run ph_ssrequest in PowerHome, the result of the formula sent to the DCC will be what is returned from the ph_ssrequest function.
The DCC itself is not intelligent and is really just a remote slave for PowerHome. Im not sure if communicating back to PowerHome is all that useful, other than knowing if the formula was evaluated properly. You could send formulas such as ph_findwindow and the result will tell you if a window is open on the remote machine and such.
For more functionality, you could also run a second version of PowerHome on a remote machine and use the Socket Server on both to communicate between the two. The DCC is scaled way down and intended to be light on resources.
The PVR-250 is awesome. Ive also got a Hauppauge Nexus-S MPEG-2 FTA DVB card as well. Im still trying to get everything set up just the way I like, but it's pretty neat .
If you come up with any creative uses for the DCC, please share them. It would be interesting to see what uses its put to.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 13 2004 at 09:37 | IP Logged
|
|
|
Thanks, Dave. That info will be helpful.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 13 2004 at 17:13 | IP Logged
|
|
|
I forgot to mention that entering an ADIM value then pressing <enter> is fixed for IE but not Firefox.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 21 2004 at 10:50 | IP Logged
|
|
|
Also, is there a table somewhere to help with filtering type codes in the Event Log?
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 21 2004 at 15:41 | IP Logged
|
|
|
The table below should work:
0 System Startup
1 Incoming IR
2 Outgoing IR
3 Incoming X-10
4 Outgoing X-10
5 Incoming Digital (Not Used)
6 Outgoing Digital (Not Used)
7 Incoming Analog (Not Used)
8 Macro
9 Execute Timed Event
10 Create Timed Event
11 Trigger Check
12 Send Keys
13 Clear X10 Variables
14 Play Playlist
15 Play Slot / Track
16 Global Variable modified
17 Time sent to X-10 Controller
18 Voice Command
19 Web Access
20 Dialup Connected
21 Dialup Disconnected
22 Email Sent
23 Trim Event log
24 Direct SQL performed
25 System Shutdown
26 Critical Error
27 System Message
28 User Message
I havent double checked but it should be complete
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 21 2004 at 22:43 | IP Logged
|
|
|
Thanks Dave!
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 16 2005 at 22:06 | IP Logged
|
|
|
Dave,
Do you have a list of functions supported by DCC? Maybe ph_tts is in there? Just thinking about distributed announcements...
Thanks,
Tony
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: February 26 2006 at 15:07 | IP Logged
|
|
|
Bump, plus...
Looks like the type codes have changed.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: February 27 2006 at 00:50 | IP Logged
|
|
|
Heh,
I'll be working on the DCC shortly...promise .
Here are the current eventlog typecodes.
startup   ; 0
IR in &nbs p; 1
IR out &nb sp; 2
x10 in &nbs p; 3
x10 out &nb sp; 4
di &nbs p; 5
do &nbs p; 6
ai &nbs p; 7
macro & nbsp; 8
timedevent execute 9
timedevent create 10
trigger   ; 11
sendkeys &nbs p; 12
clear x10 vars &n bsp;13
playlist &nbs p; 14
slot/track &n bsp; 15
globalvar &nb sp; 16
cm11a time &n bsp;17
voice command   ; 18
web access 19
dialup connect   ; 20
dialup disconnect 21
send email & nbsp;22
trim log &nb sp;23
direct sql &nb sp;24
system shutdown &nbs p; 25
critical error & nbsp;26
system message   ; 27
user message   ; 28
ao &nbs p; 29
insteon in &nb sp; 30
insteon out &nb sp;31
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: February 27 2006 at 06:25 | IP Logged
|
|
|
Dave,
The bump was for a list of functions supported by DCC, but I think this is available, sort of, in the DCC formula evaluator?
Also embarrassing is that I was looking for command (?) type codes (in macros).
Pardon me, I just got back from Manila, so my brain is a bit out of whack from the time change.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: February 27 2006 at 11:36 | IP Logged
|
|
|
Holy smokes! Manila. When you say out of town, you mean out of town .
You can get the macro commands using this SQL:
Code:
select * from dropdowns where ddtype = 12 order by ddnumvalue |
|
|
This would probably be better than hardcoding. And after last night with adding some new macro commands for Insteon, Im probably going to do a little reorganization soon because things have just become a mess.
You COULD also change the descriptions of the dropdowns if they're not what you like (as well as the sort).
HTH,
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: February 27 2006 at 12:01 | IP Logged
|
|
|
Oh, cool! Thanks Dave!
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: February 27 2006 at 20:10 | IP Logged
|
|
|
Correction for those playing at home...
Code:
select * from dropdowns where ddtype = 12 order by ddnumval |
|
|
And for an extra-lean version...
Code:
select ddnumval, dddisplay, ddtype from dropdowns where ddtype = 12 order by ddnumval |
|
|
Edited by TonyNo
|
Back to Top |
|
|