#146667 - 03/03/2003 23:26
Palantir - Palm Ad-Hoc Playlist Creator
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
I wrote a Palm application to create playlists for the Empeg on the fly. This app is in alpha right now, and I will release it tomorrow or Wednesday depending on when I have time to get back on the board and write up some install instructions. For now, some screenshots will have to do (I'm tired and going to bed).
What this does:
1. Syncs your playlist from your PC to your PalmPilot via a .pdb file. The .pdb file is created from a .csv file outputted from Jemplode, and converted from .csv to .pdb by a Java app I wrote. Todo: integrate .pdb creation into Jemplode, shouldn't be too hard. My .pdb file with 6002 songs is 465k, so people with very large music collections should have enough space with an 8mb Palm.
2. Lets you view your music collection on the Palmpilot. There are 4 screens, Artist, Album, Track and Playlist. You have to kind of "drill down" through the screens to select songs on the Track screen. It should be intuitive to most people. Todo: provide way to sort playlist after track selection.
3. Beam your ad-hoc playlist to the Empeg via IR. I have a small version of Empire running on the Empeg that will recognize OBEX objects coming from Palantir. Tonight for the first time I selected a list of songs and beamed them from my palm to my empeg and the songs were inserted into the current playlist. GOAL!
Now for the screenshots.
|
Top
|
|
|
|
#146668 - 03/03/2003 23:32
Artist View
[Re: cushman]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
Attachments
144679-artist.gif (412 downloads)
|
Top
|
|
|
|
#146669 - 03/03/2003 23:33
Album View
[Re: cushman]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
Attachments
144680-source.gif (382 downloads)
|
Top
|
|
|
|
#146670 - 03/03/2003 23:34
Track View
[Re: cushman]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
Attachments
144682-track.gif (443 downloads)
|
Top
|
|
|
|
#146672 - 04/03/2003 06:36
Re: Playlist View
[Re: cushman]
|
addict
Registered: 05/06/2002
Posts: 497
Loc: Hartsville, South Carolina for...
|
Very, very slick....Thanks for the work.
_________________________
Michael West
|
Top
|
|
|
|
#146673 - 04/03/2003 06:59
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: cushman]
|
carpal tunnel
Registered: 24/12/2001
Posts: 5528
|
Good work! Looks like it would be brilliant for in the car when people want to choose music but can't cope with the remote
What's Palantir stand for/mean BTW?
- Trevor
|
Top
|
|
|
|
#146674 - 04/03/2003 07:27
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: cushman]
|
member
Registered: 04/04/2002
Posts: 101
|
excelent app, can't wait to try it
_________________________
Jason
|
Top
|
|
|
|
#146675 - 04/03/2003 07:31
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: tman]
|
addict
Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
|
Comes from Tolkien's Lord of the Rings.. Means 'The seeing stone'.. I had to google for the meaning, but I remember cushman talking about it before.
|
Top
|
|
|
|
#146676 - 04/03/2003 07:40
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: tman]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
Yup, what Yang said.
As a bonus, it has (Pal)m and (Ir)da contained within the word.
I'm packaiging up an alpha version of this software now.. out in a few.
|
Top
|
|
|
|
#146677 - 04/03/2003 07:49
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: Yang]
|
carpal tunnel
Registered: 24/12/2001
Posts: 5528
|
Ahh. It did sound familar but I wasn't sure if it was because I'd read it here or somewhere else.
I was trying to work out how Palm, IR, Empeg, Ad-Hoc, Playlist and Creator together could make up Palantir
- Trevor
|
Top
|
|
|
|
#146678 - 04/03/2003 09:31
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: tman]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
Hey, as an applicaiton author, maybe you could help me out with this. I attempted (for a short amount of time) to get empire to fork() then return so that it could be run via Hijack's EXEC_ONCE command, and be up and listening all the time. Currently it has to be started via the shell or EXEC_ONCE'd with a &, which is a bad thing(tm).
I'm sure it's simple to get the app to fork and stay in the background, do you see anything obvious that I was doing wrong?
I will be working on integrating the .pdb creator code into Jemplode first (to get that out of the way) and then I will start working on the empire server after that, but if you could point me in the right direction with the forking, it would save me some time.
Thanks!!
|
Top
|
|
|
|
#146680 - 04/03/2003 09:43
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: cushman]
|
carpal tunnel
Registered: 24/12/2001
Posts: 5528
|
Use "daemon(0, 0);" to make it fork and do all the necessary bits to become a daemon. There are quite a few steps to do like closing stdin/out/err but daemon() does it all for you.
- Trevor
|
Top
|
|
|
|
#146681 - 04/03/2003 09:44
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: Daria]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
*laughs* sorry, I am getting my threads mixed up. I put an alpha version of the code out attached to this post. The relevant code is in empire.c in the main() function.
|
Top
|
|
|
|
#146682 - 04/03/2003 09:54
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: tman]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
Wow, that was easy! Thanks, Trevor! I'll post an update in the referred to thread.
|
Top
|
|
|
|
#146683 - 04/03/2003 11:10
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: cushman]
|
addict
Registered: 02/04/2002
Posts: 691
|
Wow! Looks very awesome, now just to find my palm pilot. Question? would it be possible to get the csv file from the empeg without having to sync it to the palm? I'm not sure if its possible, but to install empire on all my friends empegs, then when i go into their car, just load up the app on the palm, and it could get the empeg database via ir? that would be an awesome feature.
_________________________
Oliver
mk1 30gb: 129 | mk2a 30gb: 040104126
|
Top
|
|
|
|
#146684 - 04/03/2003 20:16
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: oliver]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
Sorry, that probably won't happen! As it is, my 480k database takes about 10 minutes to transfer over serial to the Palmpilot, and that is at the maximum serial speed. The max IrDA speed is probably well under that, and you would probably have line of sight issues, too. When Palantir beams the ad-hoc playlist to the Empeg, all that it is beaming is the FID's of the songs, all in a row, 8 bytes per song. A relatively large playlist would only take a few seconds to beam, but the whole database would take many minutes.
The reason that the .pdb file needs to be loaded from Jemplode is because there will need to be some tweaking of the data beforehand also. It's a good idea, but probably won't get implemented.
|
Top
|
|
|
|
#146685 - 04/03/2003 21:10
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: cushman]
|
addict
Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
|
My only thought is to have a thin-client controlled by the Empeg over IrDA. There's no need to tansfer all of the information to the palm, only what's to be displayed to the user right? Might make it harder to use though, as it would have to stay in line-of-sight all the time..
|
Top
|
|
|
|
#146686 - 18/03/2003 17:06
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: cushman]
|
carpal tunnel
Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
|
I just wanted to say WOW! This is one of those things that slipped under my radar but thanks to RioCar.org I'm getting caught up!
Could we add some common remote commands to this too? (Next Track, Previous Track, Info Mode, etc) ?
Thank you for making this available to us!
_________________________
Brad B.
|
Top
|
|
|
|
#146687 - 18/03/2003 18:23
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: SE_Sport_Driver]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
I was toying with the idea of making a "Remote Screen" that would look similar to the Empeg remote, but that is low on my list of priorities right now. I want to work on new features before I duplicate things that exist already with the remote. On a side note, I took my Empeg and Palm on a longish trip this weekend (climbing at the Red) and Palantir performed _very_ well as is, but there are still a few things that I want to improve on:
*Being able to re-sort the playlist after you have selected songs
*Creating a popup notification on the Empeg that will display how many songs were beamed to the Empeg (like the "Found matching artist" popups)
*Getting .pdb creation put into Jemplode when the new version of Jemplode comes out
*Track details on the Palm
|
Top
|
|
|
|
#146688 - 18/03/2003 19:30
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: cushman]
|
addict
Registered: 02/04/2002
Posts: 691
|
i just dug my palm 3 out of a deep hidden box. Then i had to find the cradle. How fun that was. I'm now trying to get everything setup so i can test out palantir, so i started off copying the palantir app to my palm, then i ran the PDBExporter, on your test.csv file. And uploaded that PDB to my palm.
When i try and start palantir on my palm, i get a fatal exception. I checked the version i'm running on my palm 3, and its 3.3. Any ideas?
_________________________
Oliver
mk1 30gb: 129 | mk2a 30gb: 040104126
|
Top
|
|
|
|
#146689 - 18/03/2003 19:51
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: oliver]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
Yup, it's a function that I used that is not available until version 3.5. Let me see if I can work around it and upload a new version sometime tonight. I am using TblGetItemPtr, and in the documentation for that function there is a workaround that I may be able to use.
In the meantime, you could upgrade your OS to 3.5 and it would work for ya, but I will try to fix it.
|
Top
|
|
|
|
#146690 - 18/03/2003 19:55
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: cushman]
|
addict
Registered: 02/04/2002
Posts: 691
|
i was looking around on palm's support website, and i could only find 3.5 for the palm 5 series. do you have a link to the update for the palm 3 series? Every link for 3.5 i could find on palms site went here
_________________________
Oliver
mk1 30gb: 129 | mk2a 30gb: 040104126
|
Top
|
|
|
|
#146691 - 18/03/2003 20:10
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: oliver]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
The upgrade is not available to buy or download from Palm anymore, although you could probably find it on some P2P network. Palm wants you to upgrade to version 4.1 which they sell for $30. Give me a bit and I'll have a new version out that will work for OS 3.0 and greater.
|
Top
|
|
|
|
#146692 - 18/03/2003 21:13
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: oliver]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
Could you please test this version of the software on your Palm? I tested it using the Palm Emulator (I do not have a Palm III) and I am seeing strange behavior when scrolling, but it probably works correctly on the device itself. What I see when scrolling in the Emulator is that it is not erasing the line before re-drawing the new line on top of it, so you get artifacts. Let me know if you see this.
Attachments
147322-palantir.prc (492 downloads)
|
Top
|
|
|
|
#146693 - 18/03/2003 21:19
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: cushman]
|
carpal tunnel
Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
|
This is cool. "Lost your RioCar remote? Buy a Palm Pilot cheap and use it as a backlit remote with extra features!"
I just checked and mine is running 4.0 so I guess I'm set.
_________________________
Brad B.
|
Top
|
|
|
|
#146694 - 18/03/2003 21:36
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: SE_Sport_Driver]
|
addict
Registered: 05/06/2002
Posts: 497
Loc: Hartsville, South Carolina for...
|
Until the remote feature is added this works quite well.
_________________________
Michael West
|
Top
|
|
|
|
#146695 - 18/03/2003 21:43
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: SE_Sport_Driver]
|
veteran
Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
|
Hrm.. I had thought that consumer IR wouldn't be that hard to implement in the Palm, but it looks like it is. All the API functions that Palm supplies you with only give you access to SIR, which is used on laptops and PDA's and phones, not devices like the empeg remote. I'll look into this further, but OmniRemote probably uses some kind of hack to get access to the IR device directly.
|
Top
|
|
|
|
#146696 - 18/03/2003 22:54
Re: Palantir - Palm Ad-Hoc Playlist Creator
[Re: cushman]
|
addict
Registered: 02/04/2002
Posts: 691
|
sweet, yup the program works, along with your test csv file. Now to get everything setup on my empeg
Thanks!
_________________________
Oliver
mk1 30gb: 129 | mk2a 30gb: 040104126
|
Top
|
|
|
|
|
|