
Analogue Tube
Source (link to git-repo or to original if based on someone elses unmodified work):
I released this last night but since then I've pretty much totally rewritten the code. It now uses multi-dimensional arrays so to change the number of digits all you have to do is change the variable digits, and everything else is taken care of.
I've also added a few extra widgets including time (24hr and 12hr) and more system readouts, and I've also made an extra theme for your pleasure. Theming now is a lot more complete, as you can change the text at the side.
There is now a configuration script where you can choose the theme you want.
I've put in theming. I've included four themes: The original theme just named "analogue" - this is default, a dark blue theme, a theme I call "plasma" and a '50s alarm clock rusty theme. Themes work from their own directories and can change the pictures and the font, position and label of the text. To add another script, create another directory and add your thing down the bottom in the dialogue command.
I'm not that good at choosing the text at the sides so if you find colours and fonts that work better e-mail me!
I've included a variety of widgets:
Time: A clock
12hrTime: The above clock in 12 hour time
caserpm, cpurpm: The RPMs of the case and CPU fans. Unfortunately you're going to have to look in the script and change the command used to get the cpu, unless you just happen to have a similar configuration to mine.
cputemp, mptemp: The temperature of the CPU and Motherboard. Again, like above, you're probably going to have to change things.
cpu: A readout of how much cpu you're using.
ram: A readout of how much ram is free
diskspace: How many gigs of space you have free
Tube: A testing widget that just shows a long line of characters.
Thanks to Reverant2501 and KiTaSuMbA for making the originals. I hope you enjoy the changes I've made.
NOTE: If it isn't already installed, you need to have the Numeric module installed. Simply if it doesn't load, look for a package to install along the lines of python-numeric (which is what it's called in Debian).
1.4.1
- Fixed a small bug in CPU that stopped it from working - should have tested *all* of them before sending it in!
1.4
- Heavily increased error checking on the themes. Added a themes.txt where you can add another theme pretty easily if you want.
--------------------------------
1.3
- Made the config dialog go syncronously with superkaramba - before it halted everything, including other themes that could be running.
--------------------------------
1.2
- Added menu changing of the theme
- Made 12 hour time and 24 hour time twelve million times faster (yes the tests surprised me as well).
- Cleaned up code and fixed bugs.
--------------------------------
1.1
- Changed script using multidimensional arrays so you only need to change the value of the variable digit.
- Improved themability. A text file in the theme directory now controls the size, font, and position of the text. Changed text in all themes bar "bluepics".
- New Theme "Plasma"
- New Widgets: 12hr Time, cpu, ram, diskspace
--------------------------------
1.0 - Initial Release
Ratings & Comments
9 Comments
are there any riquierements, 'cause they don't show nothing when i start the themes no matter which
Same here, I get nothing, the theme is loading because it shows under the karamba list, but I see nothing. Kanotix(Debian Sid) KDE 3.4 Xorg
hi, I've updated it increasing the error checking on the themes etc so it *should* perhaps work... If it still doesn't work could you please open it up in the console and see if there are any error messages getting put through the console? There shouldn't be any big dependencies - I only import os, karamba and numeric.
Traceback (most recent call last): File "/home/Analogue Tube/cpu.py", line 3, in ? import Numeric ImportError: No module named Numeric Traceback (most recent call last): File "/home/Analogue Tube/ram.py", line 5, in ? import Numeric ImportError: No module named Numeric The error seems to be the same with all of them, is this a problem with my python setup?
ok, so the numeric parts of python apparently don't come with the main package..So I installed python2.4-numeric and python2.4-numeric-ext. Now I am up and running.
ah ok sorry about that. Numeric is what supports the multi-dimensional arrays. I'll add a notice to the main page.
I only noticed your great work today, almost by luck. I was browsing around while waiting the uploads of 3 analogMachine updates to finish up (my ISP is having troubles so, yes, it requires a few retries and some waiting). I've considered your idea to chop-up the background into dynamically loaded widgets in the past, but I had NO IDEA how to do that. In fact, this has been a show-stopper for another AnologMachine module: a pager that dynamically changes number of buttons according to the available desktops. I also accept the fact that living in Italy is no excuse for producing such shameless spaghetti-code like I do. But IANAP :-) So, unless you disagree, your code is off to the disecting table - so to speak. Cheers!
(sorry for the late reply) he he I am actually a Soft Eng so yeah I know how to do the arrays and such (It was actually the first time I'd used python - google was definitely my friend!), but you wouldn't believe how long it took me to try and get your art so it looked remotely good. Gimp seems to like you a lot more than me.
Wow, man, modifications of the scripts based on multidimensional arrays are great. I'm really impressed the work You've done. The same as i'm impressed the work of Reverant2501 and KiTaSuMbA for making the originals. Their work seems to be a solid base for next really eye-kandy and fresh karamba themes. I hope that in the future people would make many new themes based on analog collection, even for weather reports and xmms. Thnx :]