Author Topic: Program Logic Version 7.45 is available  (Read 96784 times)

Offline flyveleder

  • Full Member
  • ***
  • Posts: 191
  • Karma: +5/-14
Re: Program Logic Version 5.5 is available
« Reply #15 on: December 29, 2013, 07:49:28 am »
You need a set of paratheses more ...

_OutsideLight      tNight and ((tNight; RHome) or (tNight; AHome))

(in my logic anyway)

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Program Logic Version 5.5 is available
« Reply #16 on: December 29, 2013, 08:48:05 am »
@flyveleder
You are exactly right!

@ric
Nothing changed relative to this in any version of PLEG

Offline Ric

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +1/-0
Re: Program Logic Version 5.5 is available
« Reply #17 on: December 29, 2013, 01:05:16 pm »
Oh, yes I see thanks.
I must be getting blind.

Sent from my Nexus 4 using Tapatalk


Offline Rich1983

  • Full Member
  • ***
  • Posts: 202
  • Karma: +1/-0
Re: Program Logic Version 5.5 is available
« Reply #18 on: January 10, 2014, 06:43:02 pm »
Hi Richard

Same problem has happened again its taking very long time to load.

I am already running scenes with the PLEG and i have double checked the Core is installed.

I have also refreshed my browser

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Program Logic Version 5.5 is available
« Reply #19 on: January 11, 2014, 08:02:59 am »
This is a bad error from MCV .. it really means it failed to load.
The only way to fix this is to refresh the browser.
Are you running remotely or on the LAN ?

Offline Rich1983

  • Full Member
  • ***
  • Posts: 202
  • Karma: +1/-0
Re: Program Logic Version 5.5 is available
« Reply #20 on: January 11, 2014, 08:54:00 am »
This is a bad error from MCV .. it really means it failed to load.
The only way to fix this is to refresh the browser.
Are you running remotely or on the LAN ?

Over LAN

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Program Logic Version 5.5 is available
« Reply #21 on: January 11, 2014, 11:13:49 am »
It's also possible that there is an error ...
Can you use Google Chrome Browser ?
If so do the following:
1) Open the PLEG Control Panel
2) With the Right Buttom Mouse Menu Select Instpect Element
3) In the new Window select "Console"
4) Now try to open the PLEG Inputs
5) The console window should give some type of error message why it won't open.

     

Offline Rich1983

  • Full Member
  • ***
  • Posts: 202
  • Karma: +1/-0
Re: Program Logic Version 5.5 is available
« Reply #22 on: January 11, 2014, 11:27:28 am »
It's also possible that there is an error ...
Can you use Google Chrome Browser ?
If so do the following:
1) Open the PLEG Control Panel
2) With the Right Buttom Mouse Menu Select Instpect Element
3) In the new Window select "Console"
4) Now try to open the PLEG Inputs
5) The console window should give some type of error message why it won't open.

014-01-11 16:25:10: Firing on_overview_changed cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:10: --- Overview changed, update tab content_get_overview_scenes cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:10: Parsing ud finished cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:10: end parsing user_data cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:13: Including script: http://192.168.1.103/port_3480/J_ProgramLogicC.js cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:13: Including script: http://192.168.1.103/port_3480/J_ProgramLogicEG.js cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:13: Including script: http://192.168.1.103/port_3480/J_ProgramLogicC.js cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:13: Icon for device could not be recovered from static_data cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:13: setting icon error: TypeError: Cannot read property 'Service' of undefined cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:13: add keep cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:17: setting icon error: TypeError: Cannot read property 'Service' of undefined cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:35: start parsing lu_status cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:35: Starting parseLu. cpanel_data.js?*1.5.622-1-07054035*:13652
2014-01-11 16:25:35: 16:25:35:616 end parsing lu_status cpanel_data.js?*1.5.622-1-07054035*:13652
   

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Program Logic Version 5.5 is available
« Reply #23 on: January 11, 2014, 02:32:11 pm »
Well it looks like the code was loaded.
I do not see any obvious errors.
If you create a new empty PLEG do you see the same?

