Author Topic: Weathercat vs iMac sleep  (Read 4979 times)

jamesmb

  • Calm
  • *
  • Posts: 6
  • Station Details: Davis VP2 wireless
Weathercat vs iMac sleep
« on: September 08, 2013, 09:14:58 AM »
I've run into the problem that when my Mac goes to sleep after a period of inactivity then I get flat lines in my WeatherCat data rather than using the datalogger data.

The basic issue is that Weathercat is designed to ask my Davis VP2 for the data as per the schedule in Weathercat, it only falls back to the datalogger cache of data if Weathercat is not running. If it is running and the Mac sleeps it doesn't get any data and interpolates with a flat line. If it isn't running (for more than a half hour) and doesn't get data it uses historical data from the datalogger cache.

One solution outlined here is to create an iCal alarm to run an Automator script to shutdown Weathercat before a scheduled sleep.
The Other solution is to stop the Mac from sleeping

I have tried a variation on the first - not to run Weathercat in the background (heresy I hear you cry) - but to use the iCal alarm to run an Automator job that starts Weathercat, waits for four mins and then stops WeatherCat again. During this time the data is pulled from the data logger and the various uploads are done.

This defaults me to the datalogger sample rate and so on but does the job. However I get two problems:
1. If the Mac is asleep for the iCal aarm/Automator schedule - no dice
2. Every iPad and iPhone in the house ping the alarm for the iCal task - some fancy Apple synching!

So now I'm trying the no sleep iMac option .......

Any ideas?
James

WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2987
    • CW9739
    • IIBSTO2
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, extra temp stations, no U.V. WeatherLinkLive.
Re: Weathercat vs iMac sleep
« Reply #1 on: September 08, 2013, 10:34:39 AM »
Hi James,
One solution is just to sleep the display - on an iMac it is the display that uses most of the energy.

A member posted some power usage figures a while back which demonstrated this - a search should bring it up.

Cheers,
Stu.
 

jamesmb

  • Calm
  • *
  • Posts: 6
  • Station Details: Davis VP2 wireless
Re: Weathercat vs iMac sleep
« Reply #2 on: September 11, 2013, 09:46:52 PM »
Indeed that is my latest tactic, just seeing if I can get away with it.
It's more a noise issue, I'm just seeing how quiet the iMac is once the power hungry stuff stops.

Thanks for the quick reply

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6686
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Apple "white noise" (Re: Weathercat vs iMac sleep)
« Reply #3 on: September 11, 2013, 11:28:38 PM »
Dear James and WeatherCat fans,

It's more a noise issue, I'm just seeing how quiet the iMac is once the power hungry stuff stops.

 ;)  . . . That's not a bug - it is feature!  That is Apple's trademark white noise generator!!   [lol2]

Seriously I can sympathize, but having slept with much more noisier computers in my room than I have now I can confirm that you get used to it reasonably quickly.

Nonetheless, I have had to go to sleep once during a power outage and was a really stunned to realize how quiet my room could actually be!!

Cheers, Edouard  [cheers1]

JosBaz

  • Strong Breeze
  • ***
  • Posts: 242
    • INBRSON2
    • Weatherstation Son en Breugel, The Netherlands
  • Station Details: Davis Vantage Pro2 Wireless, WeatherCat on Mac OS X 10.13.6
Re: Weathercat vs iMac sleep
« Reply #4 on: September 12, 2013, 09:02:17 PM »
The solution is to get a 2nd hand MacMini  [goofy]

Blicj11

  • Storm
  • *****
  • Posts: 4076
    • 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.5 | WeatherCat 3.3.3 | Supportive Wife
Re: Weathercat vs iMac sleep
« Reply #5 on: September 12, 2013, 09:40:06 PM »
James:

I went through all this several weeks ago myself and came to the same conclusion that Stu suggested: put the display to sleep. On the bright side, now you know what you can use your Mac for when you get a new one (assuming you don't take JosBaz suggestion in the meantime and buy a used Mini.
Blick