Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Dap-P

Pages: 1 2 [3] 4 5 6
Developers / Re: Need help!
« on: November 10, 2013, 07:54:24 pm »

in my opinion, all mobile devices can be added to multiple ea's in 1 room. But i would like to see this room 'hidden' in all other orbiters, and on the mobile device you can only select your own device.

I have no idea is this is possible, and what would be needed. just want to share my opinion.

At the moment i have very little spare time, but i would like to volunteer. I dont know much about mysql, but i know i can learn about it.


Users / Re: Need some dedicated testers.
« on: November 06, 2013, 10:33:12 pm »
Found a bug :

While i was connected to my other wifi connection, i started qorbiter.
It couldn't connect to LMCE, which is correct, cause it is on another network.

While qorbiter is running, i changed my wifi connection to the LMCE network.
qorbiter connects, but doesn't display all the letter on the buttons,

Button's would read "L ghts" "Me  a" for the "Lights" and "Media" button, other buttons do this also
And even some buttons don't have text at all


Users / Re: Need some dedicated testers.
« on: November 06, 2013, 01:03:53 am »
I saw this before, just never said it here, but i like to use the "filename sort" browsing, but when i am in some folder, i cannot get back to the upper level. i just get an empty screen with only a back button, and qorbiter often crashes.

Maybe it is my setup, because i only have nfs and smb fileshares connected, and no local media on my core.


Installation issues / Re: New install, Squeezeboxes not working
« on: November 03, 2013, 06:48:39 pm »
Finally had the chance to test this.
Today i hooked up my Squeezebox 2 via ethernet. it got detected by LMCE, configured in a room (my bathroom) and tried to play music from the orbiter. no luck....

So i recreated the device manually, only now with the squeezeslave template. and yes, it works!
Via ethernet, and via wifi!


New update :

Now it is only 1 script

Added a show function, this will display all local radio stations, with their Url's and Genre


Edit: Somehow i broke the script... i will check it now
Edit 2: I think it is working again
I had to readd the tail -n1 for some commands, apparently the insert_last_id somehow returned multiple lines

Users / Re: Best Approach to Controlling a Network Device
« on: October 30, 2013, 11:49:21 pm »
Code: [Select]
linuxmce@dcerouter:~/CodingWork/XBMC$ curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Player.GetActivePlayers\", \"id\": 1}"
HTTP/1.1 200 OK
Content-Length: 65
Content-Type: application/json
Date: Tue, 29 Oct 2013 23:15:30 GMT


I know a little about capturing data from scripts, this is as i would do this:
playerid=$(curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Player.GetActivePlayers\", \"id\": 1}" | grep playerid | awk -F'playerid":' '{print $2}' | awk -F',' '{print $1}')

something like this should capture the player id in a variable called playerid


New update

Added a description to the script,
added the -ss flag, and removed tail -n1
added the Download Url to a variable
in the delete script added a loop, so that it reads all urls, and checks that in the database

In general, would it be wise to add multiple files to the same radiostation? Now i just grab the first one.


Users / Re: Need some dedicated testers.
« on: October 29, 2013, 11:53:48 pm »
Updated pushed...

now if i could remember what i did.

*changed the phone homescreen to make buttons bigger
*added ability to get screenshot to smokey
*added zoom & aspect for video in smokey
*added a fallback screen for mediatypes that dont have a details page implemented yet.
*added support for browsing photos.

*found ugly bug that happens when its reset repeatedly.
*so far unable to reproduce the crash when power button is pressed.

Things i notice:
- Start of app is faster
- Still a crash when i use Display On, or Display Off from the power menu
- Media test button does not work anymore
- Dont see any pictures / photos
- Buttons are the same size
- Screenshots work
- Zoom and Aspect work
- In general the app feel much faster


My mistake...

Here are the correct ones:

What does not look right?
to me it seems correct, i do the insert, and last_insert in 1 command, with the output in $PK_File var

it even works for me


I thought it would work that way, when i realised it didn't work as plan. thanks!!!

Here 2 new scripts,
 - add radiostations with select_last_id
 - delete radiostations


Had some sparetime, and name some progress on the script,

New features:
- Use variable for tempfile
- Check if the Url is already in the DB before adding
- Reuse genre if it exists
- Adds genre if it not exists
- Uses SELECT MAX(id) to find out last added row

@sambuca, i couldn't get a working SELECT LAST_INSERT_ID, i think if it because i used 2 seperate mysql -e statements, If MAX(id) is not suitable, i have to make LAST_INSERT_ID working somehow

Attached is the new version


I want to expand the script with checks to not add duplicates, and to check the genre and reuse that attribute, its still just a simple script.

As I have no experience using mysql, all advise is appreciated. I will try to make to as useable as possible.

@posde Thanks for the tips


Ok, here is a working script,

It will download an indexfile and process it into the LinuxMCE
It does not add Genre's, only the station's name and the url

Can somebody try this out? And yes, it could mess up your whole DB.....
If you only want to see what stations would be added, comment out the Add to Database lines before running the script


Another thing to consider is when to re-use an existing attribute.... You could keep adding attribute with the same name, but that would make duplicate attributes in LMCE, not sure you want that...

Sambuca, this would only affect the Genre... Personally, i dont use it, but i wanted to add it anyway.
I am not a database guy... i will try to make it as neat as possible, so your remark has been noted)))

Posde, Thanks, i will try that

Pages: 1 2 [3] 4 5 6