XBMC Plugin

Announcements of new plugins or updates.

Moderators: caesar, IFR, mattcro, limbo, _X7JAY7X_

XBMC Plugin

Postby ulysse » March 15th, 2010, 1:20 pm

This is a XBMC plugin for displaying current playing.

It's my first module and was written in less than 30 minutes whitout hardware test so if someone test let me know ...
You must enable your XBMC webserveur.

$dll(xbmc.dll,1,keyword for music file,keyword for video file)

Exemple :

$dll(xbmc.dll,1,artist,director) ($dll(xbmc.dll,1,year,year))
$dll(xbmc.dll,1,title,title)
$dll(xbmc.dll,1,time,time) / $dll(xbmc.dll,1,duration,duration)
$Bar($dll(xbmc.dll,1,percentage,percentage),100,20)


Also :
$dll(xbmc.dll,2,,)
Return "1" if xbmx is launched and playing and "0" if not. If you want activate screen dynamically.
$dll(xbmc.dll,2,onlyrunning,)
Return "1" if xbmx is launched and "0" if not. If you want activate screen dynamically.

Current keywords are :

For music :

# PlayStatus
# SongNo
# Type
# Title
# Track
# Artist
# Album
# Genre
# URL
# Lyrics
# Bitrate
# Samplerate
# Time
# Duration
# Percentage
# File size

For videos :

# Filename
# PlayStatus
# VideoNo
# Type
# Title
# Genre
# Studio
# Director
# Writer
# Tagline
# Plotoutline
# Plot
# Original Title
# Year
# Thumb
# Time
# Duration
# Percentage
# File size

have Fun !
Attachments
Xbmc.zip
(6.27 KiB) Downloaded 1031 times
Last edited by ulysse on March 16th, 2010, 9:33 am, edited 1 time in total.
ulysse
 
Posts: 20
Joined: March 12th, 2010, 2:09 pm

Re: XBMC Plugin

Postby PhilYHC » March 15th, 2010, 2:32 pm

amazing! i cant thank you enough!

it seems to be working fine so far!

if you could kindly explain how to implement the following:

"Also :
$dll(xbmc.dll,2,,)
Return "1" if xbmx is launched and playing and "0" if not. If you want activate screen dynamically.

Current options are :

For music :

# PlayStatus
# SongNo
# Type
# Title
# Track
# Artist
# Album
# Genre
# URL
# Lyrics
# Bitrate
# Samplerate
# Time
# Duration
# Percentage
# File size

For videos :

# Filename
# PlayStatus
# VideoNo
# Type
# Title
# Genre
# Studio
# Director
# Writer
# Tagline
# Plotoutline
# Plot
# Original Title
# Year
# Thumb
# Time
# Duration
# Percentage
# File size"

than i would be a very happy bunny!
PhilYHC
 
Posts: 21
Joined: March 11th, 2010, 9:19 pm

Re: XBMC Plugin

Postby ulysse » March 15th, 2010, 2:49 pm

$dll(xbmc.dll,1,keyword,)

The keyword can be on off the list above.
( Some keyword existe only whene playing music, other only when playing videos )

Image

And for the second fonction :
$dll(xbmc.dll,2,,)
See this screenshot, it hide the screen 1 when xbmc isn't running or playing something and enable it when something is playing

Image
ulysse
 
Posts: 20
Joined: March 12th, 2010, 2:09 pm

Re: XBMC Plugin

Postby PhilYHC » March 15th, 2010, 8:09 pm

sweet, this plugin is unreal! got it all sorted now.

there are a couple of things though:

1 - if you have a screen set to switch when xbmc loads, it doesnt start straight away, it starts when you play a video/mp3, but i combined it with the AppState plugin, and it works a treat.
2 - i have the following screen setup:

--XBMC NOW PLAYING--
$dll(xbmc.dll,1,artist,)
$dll(xbmc.dll,1,title,)
-$dll(xbmc.dll,1,time,)==$dll(xbmc.dll,1,duration,)-

which looks cool as hell playing music, but when i play a film the artist parameter returns director info or something along those lines...its a small niggle but no biggie.

