Created
July 26, 2018 12:27
-
-
Save 0xIslamTaha/cba60a39de36e9a525421408a33a889e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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