260 lines
5.8 KiB
JSON
260 lines
5.8 KiB
JSON
{
|
|
"id": "qR33gCw5iScfnj9s",
|
|
"name": "Antigravity Quota Reset Timers",
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"rule": {
|
|
"interval": [
|
|
{
|
|
"triggerAtHour": 5
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"id": "schedule-5am",
|
|
"name": "5:00 AM - Refresh All",
|
|
"position": [
|
|
0,
|
|
208
|
|
],
|
|
"type": "n8n-nodes-base.scheduleTrigger",
|
|
"typeVersion": 1.2
|
|
},
|
|
{
|
|
"parameters": {
|
|
"rule": {
|
|
"interval": [
|
|
{
|
|
"triggerAtHour": 12
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"id": "schedule-12pm",
|
|
"name": "12:00 PM - Refresh All",
|
|
"position": [
|
|
0,
|
|
400
|
|
],
|
|
"type": "n8n-nodes-base.scheduleTrigger",
|
|
"typeVersion": 1.2
|
|
},
|
|
{
|
|
"parameters": {
|
|
"rule": {
|
|
"interval": [
|
|
{
|
|
"triggerAtHour": 19
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"id": "schedule-7pm",
|
|
"name": "7:00 PM - Refresh All",
|
|
"position": [
|
|
0,
|
|
608
|
|
],
|
|
"type": "n8n-nodes-base.scheduleTrigger",
|
|
"typeVersion": 1.2
|
|
},
|
|
{
|
|
"parameters": {
|
|
"authentication": "privateKey",
|
|
"command": "/home/b3nw/.npm-global/bin/opencode run -m antigravity/gemini-3-pro-preview --title \"quota-reset-gemini-pro\" \"ping\"",
|
|
"cwd": "~/"
|
|
},
|
|
"id": "ssh-gemini-pro",
|
|
"name": "SSH - Gemini Pro Ping",
|
|
"position": [
|
|
304,
|
|
0
|
|
],
|
|
"type": "n8n-nodes-base.ssh",
|
|
"typeVersion": 1,
|
|
"credentials": {
|
|
"sshPrivateKey": {
|
|
"id": "S2dcVMjrpg0I0kdV",
|
|
"name": "vscode-dev.local.ben.io"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"authentication": "privateKey",
|
|
"command": "/home/b3nw/.npm-global/bin/opencode run -m antigravity/gemini-3-flash --title \"quota-reset-gemini-flash\" \"ping\"",
|
|
"cwd": "~/"
|
|
},
|
|
"id": "ssh-gemini-flash",
|
|
"name": "SSH - Gemini Flash Ping",
|
|
"position": [
|
|
304,
|
|
208
|
|
],
|
|
"type": "n8n-nodes-base.ssh",
|
|
"typeVersion": 1,
|
|
"credentials": {
|
|
"sshPrivateKey": {
|
|
"id": "S2dcVMjrpg0I0kdV",
|
|
"name": "vscode-dev.local.ben.io"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"authentication": "privateKey",
|
|
"command": "/home/b3nw/.npm-global/bin/opencode run -m antigravity/claude-sonnet-4-5 --title \"quota-reset-claude\" \"ping\"",
|
|
"cwd": "~/"
|
|
},
|
|
"id": "ssh-claude",
|
|
"name": "SSH - Claude Ping",
|
|
"position": [
|
|
304,
|
|
400
|
|
],
|
|
"type": "n8n-nodes-base.ssh",
|
|
"typeVersion": 1,
|
|
"credentials": {
|
|
"sshPrivateKey": {
|
|
"id": "S2dcVMjrpg0I0kdV",
|
|
"name": "vscode-dev.local.ben.io"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"rule": {
|
|
"interval": [
|
|
{
|
|
"triggerAtHour": 3
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"id": "schedule-cleanup",
|
|
"name": "Sunday 3:00 AM - Cleanup",
|
|
"position": [
|
|
0,
|
|
800
|
|
],
|
|
"type": "n8n-nodes-base.scheduleTrigger",
|
|
"typeVersion": 1.2
|
|
},
|
|
{
|
|
"parameters": {
|
|
"authentication": "privateKey",
|
|
"command": "find ~/.local/share/opencode/storage/session -type f -name \"*.json\" -mtime +7 -exec sh -c 'grep -q \"quota-reset\" \"$1\" && rm \"$1\"' _ {} \\;",
|
|
"cwd": "~/"
|
|
},
|
|
"id": "ssh-cleanup",
|
|
"name": "SSH - Session Cleanup",
|
|
"position": [
|
|
304,
|
|
800
|
|
],
|
|
"type": "n8n-nodes-base.ssh",
|
|
"typeVersion": 1,
|
|
"credentials": {
|
|
"sshPrivateKey": {
|
|
"id": "S2dcVMjrpg0I0kdV",
|
|
"name": "vscode-dev.local.ben.io"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"connections": {
|
|
"5:00 AM - Refresh All": {
|
|
"main": [
|
|
[
|
|
{
|
|
"index": 0,
|
|
"node": "SSH - Gemini Pro Ping",
|
|
"type": "main"
|
|
},
|
|
{
|
|
"index": 0,
|
|
"node": "SSH - Gemini Flash Ping",
|
|
"type": "main"
|
|
},
|
|
{
|
|
"index": 0,
|
|
"node": "SSH - Claude Ping",
|
|
"type": "main"
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"12:00 PM - Refresh All": {
|
|
"main": [
|
|
[
|
|
{
|
|
"index": 0,
|
|
"node": "SSH - Gemini Pro Ping",
|
|
"type": "main"
|
|
},
|
|
{
|
|
"index": 0,
|
|
"node": "SSH - Gemini Flash Ping",
|
|
"type": "main"
|
|
},
|
|
{
|
|
"index": 0,
|
|
"node": "SSH - Claude Ping",
|
|
"type": "main"
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"7:00 PM - Refresh All": {
|
|
"main": [
|
|
[
|
|
{
|
|
"index": 0,
|
|
"node": "SSH - Gemini Pro Ping",
|
|
"type": "main"
|
|
},
|
|
{
|
|
"index": 0,
|
|
"node": "SSH - Gemini Flash Ping",
|
|
"type": "main"
|
|
},
|
|
{
|
|
"index": 0,
|
|
"node": "SSH - Claude Ping",
|
|
"type": "main"
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Sunday 3:00 AM - Cleanup": {
|
|
"main": [
|
|
[
|
|
{
|
|
"index": 0,
|
|
"node": "SSH - Session Cleanup",
|
|
"type": "main"
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"settings": {
|
|
"timezone": "America/Chicago",
|
|
"saveManualExecutions": true,
|
|
"saveDataSuccessExecution": "all",
|
|
"saveDataErrorExecution": "all",
|
|
"callerPolicy": "workflowsFromSameOwner",
|
|
"availableInMCP": false
|
|
},
|
|
"triggerCount": 4,
|
|
"versionId": "19367657-60c0-4f22-9cdf-84508906970c",
|
|
"owner": {
|
|
"type": "personal",
|
|
"projectId": "FeLO36wNUAcn61Wj",
|
|
"projectName": "Ben W <admin@ben.io>",
|
|
"personalEmail": "admin@ben.io"
|
|
},
|
|
"parentFolderId": "of8yoeyjjIAhYdnQ",
|
|
"isArchived": false
|
|
} |