How to get rnstatus results into status.md page ? #694
-
Hi, I have searched around and have not yet found out how to do the above. My Nomadnet node successfully serves up index.mu but I cannot find out how to create the status.md page to link to from index.mu. |
Beta Was this translation helpful? Give feedback.
Answered by
fotografm
Jan 24, 2025
Replies: 1 comment 10 replies
-
You need to write some python in the .mu file and make it executable. Here's a basic example: #!/path/to/python3
import subprocess
import os
rnstatus = subprocess.getoutput("/path/to/rnstatus")
print(">rnstatus")
print(rnstatus) |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That did it. It now works and I have learned some Python on the fly. Thank you to everyone who contributed !
To summarise: in status.mu the first line has to be
#!/usr/bin/python3
The file status.mu needs the attributes
-rwxrwx--- 1 user user
Set the full path name to rnstatus in status.mu:
rnstatus = subprocess.getoutput("/home/user/.local/bin/rnstatus")