Welcome Guest.   Make a donation to an author on the site April 24, 2014, 09:55:23 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Locate32 Live Search - a web GUI for Locate32  (Read 3428 times)
lotusrootstarch
Member
**
Posts: 160



People reckon I'll smash into Cody someday.

View Profile Give some DonationCredits to this forum member
« on: October 05, 2011, 03:59:21 AM »

Hi all,

Here I'm going to share with you a small web app I developed to access Locate32 search database over HTTP.

A little background/rant

I coded it out of frustration from all the fruitless efforts looking for a file-based indexing solution that both:
1. Indexes network share folders/mappings
2. Provides a web GUI for remote search queries.

I heavily rely on Locate32 to index, on a daily basis, all my mapped NAS drives across my residence. These individual NAS mappings contain significant amount of media files and folders (100K+) and are mapped in the same way as my DLNA server advertises to media devices (such as TVs, Blu-rays players, media players, iPads, Android tablets that supports DLNA or local streaming services).

With all the drives and multi-level nested folder structures advertised to the media devices by the DLNA server, navigating using remote control has becoming a major headache, in that the process itself is somewhat slow, really inefficient and unpleasant if you couldn't pinpoint where your stuff was.

This is the sad status of the current DLNA implementations - all the media are available to you for streaming, but you just might not know where they are.

To workaround this problem, I did frequent Locate32 searches on my PC prior to picking up the TV remote to make sure that I'll navigate to the right locations on first try, however the process of logging into RDP, waiting for the session to load and launching Locate32 program to do a simple quick search is somewhat discouraging. And when this process got repeated several dozen times a day, it proved itself unacceptable.

And imagine the trouble of maintaining a laptop in living room just for this process.


My small piece of solution - a web GUI for Locate32

on PC Chrome Browser


on iPad



How to deploy

1. Download and install Locate32

Daily builds of Locate32 can be found here: http://locate32.net/files/daily/

2. Create one or more databases and update schedules in Locate32




and note down the full path(s) to the database file(s).


3. Install an ASP.NET application server (such as IIS Express) or Turn on IIS with ASP.NET feature on Win 7 Ultimate

Win 7 Ultimate:
<a href="http://www.youtube.com/watch?v=6sAOqdJx_0k" target="_blank">http://www.youtube.com/watch?v=6sAOqdJx_0k</a>

Make sure your web server is running before moving on.


4. Download the attached source code and extract the content into the root directory of your web server/site.


5. Modify only the bold text below in settings.aspx to allow the scripts to correctly communicate with Locate32:

<script runat="server">

   string Path_To_Locate32 = @"C:\Program Files\Locate\"; <-- update this with the Locate32 installation path
        
   string[] Locate32_Database_Locations = new string[] {
      @"C:\Locate32 DB\default.dbs",   <-- update this with the full path you noted down in Step 2
   };
   
</script>


6. Navigate to your new live search site and enjoy instant results!


Credits

This is my first ASP.NET project, and I could not have done it without the help of the following:
1. Various authors - who contributed code snippets used in this project
2. Google - for finding (1)
3. Krishean @ Donationcoder - for testing and offering great advice on C# coding.
4. Lanux128 @ Donationcoder - for testing and valuable feedback.


Misc

View silly pic below to see how this can fit into your home DLNA environment:

* Locate32 Live Search Server ASPNET 0_1_5.rar (91.42 KB - downloaded 137 times.)
Logged

Get my apps in Android Market! Go droids go! smiley

cranioscopical
Friend of the Site
Supporting Member
**
Posts: 4,158



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: October 05, 2011, 09:56:08 AM »

Thanks for the carefully prepared briefing. Explanations are seldom as clear as this!
Logged

Chris
mouser
First Author
Administrator
*****
Posts: 32,700



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: October 07, 2011, 07:47:39 AM »

Pretty cool!
Logged
bx1999
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« Reply #3 on: May 01, 2012, 03:45:09 PM »

This looks superb, is there anyway to make it work with a few Db files?
I have each network server on another file.

thanks!
Logged
lotusrootstarch
Member
**
Posts: 160



People reckon I'll smash into Cody someday.

View Profile Give some DonationCredits to this forum member
« Reply #4 on: May 01, 2012, 08:03:11 PM »

hi bx1999,

sure thing. just add multiple dbs into locate32 in the settings
Logged

Get my apps in Android Market! Go droids go! smiley

bx1999
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« Reply #5 on: May 02, 2012, 03:56:56 AM »

Hi, thanks for your answer.
i dont really understand what you meant though.
i already have 4 DB's in locate32, what i did was trying to play with the code in "settings.aspx" but it didn't work
i tried this:
@"C:\IT\locate32\dc03.dbs","C:\IT\locate32\archive.dbs",      for example.


thank you for helping!
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.043s | Server load: 0.08 ]