pyblock/clone.py
curly60e 75d50727a7
rc1-v0.2.0
Added colors to the interface
Added "show confirmations" for any tx
Added feature sending messages to space with Satnode
Added a permanent Logo
Added System Information (CPU - Memory - Disk)
2020-05-25 19:35:24 -03:00

25 lines
835 B
Python

import os
import os.path
import time as t
def gitclone():
if os.path.isdir('$HOME/pyblock/satellite'):
print("OK Pass")
else:
url = "https://github.com/curly60e/satellite"
os.system("git clone " + url)
os.system("mkdir $HOME/pyblock/satellite/api/examples/.gnupg")
os.system("cp -r $HOME/pyblock/satellite/api/examples $HOME/pyblock/")
os.system("gpg --full-generate-key --homedir $HOME/pyblock/examples/.gnupg")
def satnode():
try:
os.system("python3 $HOME/pyblock/examples/demo-rx.py &")
t.sleep(5)
os.system("python3 $HOME/pyblock/examples/api_data_reader.py --demo --plaintext ")
except (KeyboardInterrupt, SystemExit):
os.system("ps -ef | grep demo-rx.py | grep -v grep | awk '{print $2}' | xargs kill -9")