Using a MacBook for a weather station – managing power
I set up a weather station for a friend for his cabin near Yellowstone using a MacBook Air as the server. A challenge was that the station needs to run unattended through the winter, so has to be able to handle power outages. For desktop macs, there is a system preference to reboot on power failure, but that option is not present for laptops. Here’s the solution:
Use the ‘pmset’ terminal command to turn on the “acwake” switch. This way if the power is out long enough for the computer to hibernate, it will wake as soon as the AC is restored.
sudo pmset acwake 1
You can use ‘pmset -g’ command to check that acwake is now set to ‘1’.