Announcement

Collapse
No announcement yet.

Daily Reminders

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wadenut
    replied
    I think I can do this. It will require me to include a conversion to add the extra field to an existing file. This will likely be automatic so no one loses their existing data.

    Leave a comment:


  • Loup
    replied
    Originally posted by Wadenut View Post
    I'll need to give that some thought.
    The problem here is that such a change is going to make existing data files obsolete.
    Maybe just a hook that disables the reminder, it is just an idea.

    Leave a comment:


  • Wadenut
    replied
    Originally posted by Loup View Post
    A small question: I remember the event that are only in the summer or else only the winter. When reminiscent of summer must end, I must simply remove the plugin and redo one by one when summer is back. Would it be possible to have an end date for certain event (Recalls)? thank you
    I'll need to give that some thought.
    The problem here is that such a change is going to make existing data files obsolete.
    Last edited by Wadenut; February 5, 2015, 04:55 AM.

    Leave a comment:


  • Loup
    replied
    A small question: I remember the event that are only in the summer or else only the winter. When reminiscent of summer must end, I must simply remove the plugin and redo one by one when summer is back. Would it be possible to have an end date for certain event (Recalls)? thank you

    Leave a comment:


  • Wadenut
    replied
    Originally posted by Loup View Post
    Hello, still me I'm a fan of your work. Quick question, I noticed that it has a event (SpeakToDayVR) is Functional ?? If yes have can change the speaker ??
    thank you again
    The script, through that event, will respond by reading the current days reminders.
    If the event is triggered through the speaker client VR, the script will respond using the Speaker client.
    If triggered via Phone VR, it will respond over the phone line only.
    There is actually, at this point, no distinction between one speaker client or another. I don't believe it is possible to know exactly which, of multiple, clients may have triggered the event.

    Leave a comment:


  • Loup
    replied
    Hello, still me I'm a fan of your work. Quick question, I noticed that it has a event (SpeakToDayVR) is Functional ?? If yes have can change the speaker ??
    thank you again

    Leave a comment:


  • Wadenut
    replied
    v2.14 is available.
    Fixes a few issues which were peculiar to HS3. Minor changes to HS2 version to sustain compatibility of the body of the script to both versions. Removed a bit of debugging code which some may have previously noticed.
    In the event that the \Data\DailyReminders\ folder and/or DailyReminders.csv data file does not exist or has been deleted, it will be created the first time the web interface is run. This function isn't included in the script, so it is possible, however unlikely, for an error to be thrown until the webpage is run and creates the folder and data file. This is by design, as without a data file to act on, there's nothing for the script to do anyway.

    HS3 only: The hs.DeviceLastChange functions, as of HS 3.0.0.149 do not return valid data. This information is used to update the device string once per day so that all reminders for that day are included. Until this bug is fixed, the Date of the last update to the "Todays Reminders" device will be stored in the Device Value field. It would be advisable to avoid defining Status/Graphic pairs for this device until the situation has changed, or to use a value range of 0-99999999 to display an icon if desired. The script will switch to using DeviceLastChange once some future version of HS3 returns valid data. The DeviceValue is not used otherwise for any purpose by the script.

    Leave a comment:


  • Wadenut
    replied
    12:01 AM works!
    Will test these changes under HS2 as well, then update the ASP for both to create the data directory if not found, and update the doc before upload.

    Leave a comment:


  • Wadenut
    replied
    hmmm. Yet another HS3 bug?
    The event is supposed to run every day at midnight to update the "Todays Reminders" device, and IS scheduled to do so, but just doesn't run. Thus, left alone, no reminder will ever trigger. Every other time of day does appear to run properly. Sooooo... More testing; with another test event scheduled for midnight; and compromising here so that this event runs at 12:01 AM instead. Will this work? Tune in tomorrow.
    Once again, this same method works properly under HS2. Is HS3 really an improvement???

    Leave a comment:


  • Wadenut
    replied
    I believe I have this problem licked. I only get one chance a day however to see the results.

    For the time being, for HS3 only, the last change date/time will have to be stored in the Device Value. Once HST fixes the problem with DeviceLastChange, the script should automatically switch back to using it without requiring another update. In the meantime however this means that any Value/Graphic/Status pairs assigned to the "Todays Reminders" device won't be of any use.
    I need to test these changes in both HS2 and HS3 for a few days before posting, as both share about 99% of the code. There won't be any functional changes to the HS2 version.

    Leave a comment:


  • Wadenut
    replied
    The problem is with HS3 only. It is NOT a problem with the script.

    In HS3, both hs.DeviceLastChange and hs.DeviceLastChangeRef are supposed to return the Date and Time the specified device last changed status. This is not the case.
    Both are returning only the Time, not the date.
    Correction: HS3 always returns 12:00:00 AM. Nothing valid at all in fact.

    I've entered a bug report in Bugzilla, but in the meantime, I'll see what I can do to get around this problem. This isn't the first time I've run into this type of problem with HS3.

    Bug 2514

    Edit: I have a workaround. My devices are already populated for today, so I'll have to wait a day to be sure this fix actually handles the problem as expected before posting the update.
    Last edited by Wadenut; January 4, 2015, 08:21 AM.

    Leave a comment:


  • Wadenut
    replied
    I am aware there may be something going on with V74 (Today's Reminders). Right now though as I look at it, it's fine. I have three items listed for today. Other times when I think there ought to be something there, there isn't. It's likely something I broke in adapting to HS3. I'll be looking for the problem, whatever it may be, so stay tuned.
    Right now though, I've been concentrating on "Random Lights".

    Leave a comment:


  • Loup
    replied

    Leave a comment:


  • Wadenut
    replied
    I'll keep that in mind. When I fix the directory issue, I'll update the doc to "suggest" deleting the examples first.

    Leave a comment:


  • Loup
    replied
    Ok, I think I've found. I kept your CSV file, but with me the date is different format, I start all the CSV file with my dates, it seems to work.
    My dates are: 2014-12-27

    I'll expect tomorrow to see if everything works. again THANK YOU

    Leave a comment:

Working...
X