The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: Re: Re: SlimP3 - XPL = Homeseer 2


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

RE: script problems...



Hi Adrian,

> 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
<snip>
> Sub johnb_dawndusk_dawndusk_Heartbeat(xPLMessage)
>
> ' this comes from a heartbeat message
>     sys.setting("test3")="hit"
>
> End Sub

Instead of using sys.setting, use sys.value.

So:
sys.value("test3")="hit"

You should only use sys.setting to access the special variables Mode and
Period.
For any other global variables, just use sys.value(global_name).

HTH - let us know if that fixes the problem.

Regards,

John



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.