mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 10:06:40 +00:00
Add experimental weather fetcher launchd plist
This commit is contained in:
33
launch_agents/me.jimeh.my-weather.plist
Normal file
33
launch_agents/me.jimeh.my-weather.plist
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Disabled</key>
|
||||
<true/>
|
||||
<key>Label</key>
|
||||
<string>me.jimeh.my-weather</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/bin/bash</string>
|
||||
<string>-c</string>
|
||||
<string>curl -s "http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=ISURREYS7" | grep temp_c | sed -e 's/^.*<temp_c>//g' -e 's/<\/temp_c>.*$//g' > /tmp/me.jimeh.my-weather</string>
|
||||
</array>
|
||||
<key>EnableGlobbing</key>
|
||||
<true/>
|
||||
<!-- -->
|
||||
<key>StandardOutPath</key>
|
||||
<string>~/Library/Logs/me.jimeh.my-weather.log</string>
|
||||
<key>StandardErrorPath</key>
|
||||
<string>~/Library/Logs/me.jimeh.me-weather.error.log</string>
|
||||
<!-- -->
|
||||
<key>RunAtLoad</key>
|
||||
<false/>
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>PATH</key>
|
||||
<string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin</string>
|
||||
</dict>
|
||||
<key>StartInterval</key>
|
||||
<integer>300</integer>
|
||||
</dict>
|
||||
</plist>
|
||||
Reference in New Issue
Block a user