Feature #231
Include XBMC authentication configuration parameters in XBMC data source
| Status: | Closed | Start: | 11/03/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | 08/13/2010 | |
| Assigned to: | mykroft | % Done: | 100% |
|
| Category: | - | |||
| Target version: | Caller ID Superfecta Source Files |
Description
XBMC can be configured to require http authenitcation before the XBMC datasource can send to it.
Include ID and Password parameter fields in the configuration options, and include them, if present, in the url sent to XBMC.
History
Updated by tshif over 2 years ago
we are currently waiting for a syntax example from the requesting party.
Updated by tshif over 2 years ago
- Status changed from New to Assigned
- Assigned to set to rockinthesixstring
Updated by patrick_elx over 2 years ago
sidenote to XBMC source. Updated in rev 237 to have a display even if there is no CLID name found.
Updated by tshif over 2 years ago
- % Done changed from 0 to 40
Perhaps we should include a configuration option to control this behavior. Let the users decide if they want to send CID if there is no CNAM available.
Updated by tshif about 2 years ago
- Assigned to deleted (
rockinthesixstring)
Data source update held until the ui gets the option for sending output (number only) if no cnam is found.
Updated by rockinthesixstring about 2 years ago
Just wanted to mention that all of the API calls can be found here
http://xbmc.org/wiki/?title=WebServerHTTP-API
Updated by mykroft about 2 years ago
auth is in the following format: http://xbmc:xbmc@192.168.0.60:8080
just like you would call a username/password direct for a web page. This is how I currently have my XBMC setup. If the user does not set a password in the XBMC UI, the username is ignored by XBMC.
So specific UI config entries can be added for username & password or just a text example on how to configure their url line like listed above is the mouse tooltip.
Updated by tshif about 2 years ago
Its a pretty straighforward process to add configuration parameters to the data source - it is done the same way that the current parameters are coded. Add a field for ID and password, leave it without any default value (default is NO id/password), and update the sendurl functions to reflect the new additions.
MyKroft - would you like to take that on as your first mini-project here at the Dev support sight?
Updated by tshif about 2 years ago
- Assigned to set to mykroft
Updated by mykroft over 1 year ago
tshif wrote:
mykroft - any luck with this?
I will get cracking on this this week - promise :)
Updated by mykroft over 1 year ago
Am working on this now, just need to get home and do a test send to my XBMC, but why does the $source_desc variable not display on any of the sources?
Updated by mykroft over 1 year ago
tshif wrote:
Well - It's working for me in EI8, EI7, and Firefox 3.6.8.
weird, nothing for me in IE8 or FF 368 :(
Updated by mykroft over 1 year ago
$source_param['Pause_PlayBack']['desc'] = 'Pause Whatever is playing when A Call Comes In.'; $source_param['Pause_PlayBack']['type'] = 'checkbox'; $source_param['Pause_PlayBack']['default'] = 'off';
anything look wrong with those params? Pause_PlayBack is always 'on', even those in the sql database it is set to 'off'
this is out of my debug section:
if ($run_param['Pause_PlayBack'] = "on")
{
print 'Send to XMBC: ' . $url2 . ' Value: ' . $run_param['Pause_PlayBack'] . '<br>';
}
I am printing the value of $run_param['Pause_PlayBack'] and it is always 'on', again even tho if I use phpmyadmin and see that it is off in the database so it is always pausing/unpausing playback no matter what is saved. It must/maybe have something to do with the checkbox data type?
Updated by mykroft over 1 year ago
btw, the no tool tips - only happens in the source list/config section, the other parts of the screen I get fading in/out tool-tips.....
Updated by mykroft over 1 year ago
- % Done changed from 40 to 90
Updated by mykroft over 1 year ago
I am stuck at releasing this until I can figure out what is going on with the checkbox always coming back 'on' - any ideas?
Updated by tshif over 1 year ago
If you upload your current datasource version to the svn - we others can look it over and test and possibly help out. Give it a temporary name such as source-send-to-xbmc-beta.php.
Ill be waiting to see it show up so I can jump in and have a look.
Updated by mykroft over 1 year ago
- File source-Send_to_XBMC_beta.php added
Here is my current source, not sure if this is the correct place - i dont see anywhere else i can upload files....
Updated by tshif over 1 year ago
- Due date set to 08/13/2010
Well - I have to report that the check mark box is bahaving as expected on our test systems here. I dont have XBMC around to test this with - but as far as remembering the config parameters, including the check mark box - its doing that perfectly.
Perhaps you are still suffering from left over data in the data table as you mentioned before. Maybe cleanign out that table and starting fresh might help your circumstance?
I also have to report that the flyby help in the configuration area is also working fine here.
I think we should have some others test it out for the new functions - especially since I dont have XBMC ready to test with. Shall it be announced on PBXIAF forum now asking for beta testers - specifically the new functions? If we do, The link for download that is provided should be:
http://projects.colsolgrp.net/attachments/333/source-Send_to_XBMC_beta.php
Updated by mykroft over 1 year ago
In your debug what is the value of this line?
Send to XMBC: http://192.168.0.155:8080/xbmcCmds/xbmcHttp?command=Pause() Value: on
does it say off when off and on when on or always on?
i have tried this code on 3 different phone boxes, 2 are in use, 1 is a fresh install, and also on 3 different computers using 3 different browsers....
every time it says on... I dont understand....
Updated by tshif over 1 year ago
I beg your pardon - It does always say value on in debug. I thought you were saying that the data source itself didn't save / recall the state of the checkbox.
I'm not sure about your debug code, but i looked into the database, and its storing the word false successfully.
Updated by mykroft over 1 year ago
tshif wrote:
I beg your pardon - It does always say value on in debug. I thought you were saying that the data source itself didn't save / recall the state of the checkbox.
I'm not sure about your debug code, but i looked into the database, and its storing the word false successfully.
yup, it changes it and stores it correctly in the database, but i can get it to evaluate correct - wonder if the module dont like the variable name i have chosen
Updated by mykroft over 1 year ago
Ok, I think I have everything working as it is supposed to - I don't know for sure until I get home here shorly and try it with my XBMC. Will post results.
Updated by mykroft over 1 year ago
- Status changed from Assigned to Closed
- % Done changed from 90 to 100
Updated version send to SVN for release