Author Topic: Custom graph anomaly  (Read 3732 times)

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • 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 Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Custom graph anomaly
« on: March 29, 2022, 09:29:27 PM »
I have a custom graph that displays a weird blip I cannot explain. The graph displays accumulated wind run. At the beginning of most, but not all, hours, it displays an inaccurate increase in wind run, followed by a decrease back to the accurate amount. See the attached screenshot.

Any ideas?
Blick


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Something with STAT$ query? (Re: Custom graph anomaly)
« Reply #1 on: March 29, 2022, 10:15:42 PM »
Dear Blick and WeatherCat troubleshooters,

I have a custom graph that displays a weird blip I cannot explain. The graph displays accumulated wind run. At the beginning of most, but not all, hours, it displays an inaccurate increase in wind run, followed by a decrease back to the accurate amount. See the attached screenshot.

I have not observed exactly the phenomenon you are seeing, but I graph the accumulated wind run weekly and instead see a puzzling "blip" at the very start of the week.  Here is an example:



Here is the AppleScript I use for the synthetic channel:

Code: [Select]
-- Channel: Weekly Wind Run

set Query to "STAT$WINDRUN:TOTAL:THISWEEK$"
set result to QueryResult

I don't see anything that would explain the blip in the AppleScript code unless it has something to do with the STAT$ query itself.

In my case I was wondering if WeatherCat has an issue with the transition from one week to the next.  I'll have to see where the wind run ends up to see if that has something to do with the blip.

Could you share with us the exact AppleScript in your synthetic channel so that we can attempt to reproduce it?

Cheers, Edouard

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • 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 Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: Custom graph anomaly
« Reply #2 on: March 29, 2022, 10:52:40 PM »
Here is my Apple script.

Code: [Select]
-- This Query tracks daily wind run and resets each day
set Query to "STAT$WINDRUN:TOTAL:TODAY$"
set result to QueryResult
Blick


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Let me run it for a day. (Re: Custom graph anomaly)
« Reply #3 on: March 30, 2022, 11:39:25 PM »
Dear Blick and WeatherCat troubleshooters,

Here is my Apple script.

Okay, I've replicated your synthetic channel and graph.  Let me run it for a day to see if it repeats what you are seeing.

Cheers, Edouard

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • 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 Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: Custom graph anomaly
« Reply #4 on: March 31, 2022, 01:22:43 AM »
Thank you my friend. Hope you are feeling better each better.
Blick


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Alas, seeing it as well. (Re: Custom graph anomaly)
« Reply #5 on: March 31, 2022, 11:04:41 PM »
Dear Blick and WeatherCat troubleshooters,

Okay, I've replicated your synthetic channel and graph.  Let me run it for a day to see if it repeats what you are seeing.

24 hours have passed and the answer is . . . . . . . .



So it isn't your imagination.  Alas, I can reproduce it as well.  We will have to wait for Stu to take a look at this and see if he can understand what is going on.

Cheers, Edouard

xairbusdriver

  • Storm
  • *****
  • Posts: 3131
Re: Custom graph anomaly
« Reply #6 on: April 01, 2022, 02:50:49 AM »
Looks like something is triggering a 1mph signal on nearly every hour. Is there a wind event that occurs during the previous hour but that is computed for Wind Run at the end of that hour? ::) I’m not sure how/when a Wind Run value is created/computed. I use that only in a custom gauge.
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • 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 Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: Alas, seeing it as well. (Re: Custom graph anomaly)
« Reply #7 on: April 01, 2022, 04:06:45 PM »
So it isn't your imagination.  Alas, I can reproduce it as well.  We will have to wait for Stu to take a look at this and see if he can understand what is going on.

Edouard, a sincere thank you for running this script. The hourly blip is not a new thing; this has been happening for several years. I just never paid any attention to it.
Blick


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Restart WeatherCat? (Re: Custom graph anomaly)
« Reply #8 on: April 01, 2022, 09:32:04 PM »
Dear X-Air, Blick, and WeatherCat troubleshooters,

I had to reboot my Mac and had some troubles with this graph.  It "lost" the interval to graph the data.  When I straightened all that out, the hourly anomaly disappeared:



You might try simply restarting WeatherCat during the day sometime and see if the anomaly persists.  That might be a clue for Stu to untangle what the issue is.

Cheers, Edouard

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • 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 Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: Custom graph anomaly
« Reply #9 on: April 01, 2022, 09:48:16 PM »
Thanks for the suggestion, but restarting WC  did not clear out my not quite every hourly anomaly.
Blick


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Fuss with window settings? (Re: Custom graph anomaly)
« Reply #10 on: April 02, 2022, 09:43:52 PM »
Dear Blick and WeatherCat troubleshooters,

Thanks for the suggestion, but restarting WC  did not clear out my not quite every hourly anomaly.

Strangely enough, for the second day I am no longer seeing the blips:



The other thing I did was to fuss with the window settings.  In particular I changed the period of the anchored data back to a day.  You might try changing the period and changing it back to a day and see what that does.   Even if it isn't a cure, it might give Stu some clues about where the problem lies in the code.

Cheers, Edouard

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • 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 Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: Custom graph anomaly
« Reply #11 on: April 03, 2022, 03:40:56 PM »
That's weird. I see 'em every day, but thanks for checking up on my script. I've seen it on two different iMacs over the past few years.
Blick


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
They're BAAACK . . . . (Re: Custom graph anomaly)
« Reply #12 on: April 04, 2022, 10:38:40 PM »
Dear Blick and WeatherCat troubleshooters,

That's weird. I see 'em every day, but thanks for checking up on my script. I've seen it on two different iMacs over the past few years.

Alas, after a while they returned and my attempt to make the go away has failed.  Switching to scrolling data at 3 day interval makes them go away.  However, even after a WeatherCat restart, returning to anchored data, and a 1 day interval brings back the dreaded tick marks.

So I suppose we will have to wait for Stu to scrape up the time to look into this.

Cheers, Edouard

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • 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 Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: Custom graph anomaly
« Reply #13 on: April 05, 2022, 12:37:39 AM »
Thank you so much for taking the time to play with this and see what you could learn. You have gone beyond the call of duty and I am grateful for your efforts.
Hope you are feeling better too!
Blick