Heyya to you all !
Something to fix !
Lemme explain all of this
We have 5 speakers installed on our AB8SS lets say they are all named "1" to "5".
Our use in "5" don't want to have the normal radio that is coming through our speakers, so we want it to be always off BUT when someone call we want it to be on since we announce it through those speakers.
I tried many thing with those Savestate and Restorestate function, but I seems to be unable to make any of those work properly.
Soo... right now, 1,2,3,4 are on, 5 is off. When someone call everyone get the call info, thats top notch. When the call infos stop, each speakers get to on.
Heres our script when someone calls us, it activates Yacseer
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR><TD class=tablecellscript width=160 noWrap align=right></TD><TD class=tablecellscript align=left>
SPEAKON_GENERAL.VB
Public Sub Main(ByVal strDeviceRef As Object)
hs.plugin("AB8SS").SaveSpkrState()
hs.plugin("AB8SS").InputAB("A") //our input to get the callers id
hs.plugin("AB8SS").AllSpkrOn() //All speakers for call
hs.plugin("AB8SS").SpkrOff("spk-entree")
End Sub
SPEAK_END.VB
Public Sub Main(ByVal strDeviceRef As Object)
hs.plugin("AB8SS").AllSpkrOn()
hs.plugin("AB8SS").InputAB("B") //our input for radio
hs.plugin("AB8SS").RestoreSpkrState() //trying "ON" all but the 5
End Sub
Do you see something that shouldnt be done this way ?
Thanks for your time
Something to fix !
Lemme explain all of this
We have 5 speakers installed on our AB8SS lets say they are all named "1" to "5".
Our use in "5" don't want to have the normal radio that is coming through our speakers, so we want it to be always off BUT when someone call we want it to be on since we announce it through those speakers.
I tried many thing with those Savestate and Restorestate function, but I seems to be unable to make any of those work properly.
Soo... right now, 1,2,3,4 are on, 5 is off. When someone call everyone get the call info, thats top notch. When the call infos stop, each speakers get to on.
Heres our script when someone calls us, it activates Yacseer
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR><TD class=tablecellscript width=160 noWrap align=right></TD><TD class=tablecellscript align=left>
speakon_general.vb
</TD></TR></TBODY></TABLE><TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center><TBODY><TR><TD class=tablecellwav width=160 noWrap align=right>Play WAV and wait:</TD><TD class=tablecellwav align=left>doorbell.wav</TD></TR></TBODY></TABLE>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center><TBODY><TR><TD class=tablecellhstouch_server width=160 noWrap align=right>HSTouch Server:</TD><TD class=tablecellhstouch_server colSpan=8 align=left>Set the text property of an element:
Client: DomoNOD on DomoNOD
Element: main:talker
URL: http://192.168.2.5:81/talking.html</TD></TR></TBODY></TABLE>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center><TBODY><TR><TD class=tablecellscript width=160 noWrap align=right>Run script:</TD><TD class=tablecellscript align=left>&hs.speak hs.plugin("ROC-Rnd").random("callerid"), true, "domonod:*"</TD></TR></TBODY></TABLE>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center><TBODY><TR><TD class=tablecellwait width=160 noWrap align=right>Wait:</TD><TD class=tablecellwait align=left>10 seconds</TD></TR></TBODY></TABLE>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center><TBODY><TR><TD class=tablecellhstouch_server width=160 noWrap align=right>HSTouch Server:</TD><TD class=tablecellhstouch_server colSpan=8 align=left>Set the text property of an element:
Client: DomoNOD on DomoNOD
Element: main:talker
URL: http://192.168.2.5:81/standby.html</TD></TR></TBODY></TABLE>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center><TBODY><TR><TD class=tablecellscript width=160 noWrap align=right>Run script:</TD><TD class=tablecellscript align=left>speak_end.vb</TD></TR></TBODY></TABLE>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%"><TBODY><TR><TD class=tablecellhstouch_server width=160 noWrap align=right></TD><TD class=tablecellhstouch_server colSpan=8 align=left><TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center><TBODY><TR><TD class=tablecellhstouch_server width=160 noWrap align=right>HSTouch Server:</TD><TD class=tablecellhstouch_server colSpan=8 align=left>Set the text property of an element:
Client: DomoNOD on DomoNOD
Element: main:talker
URL: http://192.168.2.5:81/talking.html</TD></TR></TBODY></TABLE>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center><TBODY><TR><TD class=tablecellscript width=160 noWrap align=right>Run script:</TD><TD class=tablecellscript align=left>&hs.speak hs.plugin("ROC-Rnd").random("callerid"), true, "domonod:*"</TD></TR></TBODY></TABLE>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center><TBODY><TR><TD class=tablecellwait width=160 noWrap align=right>Wait:</TD><TD class=tablecellwait align=left>10 seconds</TD></TR></TBODY></TABLE>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center><TBODY><TR><TD class=tablecellhstouch_server width=160 noWrap align=right>HSTouch Server:</TD><TD class=tablecellhstouch_server colSpan=8 align=left>Set the text property of an element:
Client: DomoNOD on DomoNOD
Element: main:talker
URL: http://192.168.2.5:81/standby.html</TD></TR></TBODY></TABLE>
<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%" align=center><TBODY><TR><TD class=tablecellscript width=160 noWrap align=right>Run script:</TD><TD class=tablecellscript align=left>speak_end.vb</TD></TR></TBODY></TABLE>
Simulate a Press of an Element:
Client: DomoNOD on DomoNOD
Element: main:Label 021
</TD></TR></TBODY></TABLE>Client: DomoNOD on DomoNOD
Element: main:Label 021
SPEAKON_GENERAL.VB
Public Sub Main(ByVal strDeviceRef As Object)
hs.plugin("AB8SS").SaveSpkrState()
hs.plugin("AB8SS").InputAB("A") //our input to get the callers id
hs.plugin("AB8SS").AllSpkrOn() //All speakers for call
hs.plugin("AB8SS").SpkrOff("spk-entree")
End Sub
SPEAK_END.VB
Public Sub Main(ByVal strDeviceRef As Object)
hs.plugin("AB8SS").AllSpkrOn()
hs.plugin("AB8SS").InputAB("B") //our input for radio
hs.plugin("AB8SS").RestoreSpkrState() //trying "ON" all but the 5
End Sub
Do you see something that shouldnt be done this way ?
Thanks for your time
Comment