Author Topic: What am I doing wrong in this Custom Alert ??  (Read 3249 times)

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6558
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
What am I doing wrong in this Custom Alert ??
« on: July 02, 2014, 11:37:27 PM »
Dear WeatherCat tinkerers,

I had created a custom alert for my Outdoor cooling potential synthetic channel, but had never gotten around to writing one for when to close the windows.  So I went ahead and created a custom rule and an AppleScript to generate the Growl notification.  Well, the time came to close the windows and no alert.  The alert definitely didn't trigger since I have it set to send the email and no email was sent either.

Here is the custom alert:



All I'm trying to do is make sure that the alert is triggered only when the temperatures are warming and thus the Outdoor cooling potential is decreasing and this 3 test technique has worked fine for me on other custom alerts.

I found something else odd.  I wanted to test if the rule was correct and ran into an odd problem.  Given this rule I would need a test temperature less than 1.  However, when I tried to enter a number less then 1 into the test section, it would force the number back into an integer.  Here is my attempt to entire a real number:



When I try to enter a rate of change this is what happens to me:



The 0.1 is changed into a 0.

Since I couldn't get real values into the test, I changed the custom alert so that the range was between 2-0 and used 1 as my test value.  The test didn't return true even if my rate of change should have caused the alert to trigger.

So I'm confused.   Do I have the logic flipped somehow?  Any suggestions would be appreciated!

Cheers, Edouard  [cheers1]

WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2934
    • CW9739
    • ISCOTLAN25
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, soil/leaf station, extra temp stations, no U.V. WeatherLink IP.
Re: What am I doing wrong in this Custom Alert ??
« Reply #1 on: July 03, 2014, 09:33:40 PM »
Congrats Edouard - that's a bug in the tester in V2.0 (it's all new) - the alert processing isn't though, so I'm guessing the value jumped straight through your window. Tester will be [edit: is] fixed in next release - should make it easier to test/figure it out (try -1 for the delta).


Blicj11

  • Storm
  • *****
  • Posts: 4001
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.7 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: What am I doing wrong in this Custom Alert ??
« Reply #2 on: July 03, 2014, 11:28:08 PM »
Edouard, when Stu tweaks the tester, please post again. I am using the other half of your soon-to-be-matched set and I want to use this half too. Otherwise, my windows will be stuck open.
Blick


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6558
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
I'll widen the window. (Re: wrong in this Custom Alert ?? )
« Reply #3 on: July 04, 2014, 01:03:45 AM »
Howdy Stu and WeatherCat tinkerers,

Congrats Edouard - that's a bug in the tester in V2.0 (it's all new)

Phew! - that sure looked plenty weird!  :o

the alert processing isn't though, so I'm guessing the value jumped straight through your window. Tester will be [edit: is] fixed in next release - should make it easier to test/figure it out (try -1 for the delta).

Well, it went right through the alert again this morning.  So I'll widen the interval and see if I can it to trigger tomorrow morning.

Thanks Stu!   [tup]

Cheers, Edouard  [cheers1]

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6558
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Howdy WeatherCat tinkerers,

Finally this alert triggered as it was supposed to and my AppleScript Growl notification finally got a chance to display on queue.  However, I did a quick calculation and realized I was just lucky this morning.  Stu was 100% correct, my temperature range was much too narrow.  Even so, I had only widened the window to 0.5˚ F.  However, this morning the temperature was rising at over 7˚ F per hour.  Since my WeatherCat install is sampling every 5 minutes, the temperature was increasing by 0.58˚ F per every 5 minute interval.  So it still could have jumped completely over my interval.  Since the rate of climb could be even more drastic on very hot days, I guess I should nudge my interval even wider.

Interesting lesson about how to configure these custom alerts.

Cheers, Edouard  [cheers1]

Blicj11

  • Storm
  • *****
  • Posts: 4001
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.7 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: What am I doing wrong in this Custom Alert ??
« Reply #5 on: July 06, 2014, 01:39:39 AM »
Edouard:

I have been playing around with this as well. There is a button for testing a custom alert. When I open that test window and enter data that will trigger the alert, I can get it to trigger the alert but it won't email me. When I press the Email Test button, nothing happens. I receive other alerts (not custom) for things like freeze warning, etc. What do I need to check to see why the custom alert won't send an email?

Thanks.
Blick


WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2934
    • CW9739
    • ISCOTLAN25
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, soil/leaf station, extra temp stations, no U.V. WeatherLink IP.
Re: What am I doing wrong in this Custom Alert ??
« Reply #6 on: July 06, 2014, 08:28:08 AM »
The Email test button isn't wired up and won't do anything :)

Blicj11

  • Storm
  • *****
  • Posts: 4001
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.7 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: What am I doing wrong in this Custom Alert ??
« Reply #7 on: July 06, 2014, 02:38:29 PM »
Well, that would explain it.
Blick