23rd August 2008 - There was an issue with our name caching server at around 08:00AM GMT. It has been fixed.

Powerhome - eHome screen designer

HA... VIA Powerhome

Postby JakeBullet on Thu Feb 21, 2008 7:22 pm

JakeBullet wrote:I have noticed that if there is a bad sub then it seems that anything below it fails to init too. I am looking into this.


Found IT!
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Postby jbbtex on Thu Feb 21, 2008 11:26 pm

When I try to use Insteon Groups it does not appear that their status is updated.

For instance, I created a Button and assigned an Insteon Group to it. It will turn the Group On, but the status indicator never changes and subsequent "presses" of the Button send Group On commands via PH.

BTW, all the additions and updates in .14 are fantastic.
Brady
jbbtex
 
Posts: 67
Joined: Fri Nov 16, 2007 6:22 am
Location: Texas

Postby TonyNo on Fri Feb 22, 2008 1:18 am

Hmm. I thought we tested that. I'm seeing the same here.

I found the source of my other problem (it was the paren's).

Now, I'm trying to get this to work...

Code: Select all
ehHaLabelChgCaption "scrSecuA","DoorT", g_oGbl.EH_PH_CALL_RETVAR("string( ph_getx10dt('Q2'), 'mm/dd/yy h:mm am/pm')")


For testing, I did this...

Code: Select all
resp = g_oGbl.EH_PH_CALL_RETVAR("string( ph_getx10dt('Q2'), 'mm/dd/yy h:mm am/pm')")
msgbox resp
ehHaLabelChgCaption "scrSecuA","DoorT", resp

...and the message box has the correct data, but the label was updated to nul.
TonyNo
 
Posts: 351
Joined: Sat Mar 17, 2007 3:53 pm
Location: Illinois USA

Postby JakeBullet on Fri Feb 22, 2008 5:06 pm

I though that worked too. Crap.

I check the ehHaLabelChgCaption function again. It is working.
aahhhhh Maybe you have a LF or CRLF or something in the return from PH.

Let me write a clean up function real quick
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Postby JakeBullet on Fri Feb 22, 2008 5:17 pm

OK - add to eHomeClientFunct.vbs


Code: Select all
'==================================================
Function ehCleanUpCRLF(sInVar)
    Dim sTemp
    sTemp = Replace(sInVar, Chr(10), "")
    sTemp = Replace(sTemp, Chr(13), "")
    ehCleanUpCRLF = sTemp
End Function


and change
ehHaLabelChgCaption "scrSecuA","DoorT", resp
to
ehHaLabelChgCaption "scrSecuA","DoorT", ehCleanUpCRLF(resp)
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Postby JakeBullet on Fri Feb 22, 2008 5:38 pm

Or... go to the download page. There is a zip file with all the VBS updates.
It has A new eHomeClientFunct.vbs and a new help database that inserts the right code. (the paren's).
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Postby TonyNo on Fri Feb 22, 2008 6:38 pm

I'll check this tonight. I do know that the formula I'm using does not return a CR or LF, :shock: but maybe another formula is that breaks things.
TonyNo
 
Posts: 351
Joined: Sat Mar 17, 2007 3:53 pm
Location: Illinois USA

Postby JakeBullet on Sat Feb 23, 2008 10:25 am

http://www.w3schools.com/vbscript/vbscript_ref_functions.asp

A nice little help file for VBS functions

Also just added TTS support. :lol:
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Postby TonyNo on Sat Feb 23, 2008 2:23 pm

Starting on this...

Switching to the HA screens, I see this:

=== 2/23/2008 7:37:40 AM ====================
--Desc: Error running script --> ON_SNAPIN_SWITCH -- Object doesn't support this property or method
--Line: 0
--Src: eHomeClient.modMain.SetScreen

I added no code there.


Wow. That CleanUp function fixed it!

Maybe check your g_oGbl.EH_PH_CALL_RETVAR code for stripping extra cr/lf's? I know, in this case, that there are none returned by the function I'm using...
Code: Select all
string( ph_getx10dt('Q2'), 'mm/dd/yy h:mm am/pm')


Fixing the issues also seemed to have cured the ON_SNAPIN_SWITCH problem from a few minutes ago.

I now have my audio page working correctly updating the play/pause button image!

Onward and upward!
TonyNo
 
Posts: 351
Joined: Sat Mar 17, 2007 3:53 pm
Location: Illinois USA

Postby JakeBullet on Sat Feb 23, 2008 2:35 pm

I did discover that is there was one bad function in the client VBS file then it would fail to load it.

=== 2/23/2008 7:37:40 AM ====================
--Desc: Error running script --> ON_SNAPIN_SWITCH -- Object doesn't support this property or method
--Line: 0
--Src: eHomeClient.modMain.SetScreen


So the above error is not a problem in this function but that eHome could not find that function.

I have now re-written the parsing routines so if it does find a bad function it logs it and will still load the rest of em. It will be in the next version!!!
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Postby JakeBullet on Sat Feb 23, 2008 2:38 pm

Maybe check your g_oGbl.EH_PH_CALL_RETVAR code for stripping extra cr/lf's? I know, in this case, that there are none returned by the function I'm using...


Remember, we are going through the socket server. PH does send extra info. (remember the header info) I am just removing the header stuff but leaving everything else intact because with this function, you can return recordsets and HTML formatted strings. I don't want to mess with those by stripping anything.
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Postby TonyNo on Sat Feb 23, 2008 5:22 pm

OK, that was actually one concern of mine.

Bug:
If you have two screens with the same description, things go bad.
TonyNo
 
Posts: 351
Joined: Sat Mar 17, 2007 3:53 pm
Location: Illinois USA

Postby TonyNo on Sat Feb 23, 2008 5:25 pm

Digging into this one...

=== 2/23/2008 11:28:09 AM ====================
--Desc: Type mismatch
--Line: 1530
--Src: eHomeScrnEditor.clsCtrls.Prep4Action
TonyNo
 
Posts: 351
Joined: Sat Mar 17, 2007 3:53 pm
Location: Illinois USA

Postby JakeBullet on Sat Feb 23, 2008 5:38 pm

TonyNo wrote:OK, that was actually one concern of mine.

Bug:
If you have two screens with the same description, things go bad.


Well... Don't do that!!!!

Same description or ID?
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

Postby JakeBullet on Sat Feb 23, 2008 5:40 pm

TonyNo wrote:Digging into this one...

=== 2/23/2008 11:28:09 AM ====================
--Desc: Type mismatch
--Line: 1530
--Src: eHomeScrnEditor.clsCtrls.Prep4Action


I think this is a bad control on one of your screens.
JakeBullet
Site Admin
 
Posts: 1102
Joined: Thu Mar 23, 2006 8:13 am

PreviousNext

Return to HA Stuff - Powerhome

Who is online

Users browsing this forum: No registered users and 1 guest



FREE FORUM Hosting by AtFreeForum. Create your Free WEB FORUM Hosting now!
GROUP DISCUSSION Features - Free FORUM HOSTING Directory Listing - DISCUSSION FORUM Terms of Service - FREE PHPBB Hosting Privacy
- FASHION ACCESSORIES