boramalper / himawaripy

Set near-realtime picture of Earth as your desktop background
http://labs.boramalper.org/himawaripy
MIT License
1.62k stars 239 forks source link

DOC: working on mac osx el capitan #53

Closed haleemur closed 8 years ago

haleemur commented 8 years ago

its working for me on mac osx el capitan, so maybe we can update the documentation. happy to submit a PR.

However, mac's don't support crontab, so instead, we have to create a plist entry. This is what I had working:

file name: com.user.himawaripy.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>Label</key>
  <string>com.user.himawaripy</string>

  <key>ProgramArguments</key>
  <array>
    <string>/usr/local/bin/himawaripy</string>
  </array>

  <key>Nice</key>
  <integer>1</integer>

  <key>StartInterval</key>
  <integer>600</integer>

  <key>RunAtLoad</key>
  <true/>

  <key>StandardErrorPath</key>
  <string>/tmp/himapy.err</string>

  <key>StandardOutPath</key>
  <string>/tmp/himapy.out</string>
</dict>
</plist>

and then it was necessary to load the plist file

launchctl load ~/Library/LaunchAgents/com.user.himawaripy.plist
boramalper commented 8 years ago

Thanks for contributing! I'd also be happy to have a PR. :)