Author Topic: Sensor failure  (Read 5249 times)

stewie_griffin

  • Calm
  • *
  • Posts: 3
  • Station Details: WeatherCat, MacBook Air, Davis Pro2 wireless
Sensor failure
« on: March 25, 2014, 08:11:24 PM »
Hello,

I'm on about my third day using WeatherCat, after 3 years of WeatherLinkIP. Very impressed all round and a bit disappointed that I bothered with WL for so long. I'm now using a MacBook Air and a Davis Vantage Pro 2 wireless, which has functioned flawlessly for all that time.

I'm still getting to grips with the features, so please direct me to a thread which may already answer my question....

I left my MacBook on sleep and went to work (I know now that's a bad idea), communication between WC and the weather station went awry and now I have 12 hours of a straight line graph where everything (temp, pressure, windspeed etc etc) is constant. As soon as I got back in I got the Macbook going again and it sorted out OK, but the bad data is sitting there staring at me on all the graphs :-*.

My question is, can I somehow delete all the wrong data (21 entries, 1 every 30 minutes for the whole night) then reload them from the data logger? If so, what's the best way?

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
One way, but not without risk. (Re: Sensor failure)
« Reply #1 on: March 25, 2014, 08:50:20 PM »
Dear Stewie and WeatherCat fans,

I left my MacBook on sleep and went to work (I know now that's a bad idea), communication between WC and the weather station went awry and now I have 12 hours of a straight line graph where everything (temp, pressure, windspeed etc etc) is constant. As soon as I got back in I got the Macbook going again and it sorted out OK, but the bad data is sitting there staring at me on all the graphs :-*.

My question is, can I somehow delete all the wrong data (21 entries, 1 every 30 minutes for the whole night) then reload them from the data logger? If so, what's the best way?

This isn't for the faint of heart and requires backups but here is the general procedure.

  • If you are running OS-10.7 or later, give yourself access to the ~/Library folder in your home directory.  There is an article on how to do this here:  http://osxdaily.com/2011/07/22/access-user-library-folder-in-os-x-lion/
  • If WeatherCat is running, quit.
  • Make a backup of the folder: ~/Library/WeatherCatData
  • Go to the folder: ~/Library/WeatherCatData/Location1/2014/
  • Delete the file: 3_WeatherCatData.cat.hrs
  • Open the file: 3_WeatherCatData.cat with a text editor.  You can use Apple's TextEdit; however, for a job like this you might want to obtain the free editor TextWangler.  It is available from the Mac App Store.  Delete EVERY line from the first sample of non-existing data to the end - even after you restored communication to your weather station. Save the changes to your file.
  • Now start up once more WeatherCat.  It should load up all the missing data from the data logger bring everything back to normal.
  • If this does not work as described.  Quit WeatherCat, restore the folder: ~/Library/WeatherCatData from the backup you had made, once more delete the file: ~/Library/WeatherCatData/Location1/2014/3_WeatherCatData.cat.hrs and start up WeatherCat.  That should leave you where you started.  You can then post your troubles and perhaps one of the other forum members will have a better idea.

I'm using the UNIX convention for describing file paths.  So the '~' means your home folder.

Sorry if this sounds a little pedantic and tricky, but you need to be extremely meticulous to make sure nothing is lost.

Good luck,  Edouard

Blicj11

  • Storm
  • *****
  • Posts: 4078
    • 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: Sensor failure
« Reply #2 on: March 26, 2014, 05:50:16 PM »
Stewie, sorry about your lesson learned the hard way. You can let your display sleep, but not the rest of your machine.
Blick


stewie_griffin

  • Calm
  • *
  • Posts: 3
  • Station Details: WeatherCat, MacBook Air, Davis Pro2 wireless
Re: Sensor failure
« Reply #3 on: March 27, 2014, 06:54:57 PM »
Thanks for the help. I've now changed the settings on 'Energy Saver' and unchecked the 'Put hard disks to sleep when possible' and 'Enable power nap' boxes.

I'm still getting used to the Mac, as well as WeatherCat!

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
Need to decide how you want to use WeatherCat. (Re: Sensor failure)
« Reply #4 on: March 27, 2014, 08:25:03 PM »
Hi Stewie, Blick, and WeatherCat fans,

Thanks for the help. I've now changed the settings on 'Energy Saver' and unchecked the 'Put hard disks to sleep when possible' and 'Enable power nap' boxes.

I'm still getting used to the Mac, as well as WeatherCat!

You'll need to decide how you want to use WeatherCat and what you hope to accomplish with it.  Most of us "power users" have a Mac running 24/7 so that WeatherCat can upload continuously to a website and the myriad of services that you can upload data to.  Of all those services, only Weather Underground has a historical upload protocol, so that you can turn off your computer (say at night) and then have all that data uploaded when you get your Mac up and running once more.

On the other hand, there is a significant minority that operate in that way.  Particularly electricity is very expensive, they prefer to collect data in batches from their weather station and indeed only upload to Weather Underground (since they have no other choice.)

It is all a matter of taste.

By the way, let me give you a belated welcome to the WeatherCat forum!

Cheers, Edouard  [cheers1]

stewie_griffin

  • Calm
  • *
  • Posts: 3
  • Station Details: WeatherCat, MacBook Air, Davis Pro2 wireless
Re: Sensor failure
« Reply #5 on: March 28, 2014, 10:17:53 PM »
Thanks for the suggestions. I guess the thing about new software is that you end up using it in ways that you never planned.

Banner construction next!