curly60e/pyblock

Add Wander Terminal

Closed this issue Β· 14 comments

Add this feature:

https://github.com/pxsocs/warden_terminal

Maybe for v0.9.2-3

Happy to help. The data.py file contains most of the data gathering methods. For example:

python3 data.py data_btc_price

Will output the Bitcoin Price Data.

Happy to help. The data.py file contains most of the data gathering methods. For example:

python3 data.py data_btc_price

Will output the Bitcoin Price Data.

On what line of data.py can I call directly from the code? Don't want to call it from shell.

Happy to help. The data.py file contains most of the data gathering methods. For example:

python3 data.py data_btc_price

Will output the Bitcoin Price Data.

On what line of data.py can I call directly from the code? Don't want to call it from shell.

Will add your project into mine in another folder if you agree, of course?

Depends how you'd like to make the call.
But you could, for example:

image

This returns the ANSI table

Calling python3 node_warden.py runs the main program

Absolutely fine to include, modify, delete...

Depends how you'd like to make the call.
But you could, for example:

image

This returns the ANSI table

Looks awesome!! Great job! Will do this.

Absolutely fine to include, modify, delete...

Do you have an ANSI logo or do you want I make one for you? Can do lot of desings with python-cfonts.

You can use the one in the repository (welcome.py)

Need to test this in other terminals, BTW. Only tested on Mac but will soon test on some of my nodes running different os / screens.

Cool! Will use that logo!

image
image

Testing

def callGitWardenTerminal():
    if os.path.isdir('warden_terminal'):
        os.system("cd warden_terminal && python3 node_warden.py")
    else:
        git = "git clone https://github.com/pxsocs/warden_terminal.git"
        os.system(git)
        os.system("cd warden_terminal && python3 node_warden.py")

Simple solution and the user can explore the hole program.

def callGitWardenTerminal():
    if os.path.isdir('warden_terminal'):
        os.system("cd warden_terminal && python3 node_warden.py")
    else:
        git = "git clone https://github.com/pxsocs/warden_terminal.git"
        os.system(git)
        os.system("cd warden_terminal && python3 node_warden.py")

Simple solution and the user can explore the hole program.

def callGitWardenTerminal():
    if not os.path.isdir('warden_terminal'):
        git = "git clone https://github.com/pxsocs/warden_terminal.git"
        os.system(git)
    os.system("cd warden_terminal && python3 node_warden.py")

Better

The Easter Egg in @PyBLOCK:

β€œThe WARden Terminal.”
By @AlphaaZeta.

Now need 1 new module.

Install it:
a@A:~> sudo pip3 install pyfiglet