Real Basic Framework Error

Hendrik van Eeden hvaneeden at comcast.net
Wed Feb 24 10:55:21 EST 2016


Rob,

Now you have me thinking!  This script had been running for years, but the interface had been Lynx PLC and it always did what  wanted  if the first ‘if' is true is falls thru the second.  If it is true it checks the second ‘if’ is that is true then it falls through, so it only falls thru when both are not true.  So the 'create event’ only gets executed if it is not Sunday or if it is not Saturday, so only Mon, Tues, Wed. Thur, Frid.  This may be a little convoluted:-)


Henk



> On Feb 24, 2016, at 10:29 AM, Rob Lewis <rob at whidbey.com> wrote:
> 
> Not an answer to your problem, but isn’t there an error in your logic? “Not Sunday OR Not Saturday” is always going to be TRUE. By DeMorgan’s Theorem, this equates to “Not (Sunday AND Saturday)”, and it can never be both Saturday and Sunday at the same time. 
> 
> I think you want Not (Sunday OR Saturday). Equivalently, Not Sunday AND Not Saturday. 
> 
>> On Feb 24, 2016, at 06:16 , Hendrik van Eeden <hvaneeden at comcast.net <mailto:hvaneeden at comcast.net>> wrote:
>> 
>> Hi James,
>> 
>> The snippet below showed up in my log this morning.  There is a script that runs at 7:00 AM that turns on a Vera unit.
>> if weekday of (current date) is not Sunday or weekday of (current date) is not Saturday then
>> 	if (daylight) is true then
>> 		dim "HueLamp 3: Hall Light" to 50
>> 		create event "HueLamp Hall Light off" that turnsoff unit "HueLamp 3: Hall Light" in 75 * minutes
>> 	else
>> 		write log "Hall lights were not needed"
>> 	end if
>> end if
>> The “HueLamp 3: Hall Light” is the vera unit.
>> This is the log that I assume is associated with this script.  At the end the Vera interface is restarted successfully.
>> Can you tell me what this means?
>> 
>> 2/24/16 6:59:43 AM END OF LOG DAILY DATA SCRIPT
>> 2/24/16 6:59:43 AM END OF HOURLY SCRIPT
>> 2/24/16 7:00:00 AM Address1 not set, default to 128
>> 2/24/16 7:00:00 AM Address2 not set, default to 128
>> 2/24/16 7:00:00 AM Address1 not set, default to 128
>> 2/24/16 7:00:00 AM Address2 not set, default to 128
>> 2/24/16 7:00:00 AM Vera: error: NilObjectException: global unhandled exception
>> 2/24/16 7:00:00 AM Vera: RaiseNilObjectException
>> 2/24/16 7:00:00 AM Vera: cXTensionCommand.GetMulti%s%o<cXTensionCommand>s
>> 2/24/16 7:00:00 AM Vera: cVera.HandleXTensionCommand%b%o<cVera>o<cXTensionCommand>
>> 2/24/16 7:00:00 AM Vera: CommandSupportModule.HandleIncomingCommand%%o<cXTensionCommand>
>> 2/24/16 7:00:00 AM Vera: cXTensionDeviceSocket.Event_DataAvailable%%o<cXTensionDeviceSocket>
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$2055
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$1038
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$1557
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$4770
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$598
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$5354
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$4578
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$4577
>> 2/24/16 7:00:00 AM Vera: RuntimeDoEvents
>> 2/24/16 7:00:00 AM Vera: ConsoleApplication.DoEvents%%o<ConsoleApplication>i4
>> 2/24/16 7:00:00 AM Vera: App.Event_Run%i4%o<App>A1s
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$744
>> 2/24/16 7:00:00 AM Vera: Delegate.Invoke%%
>> 2/24/16 7:00:00 AM Vera: ConsoleApplication._CallFunctionWithExceptionHandling%%o<ConsoleApplication>p
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$4576
>> 2/24/16 7:00:00 AM Vera: RuntimeRun
>> 2/24/16 7:00:00 AM Vera: REALbasic._RuntimeRun
>> 2/24/16 7:00:00 AM Vera: _Main
>> 2/24/16 7:00:00 AM Vera: main
>> 2/24/16 7:00:00 AM Vera:
>> 2/24/16 7:00:00 AM Vera: RaiseNilObjectException
>> 2/24/16 7:00:00 AM Vera: cXTensionCommand.GetMulti%s%o<cXTensionCommand>s
>> 2/24/16 7:00:00 AM Vera: cVera.HandleXTensionCommand%b%o<cVera>o<cXTensionCommand>
>> 2/24/16 7:00:00 AM Vera: CommandSupportModule.HandleIncomingCommand%%o<cXTensionCommand>
>> 2/24/16 7:00:00 AM Vera: cXTensionDeviceSocket.Event_DataAvailable%%o<cXTensionDeviceSocket>
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$2055
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$1038
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$1557
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$4770
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$598
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$5354
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$4578
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$4577
>> 2/24/16 7:00:00 AM Vera: RuntimeDoEvents
>> 2/24/16 7:00:00 AM Vera: ConsoleApplication.DoEvents%%o<ConsoleApplication>i4
>> 2/24/16 7:00:00 AM Vera: App.Event_Run%i4%o<App>A1s
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$744
>> 2/24/16 7:00:00 AM Vera: Delegate.Invoke%%
>> 2/24/16 7:00:00 AM Vera: ConsoleApplication._CallFunctionWithExceptionHandling%%o<ConsoleApplication>p
>> 2/24/16 7:00:00 AM Vera: rbframework.dylib$4576
>> 2/24/16 7:00:00 AM Vera: RuntimeRun
>> 2/24/16 7:00:00 AM Vera: REALbasic._RuntimeRun
>> 2/24/16 7:00:00 AM Vera: _Main
>> 2/24/16 7:00:00 AM Vera: main
>> 2/24/16 7:00:00 AM Vera:
>> 2/24/16 7:00:01 AM Interface Vera has been unexpectedly disconnected from XTension.
>> 2/24/16 7:00:01 AM Interface "Vera" has quit: (with no message) code: 0
>> 2/24/16 7:00:05 AM received BRIGHT for address F4 from CM11-Closet
>> 2/24/16 7:00:05 AM received BRIGHT for address F4 from CM11-Closet
>> 2/24/16 7:00:06 AM Retry connection to interface "Vera". Tries left: 9
>> 2/24/16 7:00:06 AM INTERFACE INIT SCRIPT
>> 2/24/16 7:00:06 AM THE INTERFACE IS : Vera
>> 2/24/16 7:00:06 AM END OF INTERFACE SCRIPT
>> 2/24/16 7:00:06 AM Vera: Vera ISF connecting...
>> 2/24/16 7:00:06 AM Vera: vera is using a password
>> 
>> 
>> 
>> 
>> Henk
>> 
>> 
>> 
>> _______________________________________________
>> XTensionList mailing list
>> XTensionList at machomeautomation.com <mailto:XTensionList at machomeautomation.com>
>> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist
> 
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20160224/4f7ae151/attachment.html>


More information about the XTensionList mailing list