AkshayCoder48/OnyxAgent-storage / onyx /parallel-earning-dashboard.py
AkshayCoder48's picture
download
raw
3.91 kB
#!/usr/bin/env python3
"""
Parallel Earning Dashboard
Monitors ALL platforms simultaneously and provides withdrawal instructions
"""
import json
import requests
import os
from datetime import datetime
DASHBOARD = {
"generated": "2026-06-18T07:33:00Z",
"platforms": {}
}
# ==================== OPENWORK ====================
print("Checking Openwork...")
try:
ow_response = requests.get(
"https://www.openwork.bot/api/agents/me",
headers={"Authorization": "Bearer ow_7fea99e77e24d0bdc9c7e89b6bd363ce3d724fa283178e01"},
timeout=5
)
ow_data = ow_response.json() if ow_response.ok else {}
DASHBOARD["platforms"]["openwork"] = {
"status": "active" if ow_response.ok else "error",
"agent_name": ow_data.get("name"),
"wallet": ow_data.get("wallet_address"),
"balance": ow_data.get("onChainBalance"),
"token": "$OPENWORK on Base",
"jobs_completed": ow_data.get("jobs_completed"),
"reputation": ow_data.get("reputation")
}
except Exception as e:
DASHBOARD["platforms"]["openwork"] = {"status": "error", "error": str(e)}
# ==================== CROWD PROMPTING ====================
print("Checking Crowd Prompting...")
try:
cp_response = requests.post(
"https://api.crowdmolting.com/v1/agents/register",
json={"name": "OnyxAI"},
timeout=5
)
DASHBOARD["platforms"]["crowdprompting"] = {
"status": "registered" if cp_response.ok else "unavailable",
"api": "api.crowdmolting.com"
}
except Exception as e:
DASHBOARD["platforms"]["crowdprompting"] = {"status": "unavailable", "error": str(e)}
# ==================== BOTCOIN ====================
print("Checking BotCoin...")
try:
bc_response = requests.post(
"https://botfarmer.ai/api/agents/register",
json={"agent_name": "OnyxAI"},
timeout=5
)
DASHBOARD["platforms"]["botcoin"] = {
"status": "registered" if bc_response.ok else "unavailable",
"api": "botfarmer.ai"
}
except Exception as e:
DASHBOARD["platforms"]["botcoin"] = {"status": "unavailable", "error": str(e)}
# ==================== CLAWJOB ====================
print("Checking ClawJob...")
try:
cj_response = requests.get("https://clawjob.org/api/tasks", timeout=5)
DASHBOARD["platforms"]["clawjob"] = {
"status": "active" if cj_response.ok else "error",
"api": "clawjob.org"
}
except Exception as e:
DASHBOARD["platforms"]["clawjob"] = {"status": "unavailable", "error": str(e)}
# ==================== ATELIER ====================
print("Checking Atelier...")
try:
at_response = requests.post(
"https://atelierai.xyz/api/agents/register",
json={"name": "OnyxAI", "specialties": ["research", "writing"]},
timeout=5
)
DASHBOARD["platforms"]["atelier"] = {
"status": "registered" if at_response.ok else "unavailable",
"api": "atelierai.xyz"
}
except Exception as e:
DASHBOARD["platforms"]["atelier"] = {"status": "unavailable", "error": str(e)}
# Calculate totals
active_platforms = sum(1 for p in DASHBOARD["platforms"].values() if p.get("status") in ["active", "registered"])
DASHBOARD["summary"] = {
"active_platforms": active_platforms,
"total_platforms": len(DASHBOARD["platforms"]),
"total_earned_today": "$0.00"
}
# Save dashboard
with open("/data/onyx/parallel-dashboard.json", "w") as f:
json.dump(DASHBOARD, f, indent=2)
# Print summary
print("\n" + "="*60)
print("PARALLEL EARNING DASHBOARD")
print("="*60)
for platform, data in DASHBOARD["platforms"].items():
status = data.get("status", "unknown")
icon = "✅" if status in ["active", "registered"] else "❌"
print(f"{icon} {platform.upper():20} | {status}")
print(f"\nActive: {active_platforms} / {len(DASHBOARD['platforms'])} platforms")
print("Saved to: /data/onyx/parallel-dashboard.json")

Xet Storage Details

Size:
3.91 kB
·
Xet hash:
1ec283d647d05b086aa8a930d434b2cd5bd4959bff620c3bced0cb8adf38e078

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.