Traceback (most recent call last):
File "/home/username/sabnzbd/SABnzbd.py", line 44, in <module>
import sabnzbd
File "/home/username/sabnzbd/sabnzbd/__init__.py", line 45, in <module>
from sabnzbd.assembler import Assembler
File "/home/username/sabnzbd/sabnzbd/assembler.py", line 34, in <module>
from sabnzbd.interface import CheckFreeSpace
File "/home/username/sabnzbd/sabnzbd/interface.py", line 2198
header['uptimesys'] = "%s" % upsys()
^
IndentationError: unindent does not match any outer indentation level
xxhds wrote:
I just saw this posted and wanted to add it to my server so I did. I have no python experience, but adding it was a snap. It currently does not auto-refresh because I didn't dig into the templates and scripts enough to see how that worked, but it gets the job done for me and is very informative. Took me about 30 minutes to figure out. I also removed some other stuff from the template I didn't want. Here's what mine looks like:
Oh and this is for linux only. I'm running an ubuntu server with 2 4x500gb raid 5 partitions. Should work with any linux distribution though.
Two files to modify. interface.py and your main.tmpl in whatever template folder you are using.
In interface.py located in /sabnzbd .4.4/sabnzbd
search for:
search for and add the same thing again. There are two places where the above string is found.
Then in main.tmpl in the folder /sabnzbd .4.4/interfaces/smpl/templates
I use the smpl template. I just quick looked at the default main.tmpl and I wasn't sure where to put it, but this is just the code to output the results, so you can put it anywhere you want in any template.
scroll all the way to the bottom and add ${uptimesys}
I put it right before "sabnzbd version: $version"
I don't think a restart is even required, but it might be. Just refresh the page and you should see your uptime and load statistics. Let me know if you have an questions.
-xxhds
xxhds wrote:
I just saw this posted and wanted to add it to my server so I did. I have no python experience, but adding it was a snap. It currently does not auto-refresh because I didn't dig into the templates and scripts enough to see how that worked, but it gets the job done for me and is very informative. Took me about 30 minutes to figure out. I also removed some other stuff from the template I didn't want. Here's what mine looks like:
Oh and this is for linux only. I'm running an ubuntu server with 2 4x500gb raid 5 partitions. Should work with any linux distribution though.
Two files to modify. interface.py and your main.tmpl in whatever template folder you are using.
In interface.py located in /sabnzbd .4.4/sabnzbd
search for:
search for and add the same thing again. There are two places where the above string is found.
Then in main.tmpl in the folder /sabnzbd .4.4/interfaces/smpl/templates
I use the smpl template. I just quick looked at the default main.tmpl and I wasn't sure where to put it, but this is just the code to output the results, so you can put it anywhere you want in any template.
scroll all the way to the bottom and add ${uptimesys}
I put it right before "sabnzbd version: $version"
I don't think a restart is even required, but it might be. Just refresh the page and you should see your uptime and load statistics. Let me know if you have an questions.
-xxhds
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate