← back to Filemaker Mcp

launchd/com.steve.ads-dashboard-fmpro-push.plist

30 lines

<?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.steve.ads-dashboard-fmpro-push</string>

  <!-- Runs the FileMaker-reachable Mac2 pusher: compute trailing-30d booked revenue,
       refresh local copy + scp aggregate-only JSON to the Kamatera ads-dashboard. -->
  <key>ProgramArguments</key>
  <array>
    <string>/bin/zsh</string>
    <string>/Users/macstudio3/Projects/filemaker-mcp/scripts/push-dashboard-revenue.sh</string>
  </array>

  <key>WorkingDirectory</key><string>/Users/macstudio3/Projects/filemaker-mcp</string>

  <!-- 4x/day (every 6h) — keeps the number well under the dashboard's 25h stale threshold -->
  <key>StartInterval</key><integer>21600</integer>
  <key>RunAtLoad</key><true/>

  <!-- node (homebrew) + scp/ssh (/usr/bin) must be on PATH; HOME needed for the Kamatera ssh key -->
  <key>EnvironmentVariables</key>
  <dict>
    <key>PATH</key><string>/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin</string>
    <key>HOME</key><string>/Users/macstudio3</string>
  </dict>

  <key>StandardOutPath</key><string>/tmp/ads-dashboard-fmpro-push.log</string>
  <key>StandardErrorPath</key><string>/tmp/ads-dashboard-fmpro-push.log</string>
</dict></plist>