Adding ip addy & hdd freespace to a fadelabel
#1
hi

i want to do a little edit to project mayhem iii's file manager. what i would like to do is add a fadelabel for the ip address and the hard drive's freespaces like so:

Quote: <control>
<description>system stats</description>
<id>0</id>
<type>fadelabel</type>
<width>535</width>
<posx>95</posx>
<posy>513</posy>
<label>$info(network.ipaddress) | system.freespace&copy; | system.freespace(e) | system.freespace(f) | system.freespace(g)</label>
<font>font10</font>
</control>

the problem is, the ip address shows correctly but the freespaces don't. i tried adding $info( ) to them but nothing will show.

could someone please correct anything that may be wrong with the tag above?

thanks

*no, i didn't add that copyright sign, it was changed automatically while posting this Smile
Reply
#2
dont use label controls

use

<info>info1</info>
<info>info2</info>
<info>info3</info>

in a fadelabel and youll be good
Image

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
(rocafellasqualie @ july 27 2005,21:22 Wrote:*no, i didn't add that copyright sign, it was changed automatically while posting this Smile
Quote:(tm)


Quote:(c)
©

:idea:
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
:d @ pike

thanks chokeman, it worked perfectly! :kickass:
Reply
#5
this is from musicoverlay.xml.

Quote: <control>
<description>album/artist/genre etc info label</description>
<type>fadelabel</type>
<width>130</width>
<posx>65</posx>
<posy>525</posy>
<font>font10</font>
<id>0</id>
<label>$info(musicplayer.artist) - $info(musicplayer.title) - $info(musicplayer.album)</label>
</control>
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#6
that's what i tried at first but when using that method, the ip displays correctly but the freespace just shows what i put in there on my tv screen like so

ip:192.168.0.102 | system.freespace&copy; | system.freespace(e) | system.freespace(f) | system.freespace(g)
Reply
#7
ok, i think the ( and ) is causing you trouble, parselabel looks for the first occurrance of ) after $info( so it wouldn't have the right infotag.

i wonder if a better character to use would be [ and ] or { and }. maybe this could be a feature request.

you would need to enter it as $info(system.freespace(e))

so if they would change it to $info[system.freespace(e)] it would work.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#8
have changed it so it uses

$info[blahblahblah]

sorry - no backwards compatibility.



Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#9
sweet!

thanks guys for the help Smile

jmarshall, is this addition already in the cvs earlier than today or was it just added meaning we have to wait for the cvs to update?
Reply
#10
added at around 17:00 gmt today.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Adding ip addy & hdd freespace to a fadelabel0