Offline Rich1983

  • Full Member
  • ***
  • Posts: 202
  • Karma: +1/-0
Re: Program Logic Version 5.5 is available
« Reply #24 on: January 12, 2014, 05:29:48 pm »
Well it looks like the code was loaded.
I do not see any obvious errors.
If you create a new empty PLEG do you see the same?

Still the same

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Program Logic Version 5.6 is available
« Reply #25 on: January 22, 2014, 07:49:32 am »
Version 5.6 is available
  • Added Support for recording the Off Time Stamps of Triggers, Schedules and Conditions. For Device Properties, it records the previous transition.
  • Add new # and #!  Unary Operators ... They returns the time On/Off Stamp respectively  of the the following argument.
  • In a Sequence Expression you can use the !Token to reference the Off Time Stamp of the following argument (Token in this example).
    In conjunction with a self start timer ... this becomes very useful to have a delayed action, with one second precision.

    Trigger                 SomeExpression to start the delayed action
    DelayedAction       Trigger and (Trigger; !SelfStartTimer)

    The action for Trigger starts the timer called SelfStartTimer. When it expires ... DelayedAction will fire.
  • Create the concept of a State Variables.
    For Conditions that are named:

    StateName$StateVal1
    StateName$StateVal2
    StateName$StateValN

    When  any StateName$StateValN becomes true,  the variable StateName gets assigned value of StateValN
    You can use StateName in your condition expressions.

    The following example cycles between 3 states at the specified interval:
    Interval  -- Some interval timer!

    State$s1    Interval and (State eq "s3") and (State; Interval)
    State$s2    Interval and (State eq "s1") and (State; Interval)
    State$s3    Interval and (State eq "s2") and (State; Interval)

    Without the (State;Interval) in this example,  it would cycle through each state during successive evaluation of the conditions during the same interval.
    This only allows one state change per interval.
  • Fixed Bug that caused report to fail sometimes.
  • Status Report Now Reports Off Time Stamps and State Variables.
  • Reports with NOW variables will now work correctly.

Offline flyveleder

  • Full Member
  • ***
  • Posts: 191
  • Karma: +5/-14
Re: Program Logic Version 5.6 is available
« Reply #26 on: January 22, 2014, 12:15:25 pm »
Great! Thanks :-)

Offline Aaron

  • Hero Member
  • *****
  • Posts: 1985
  • Karma: +61/-193
Re: Program Logic Version 5.6 is available
« Reply #27 on: January 22, 2014, 05:19:08 pm »
Richard,
If I want to write current time to a Variable Container, does {NOW} work yet for Actions?  Or is there a way to use the change time of the Variable Container and place it in the Action to write the time to that container?

Trying to have a Variable Container log the times for entry doors - for security reasons, and for automation of stuff.  Placing in a variable container allows the users to see the times the doors were last used, which is good for a few other things too... like easily tracking kids :)

thanks

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +763/-142
Re: Program Logic Version 5.6 is available
« Reply #28 on: January 22, 2014, 05:57:42 pm »
In an action that would be: {(#NOW)}

Offline clippermiami

  • Hero Member
  • *****
  • Posts: 1391
  • Karma: +27/-6
Re: Program Logic Version 5.6 is available
« Reply #29 on: January 22, 2014, 06:42:47 pm »
I upgraded to 5.6 today about 1PM.

A schedule that has been working perfectly suddenly changed behavior. The schedule runs from Sunset-1 Hour to 04:00 and is intended to a) disable a motion detector  and cancel a lights off timer during that period then re-enable them at 04:00 every morning.

Immediately after the update the UI showed that the schedule had executed as if it were Sunset-1. I entered the PLEG and hit the "do it now" button to try to get the schedule back on track which it looked like it did. At Sunset-1 the schedule failed to execute. So I manually ran it again and it disabled to motion detector and turned on the lights but it did NOT clear the lights off timer.

Attached is the current Status
Two Vera Plus UI7 Linked via HTTP, 90+ Devices. PlugIns: PLEG, DSC, Blue Iris, MySensors,  AutoVera, ImperiHome, VeraAlerts, EventWatcher