Connexion rapide:  

Forum: VirtualDJ Plugins

Sujet SBDJ Battery Status - Page: 3

Cette partie de ce topic est ancien et peut contenir des informations obselètes ou incorrectes

djtouchdan wrote :
Correct Huey.

Unfortunately at the moment the is no way to return text from a variable VDJ script.


I stand corrected!! Nice find Scott!! :-)
 

Posté Mon 01 Nov 10 @ 1:02 am
All together now..... "we love you Scott....."
 

Posté Mon 01 Nov 10 @ 3:13 am
Implemeted this nicely into BlackSheep 4 (coming soon):





I implemeted this using pannels and the "var $...." as the visible attibute - the same as djdad has done in his VMS4 skin. I couldn't get it to work the way i wanted otherwise.
 

Posté Mon 01 Nov 10 @ 2:22 pm
SupaconPRO InfinityMember since 2005
So then did you just use a different pannel for each color?
 

Posté Mon 01 Nov 10 @ 2:28 pm
Exactly right....

MY CODE :) wrote :

<pannel id="battery_10" group="battery" visible="var_smaller $battery_percent 10">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1414" y="928"/>
</pannel>
<pannel id="battery_20" group="battery" visible="var_smaller $battery_percent 20">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1388" y="928"/>
</pannel>
<pannel id="battery_30" group="battery" visible="var_smaller $battery_percent 30">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1362" y="928"/>
</pannel>
<pannel id="battery_40" group="battery" visible="var_smaller $battery_percent 40">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1336" y="928"/>
</pannel>
<pannel id="battery_50" group="battery" visible="var_smaller $battery_percent 50">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1310" y="928"/>
</pannel>
<pannel id="battery_60" group="battery" visible="var_smaller $battery_percent 60">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1284" y="928"/>
</pannel>
<pannel id="battery_70" group="battery" visible="var_smaller $battery_percent 70">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1258" y="928"/>
</pannel>
<pannel id="battery_80" group="battery" visible="var_smaller $battery_percent 80">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1232" y="928"/>
</pannel>
<pannel id="battery_90" group="battery" visible="var_smaller $battery_percent 90">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1206" y="928"/>
</pannel>
<pannel id="battery_100" group="battery" visible="var_smaller $battery_percent 100">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1365" y="915"/>
</pannel>
<pannel id="battery_100+" group="battery" visible="var_equal $battery_percent 100">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1365" y="915"/>
</pannel>
<textzone>
<size width="25" height="9"/>
<pos x="1334" y="1"/>
<text font="arial" size="12" color="#808080" align="center" format="`get var $battery_percent`%"/>
</textzone>
 

Posté Mon 01 Nov 10 @ 2:39 pm
SupaconPRO InfinityMember since 2005
I see... that's a bit different than what I thought.

Couldn't you perhaps combine the earlier example I used (splitting it up into say, ten buttons) with this technique that uses four pannels - one for each color? Then you could later redefine when it turns red, orange, green, etc. Granted, that probably doesn't really make anything easier in the end.

Thanks for the example.
 

Posté Mon 01 Nov 10 @ 2:43 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
Dan,are you sure this code works? I mean when battery is lets say 60%, the visible criteria is true in more than 1 panel. Especially those reds, do they display normally? Have you reached your battery very low?
 

Posté Mon 01 Nov 10 @ 4:16 pm
Yes it works. Have tested fully. The battery on my development laptop doesn't hold charge, so was able to test from 100% down to 2% when it went into hibernation.

I think it's to do with how you write and how the XML is parses. You have to start with the lowest option first in the code (I think)

But this code definitely works!!
 

Posté Mon 01 Nov 10 @ 4:33 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
djtouchdan wrote :
You have to start with the lowest option first in the code (I think)


I had tried this, it didint work, but i had the opposite order, so yes this must be it!

Good work Dan ! ..and i hope your battery is not angry with you ..lol !!!!

 

Posté Mon 01 Nov 10 @ 4:46 pm
Once again Scott you have pulled it out the bag. Pure class, thank you. :-)
 

Posté Mon 08 Nov 10 @ 10:09 am
Всем привет! как тут скачивать симплы?
 

Posté Sun 05 Dec 10 @ 4:10 pm
SBDJPRO Infinity Member since 2006
You have to purchase VirtualDJ Professional to be able to download this plugin. Please also bear in mind that this is an english speaking forum.
 

Posté Sun 05 Dec 10 @ 7:23 pm
SupaconPRO InfinityMember since 2005
I\'ve just completed version 1.7 of CONDENSED which now prominently features SBDJ Battery Status! I\'m quite proud of my implementation.
Feel free to check it out here if you want to see a really nice example of this plugin in action.
http://www.virtualdj.com/addons/9801/CONDENSED.html

 

Posté Sat 08 Jan 11 @ 2:15 pm
SBDJPRO Infinity Member since 2006
Very nice!
 

Posté Sat 08 Jan 11 @ 3:35 pm
DJGCEPRO InfinityMember since 2009
somebody should really port this and other SBDJ's plugins to Mac...
 

Posté Mon 10 Jan 11 @ 12:15 am
SupaconPRO InfinityMember since 2005
Hmm... I'm learning to program for MacOS now. Perhaps I could look into that someday when I have the requisite knowledge. Hopefully someone beats me to it, though, because it could be a while yet.
 

Posté Mon 10 Jan 11 @ 2:55 am
djdadPRO InfinityDevelopment ManagerMember since 2005
The story.
Recently i bought a new laptop (the old one died). DPC showed me all green bars except couple of yellow ones. After a few gigs with some sound pops, i deactivated the ASPI battery Manager and everything went green, no pops since then.

The problem.
After a week,when building a skin, i realized that the Battery Status Plugin wasn't working anymore. I re-activated the ASPI, and there it was.

Question
Does the Battery Status Plugin gets informations from the ASPI Manager? If yes, is there another way i can work this plugin, without ASPI?
 

Posté Thu 03 Mar 11 @ 9:23 am
Hi djdad,

Yes you are right. The Battery Status Plugin does get the information from the ASPI Manager. I too have switched this off as the DPC Latency on my machine has also improved since turning this off.

Over to SBDJ to see if there is a workaround to enable this plugin to work when this is switched off he is after all the brains behind it.

 

Posté Sat 05 Mar 11 @ 2:28 pm
Has the battery status been removed from the downloads, as I cant find it anymore. If so why???
 

Posté Sun 08 May 11 @ 3:57 pm
djcelPRO InfinityModeratorMember since 2004
 

Posté Sun 08 May 11 @ 4:43 pm
98%