other than that, THIS PLUGIN IS AMAZING!

thank you again!
PhilYHC
 
Posts: 21
Joined: March 11th, 2010, 9:19 pm

Re: XBMC Plugin

Postby ulysse » March 16th, 2010, 9:39 am

PhilYHC wrote:1 - if you have a screen set to switch when xbmc loads, it doesnt start straight away, it starts when you play a video/mp3, but i combined it with the AppState plugin, and it works a treat.


I had a parameter, onlyrunning ( see first post ) to only test if xbmc is loaded.
At home I prefere hide the screen if xbmc only loaded because he always be.
But if you prefere only running now it's possible.

PhilYHC wrote:which looks cool as hell playing music, but when i play a film the artist parameter returns director info or something along those lines...its a small niggle but no biggie.


yes that was a test :$ now you can specify 2 arguments, at first the information for music file, second the information for video file. See exemple.

PhilYHC wrote:other than that, THIS PLUGIN IS AMAZING!
thank you again!


Thank you. I hope somme people will use it, xbmc is amazing and even better now !

PS : i will add some new keywords for displaying numbers of songs or movies in the library ...
ulysse
 
Posts: 20
Joined: March 12th, 2010, 2:09 pm

Re: XBMC Plugin

Postby andye26 » March 16th, 2010, 8:54 pm

Ok first thing first ...Thanks a lot ulysse works great!!

Couple of minor niggles
1- If the title is longer than the display it scrolls round which is ok but it has no gap at the end of title and start when it loops.
2- If nothing is playing an option to display something in the display when xbmc is active ie if I am in the menu it would be nice for the display to say XBMC Home Theater for example.

Thanks again

Andy
andye26
 
Posts: 5
Joined: November 29th, 2008, 6:48 pm

Re: XBMC Plugin

Postby styx06 » March 29th, 2010, 10:19 pm

This sounds great. Have been waiting for a plugin like this.
Unfortunately though when I add your plugin, I get the following error message displaying on my VFD:

Exception: exception has been thrown by the target of an invocation.: Object reference not set to an instance

I installed all .NET framework versions and updates. Am running Windows XP SP3 with all updates included on a Samsung VFd (Ahanix MCE303 case) using IRTrans...

could you please help me out? tnx!
styx06
 
Posts: 2
Joined: March 29th, 2010, 11:42 am

Re: XBMC Plugin

Postby styx06 » April 1st, 2010, 8:22 am

never mind...works like a charm. Couple of reboots helped...

One thing tho: I don't seem to get the dynamic enablement of screens to work. I have these lines in place currenty:

If $dll(xbmc.dll,2,,) = 1 Then EnableScreen(1)
If $dll(xbmc.dll,2,,) = 1 Then DisableScreen(2)
If $dll(xbmc.dll,2,,) = 0 Then EnableScreen(2)
If $dll(xbmc.dll,2,,) = 0 Then DisableScreen(1)

Where screen 1 = XBMC dll and screen 2 = other dll (BIGNUM in my case).
However, the screens just seem to be rotating.

Any suggestions?

ps: great work!!
styx06
 
Posts: 2
Joined: March 29th, 2010, 11:42 am

Re: XBMC Plugin

Postby Latvian3Dman » April 14th, 2010, 1:35 pm

Ulysse, this plugin is exactly what i searched for! Especially since on my HTPC i already use LCD via LCDsmartie (one of self made USB solutions, FTDI chip), showing clock, CPU work, temperatures and fans speed (via SpeedFan). Unfortunately i can not get it working with XBMC yet. I use one of this years Win32 OpenGL builds (XBMC PRE-10.5 r28183), in Settings - Network it has enabled "Allow control of XBMC via HTTP", port 80, username xbmc, no password. I have LCD 2x16 symbols. If XBMC is started, it starts to show:
[Exception: Exception ....
or,
[Bar: '[Exception: Exception ....
If XBMC is not started, screen shows just empty progress bar line. Restarting PC, XBMC, LCDsmartie in any order not changes anything. PC is not connected to Internet (maybe it has to be? to have some IP address?).
Could anyone maybe give some advice, some ideas in wich direction i should try something? I would much appreciate it! :)
Thanks a lot in advance !!

Juris.
Latvian3Dman
 
Posts: 14
Joined: September 10th, 2008, 10:00 am

Re: XBMC Plugin

Postby ulysse » April 14th, 2010, 1:52 pm

I will post a new version of this plugin soon ...
And i will add some debug information by the way ...
Be patient :D
ulysse
 
Posts: 20
Joined: March 12th, 2010, 2:09 pm

Re: XBMC Plugin

Postby Latvian3Dman » April 14th, 2010, 3:27 pm

Thats awesome, Ulysse! About new version coming.
Update from me: yes, in my situation problem is lack of internet connection (i guess problem is that XBMC dont have any IP address at all). With Internet present, this plugin works as it should, and i am very excited about it. Thank You! :) :smt006
There is (and will always be) some wishes what could be improved, and here is mine :wink: - i am that kind of HTPC user that don't like "libraries", i like to simply browse folders and launch files. So, if possible, i would wish that parameter "filename" would show just filename, not the whole path to that file, as it does now. If thats possible - thanks in advance! :smt004
Latvian3Dman
 
Posts: 14
Joined: September 10th, 2008, 10:00 am

Re: XBMC Plugin

Postby ulysse » April 14th, 2010, 3:42 pm

Latvian3Dman wrote:Thats awesome, Ulysse! About new version coming.
Update from me: yes, in my situation problem is lack of internet connection (i guess problem is that XBMC dont have any IP address at all). With Internet present, this plugin works as it should, and i am very excited about it. Thank You! :) :smt006


?! It's strange ... I will try without internet connection but I'm surprised ...

Latvian3Dman wrote:There is (and will always be) some wishes what could be improved, and here is mine :wink: - i am that kind of HTPC user that don't like "libraries", i like to simply browse folders and launch files. So, if possible, i would wish that parameter "filename" would show just filename, not the whole path to that file, as it does now. If thats possible - thanks in advance! :smt004


I'll add this tag in the next version ...
I'll also change activation mode by returning xbmc state like 'playing music' 'playing video' 'launched' 'not running' 'paused'
If someone has another idee it's time !
ulysse
 
Posts: 20
Joined: March 12th, 2010, 2:09 pm

Re: XBMC Plugin

Postby Latvian3Dman » April 14th, 2010, 6:36 pm

Ok, then i give one more idea :) If I use my HTPC with internet connected, i often listen music that is actually online Shoutcast radio stations. Seems that this plugin "don't know" about their existence and shows nothing. I don't know is it real to extract info from there to show on LCD panel, but that would be awesome 8)
UPDATE: wait, i am wrong! It shows stations info. Hmm, I think it didn't first time... This plugin kinda grows smarter when you use it more and more... hehe :D :)
Latvian3Dman
 
Posts: 14
Joined: September 10th, 2008, 10:00 am

Re: XBMC Plugin

Postby captwo » April 17th, 2010, 9:19 am

Hello ulysee

Can i have the source code please?

Greetz
captwo
 
Posts: 2
Joined: December 22nd, 2009, 12:36 pm

Re: XBMC Plugin

Postby ulysse » April 18th, 2010, 2:18 pm

I also think about a fonction who is called every time xbmc change status in order to display xbmc screen every time song change for exemple ...

Latvian3Dman wrote:Ok, then i give one more idea :) If I use my HTPC with internet connected, i often listen music that is actually online Shoutcast radio stations. Seems that this plugin "don't know" about their existence and shows nothing. I don't know is it real to extract info from there to show on LCD panel, but that would be awesome 8)
UPDATE: wait, i am wrong! It shows stations info. Hmm, I think it didn't first time... This plugin kinda grows smarter when you use it more and more... hehe :D :)


Excellent news so :-)

captwo wrote:Hello ulysee
Can i have the source code please?
Greetz


Yes why not, but can you give us a reason ?
It's written in C# .net
ulysse
 
Posts: 20
Joined: March 12th, 2010, 2:09 pm

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: Bing [Bot] and 2 guests