![]() |
|
Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Help and Support (/forumdisplay.php?fid=33) +--- Forum: Supplementary Tools for XBMC (/forumdisplay.php?fid=116) +--- Thread: Maraschino (formerly HTPC Frontend) - a summary web interface for your XBMC HTPC (/showthread.php?tid=113136) Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
- DejaVu - 2011-11-13 04:06 gugahoi Wrote:I read a little bit about the path functions in python. It's possible it's a os compatibility problem? Are you running on windows? Nope. Ubuntu 10.04 LTS (XBMCLive updated to Pre-Eden). My installation directory is @ /home/xbmc/.maraschino - gugahoi - 2011-11-13 04:33 DejaVu Wrote:Nope. Ubuntu 10.04 LTS (XBMCLive updated to Pre-Eden). I'll try and find a solution tomorrow. Gotta study for my last exam ... On another note. I managed to get a pause/resume functionality for the sabnzbd widget. Just like we had on mfp. One thing that does not seem to happen is the auto-refresh of the widget tho.... I'm not sure why since I thought ajax handled that despite whatever else was happening...? I'll put up this little mod on my repo soon and make the pull request. If MrK likes it, he can add it to his repo and probably polish the code too... - DejaVu - 2011-11-13 05:15 Good luck with your exam G. ![]() Is the refresh set when you 'Add Application' under 'Poll Frequency (Seconds)'? Cant say I checked TBH. Got a bit bored with a 'Saturday Night in!' So tweaked the CSS for my Drive Widget a tad. I love the way everything can still be editted with simple Web Knowledge BTW! Only really wanna quick glance at see the state of the disks, not to bothered about the decimal places either, but could not get my head around rounding it up... Percentage follows the bar -
- _Mikie_ - 2011-11-13 08:34 DejaVu Wrote:Good luck with your exam G. If you don't want the decimals then somewhere around line 102 free = float(st.f_bavail * st.f_frsize) / 1073741824 total = float(st.f_blocks * st.f_frsize) / 1073741824 used = float((st.f_blocks - st.f_bfree) * st.f_frsize) / 1073741824 These shouldn't be floating numbers. - mrkipling - 2011-11-13 13:08 DejaVu Wrote:Still a no go on this. Yep, I think that different servers have different ideas of what it should be using as the working directory. Anyway, I've pushed another change. It starts with the current working directory; it then attempts to prepend the path from sys.path (which works in Apache); then it tries to get the icons. If successful it displays them using a dropdown, otherwise it falls back to using an input text box. There's probably a super-easy, super-nice way of doing this, but I don't know it and don't have the time to figure it out right now unfortunately, and at least this shouldn't break anything
- mrkipling - 2011-11-13 13:14 gugahoi Wrote:Awesome, it's exactly as I thought it was. I only overlooked the hook. *.pyc files are created by Python, they're just compiled version of the *.py files. They are in .gitignore and can be safely deleted, they'll just get re-made by Python. For simple debugging you can just use Code: print variablenamein the Python code to print it to the console. - mrkipling - 2011-11-13 13:21 _Mikie_ Wrote:If you don't want the decimals then somewhere around line 102 When talking in GB I prefer them being displayed to 2 decimal places, but if you don't then you could just use Jinja's built-in "int" template filter, like so (in "templates/diskspace.html"): Code: {{ disk.used|int }} GB used- DejaVu - 2011-11-13 22:00 Awesome - thanks for that MrK. Also, the latest commit for the Image dropdown seems to be working for me too on the CherryPy install. - Rumik - 2011-11-14 16:53 At first glance the installation instructions on the website seem to assume you're using Linux... are there no Windows installation instructions? Can this even run on Windows? - DejaVu - 2011-11-14 17:13 It is originally created for Linux, but Python is universal and can run on Linux, Apple Mac's and Windows. Look through this thread and check Archigos' posts, he has this running in a Windows environment. |