The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

script problems...


  • Subject: script problems...
  • From: Adrian <yahoo@xxxxxxxxxxxxxx>
  • Date: Thu, 25 Aug 2005 13:15:19 +0100

Hi

have got the dawndusk module bit i cant get the scripts to work for it,
what i am doing wrong? I had some of tonyt's code which i modified (as
change the tonyt_dawn... to johnb_dawn...) as my dawndusk module is set
with johnb.  I stripped the code so i could see what if any sub was
being hit (the heartbeat should be as you get one every 5 min) but none
of the global variables are being set suggesting this script isnt being
looked at. In the monitor, the heartbeat comes through as
"johnb-dawndusk.dawndusk", the script below is located in
JOHNB_DAWNDUSK_DAWNDUSK.xpl, what am i missing


thanks in advance

Adrian


' source script for JOHNB-DAWNDUSK.DAWNDUSK
Sub johnb_dawndusk_dawndusk_Trigger(xPLMessage)

' this comes from a state change
sys.setting("test1")="hit"

End Sub

Sub johnb_dawndusk_dawndusk_Status(xPLMessage)

' this comes from a status request
sys.setting("test2")="hit"

End Sub


Sub johnb_dawndusk_dawndusk_Heartbeat(xPLMessage)

' this comes from a heartbeat message
sys.setting("test3")="hit"

End Sub





xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.