Results 1 to 4 of 4

Thread: Looking for more conditionals

  1. #1
    Join Date
    Apr 2006
    Posts
    3

    Default Looking for more conditionals

    I'm trying to create a voice announcement to tell me to take the trash out when a motion sensor is activated. I've got everything setup except I'm wanting a condition based on what day it is. What's with the lack of conditionals in Girder anyway? I have 3 conditionals to use and that's it.

    This is what I'm looking for:

    -Announcements
    --Trash Night
    ---Speak
    ---Group Broadcast:Living Room\Motion Sensor:ON
    ---Conditional (If today is Monday)

  2. #2
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    You don't necessarily need conditional nodes. Simply use a bit of Lua to do the processing and you can do all that as well.
    Ron
    No support through PM

  3. #3
    Join Date
    Mar 2003
    Location
    Arizona
    Posts
    519

    Default

    I agree with indyjason79...

    There needs to be less reliance on custom LUA to do simple If/Then conditionals - and schedules/timers are not easy or intuitive.

    Heck, there is a calendar component built-in to .NET and C classes... why not use it?

    There needs to be an easy way to have conditionals for items like...

    Day/Time/Month/Year (specific and reoccurring)
    Sunrise / Sunset (+ or - times)
    Device / Scene state
    Aaron
    ----------
    My Setup:
    XBMC Media Center, Whole-House Audio, Paradigm-Onkyo-Parasound-Velodyne, 65" Mits 1080p DLP, EventGhost, Homeseer

  4. #4
    Join Date
    May 2004
    Location
    Dallas, TX
    Posts
    1,125

    Default

    This is not a conditional however it should work for your needs.

    Paste this into a Script Action and assign the motion sensor event to it.
    Code:
    local dow = {
    	'Monday',
    	'Tuesday',
    	'Wednesday',
    	'Thursday',
    	'Friday',
    	'Saturday',
    	'Sunday',
    }
    
    local dt = date:now()
    if dow[dt.DayOfWeek] == 'Monday' then
    	Voice:Speak('Today is Monday')
    end
    I will look into adding to the Time of Day conditional for some extra stuff.
    Rick

    Girder 6.0 - Elk M1 Gold - JRMC 11.1 w/ M-Audio Delta 410 - NetRemote - BlueIris DVR
    Girder 6 Plugins - Elk M1/EZ8, Pushover Connector and more on the way.


    Visit My Showcase

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •