PDA

View Full Version : Debug and Programming questions


mwpei
March 8th, 2009, 01:39 PM
Hello all,

I am working on updating my boxeevpn plugin to add a few new features but I am running into some basic problems.

As a starter, this is my first plugin/script for boxee so it is very simple, it uses the xbmcplugin.addDirectoryItem to provide buttons for people to press to start, stop, pause, restart, etc the VPN. each of these buttons results in an os.system call to preform the given action. It is a very basic plugin right now and I am looking at trying to make it better (and maybe learn a bit more in the process)

1. Debug process
a. Currently the only way I seem to be able to debug is to run my plugin in boxee (I do have a few unit level tests that I can run via command line but they are very limited). The problem that I am having is the print statements with in my code (for debug info) do not always output data to the boxee.log file, it seems like boxee does not always "run" my script. The boxee gui updates as expected but when I look at the boxee.log file I don't always see my debug print output (I have a print statement as the first thing the plugin does that says "boxeevpn script start" but it never gets printed, even though I know the script is running).

b. I am also finding that boxee seems to cache my script so I can not make a change then test it, make another change then test it again. I have to exit boxee, restart boxee, test it, exit, enter, test it again and so on.


2. Program questions
a. I want to add some configuration options, I see that you can include a settings.xml file as well as the language strings.xml. Is there a built in set of functions that I can uses to extract these settings? I see that someone used xbmc.getLocalizedString( 30900 ) to read a string from the strings.xml file, is there something simular for the setting.xml file?

b. I want to be able to display a "status" something like "VPN Running" or "VPN Stopped" etc. does anyone have any ideas how this could be done.

thanks

mwpei
March 10th, 2009, 07:11 AM
PLEASE... Can someone post some suggestions on any of the above. Even if you tell me that you debug by rebooting you machine everytime that at least let me know that others are having the same problem....

I really want to get the boxeeVPN plugin working again, I have time today to work on it so please, please, please post something............

xmcnuggetx
March 10th, 2009, 09:56 AM
Haven't seen the issue with not printing to the log file.

As far as testing, I was in the same boat. Open Boxee test. Make changes. Exit Boxee. Open Boxee. Make changes. Exit Boxee...

Also any question I posted on programming questions seemed to get ignored from any of the boxee staff... good luck :)

idan
March 15th, 2009, 03:57 AM
hey,
i'm glad to hear about your efforts, indeed a feature greatly needed ;)

please please wait two more weeks with your development. we are going to roll out a new api to boxee application development and it will tremendusly simplify your work and cover all of your questions here with a much better UX.

i'll let you know once a version is avilable.
thanks,
idan

mwpei
March 15th, 2009, 08:55 AM
hey,
i'm glad to hear about your efforts, indeed a feature greatly needed ;)

please please wait two more weeks with your development. we are going to roll out a new api to boxee application development and it will tremendusly simplify your work and cover all of your questions here with a much better UX.

i'll let you know once a version is avilable.
thanks,
idan

This sounds very exciting, can't wait to see what the boxee team has for us.

I have actually gotten one of my apps updated to use the new skin format (boxeeVPN) and I am planning on releasing it today. But I am starting work on a CTV skin for canadian boxee users so your app will be a great help on that one.

One Item that I still have not been able to figure out and maybe you can point me to some docs about, is the app box repositories? I understand how to package my app and the descriptor file and such but I have not found anything about how to setup a repository that boxee can get to? In the past I have used code.google to store my plugins, is there some thing similar for those of use that do not have access to our own web servers?

mwpei
March 15th, 2009, 12:06 PM
Just look here http://sourceradix.com/h21.html
It seems more truthful.

Can someone block this person from posting, this is the 2nd spam item they have posted.:mad:

riegersn
March 17th, 2009, 07:35 AM
@mwpei:

Hey your doing great work! As for accessing the settings.xml its easy...

if xbmcplugin.getSetting( "mybool_setting" ) == 'true':

As for your log files, what loglevel do you have set in advancesettings.xml?

mwpei
March 26th, 2009, 06:04 PM
hey,
i'm glad to hear about your efforts, indeed a feature greatly needed ;)

please please wait two more weeks with your development. we are going to roll out a new api to boxee application development and it will tremendusly simplify your work and cover all of your questions here with a much better UX.

i'll let you know once a version is avilable.
thanks,
idan

Any word on the new boxee application development api?