Skip to content

Instantly share code, notes, and snippets.

@0xIslamTaha
Created July 26, 2018 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xIslamTaha/cba60a39de36e9a525421408a33a889e to your computer and use it in GitHub Desktop.
Save 0xIslamTaha/cba60a39de36e9a525421408a33a889e to your computer and use it in GitHub Desktop.
from js9 import j
FARMER_ID = ['xtremx']
NODES_STATUS = {}
for farmer in FARMER_ID:
NODES_STATUS[farmer] = []
grdi = j.clients.grid_capacity.get('main')
nodes, _ = gird.api.ListCapacity()
for node in nodes:
if node.farmer_id in FARMER_ID:
NODES_STATUS[node.farmer_id].append({node.node_id:node.uptime})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment