Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 28 Sep 2016, 06:27
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Locator 3.5
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Author Message
Geoffrey


Joined: 30 May 2010
Posts: 2100
Location: Queensland

PostPosted: Thu 05 Feb 2015, 10:25    Post subject:  Locator 3.5
Subject description: Small app uses maps.googleapis.com to locate address and map coordinates
 

New version 3.5
Added option for larger map image.
Settings for zoom, map or satellite, text position and image size saved.
Fixed image not shown if there is a ampersand "&" in the location text, now replaces the "&" with "and".

New version 3.4
Added preference settings to select default save directory and file type, added more zoom levels

New version 3.3

Locator now only uses rsvg-convert to save the image as either PNG, PDF, EPS, PS, SVG, depending on the version of rsvg-convert used all these save formats may not be available.
Added error messaging and click on image to view location with Google Maps.

New version 3.2

Latest update, now the location text can be edited and positioned beneath the image.
The search now works a little better with the inclusion of comma's "," between each word within the script search string.
fixed a few annoyances, now functions cleanly, clearing the gui image and text on non searchable terminology.

New version 3.1

Latest version now has the location and coordinate text on the image, this can be saved as a PDF or PNG, PDF text is selectable.
The PDF save uses rsvg-convert, I think that's standad on most pups, the PNG save requires gst-launch-0.10, that's gstreamer with plugin-bad from what I gather.
To create a save just name the file something.pdf or something.png, if it don't work then you are missing the needed applications, to check if you have them
Code:
# which gst-launch-0.10
/usr/bin/gst-launch-0.10
# which rsvg-convert
/usr/bin/rsvg-convert

The image text is black on the map and white for the sat image, long text strings are folded to a second line, that should be enough from the tests I've done.
Hope this is found to be of some use Smile

New version 3.0
bug fixes
Reworked the GUI, no custom font's, enabled maximize, image now is resized to suit screen resolution, tested at 640x480, not that anyone would use that lower res.
changed zoom spinbutton to combobox, this makes it easier and quicker to specify a zoom level.
should be able to add gettext to this now,

New version 2.0, now views map image or satellite image with zoom.

I used the entry input as in pfind, just input the search text and hit enter on the keyboard. I found zoom works best with the scroll wheel, the mouse button sometimes jumps two steps.

I'm not at all proficient with scripting so others may like to do more to this.

If you have installed the older versions remove them first, as I have renamed the script "locator", it was "locator.sh".

New version 1.1, smaller GUI, larger font, will only run the one instance and can view the location on Google maps.
locator-3.5.pet
Description 
pet

 Download 
Filename  locator-3.5.pet 
Filesize  10.7 KB 
Downloaded  153 Time(s) 
locator3.5.jpg
 Description   
 Filesize   120.24 KB
 Viewed   276 Time(s)

locator3.5.jpg

locator-3.4.pet
Description 
pet

 Download 
Filename  locator-3.4.pet 
Filesize  10.09 KB 
Downloaded  117 Time(s) 
locator3.4.jpg
 Description   
 Filesize   37.71 KB
 Viewed   343 Time(s)

locator3.4.jpg

locator-3.3.pet
Description 
pet

 Download 
Filename  locator-3.3.pet 
Filesize  9.54 KB 
Downloaded  118 Time(s) 
locator3.3.jpg
 Description   
 Filesize   57.34 KB
 Viewed   412 Time(s)

locator3.3.jpg


_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE

Last edited by Geoffrey on Wed 06 May 2015, 07:37; edited 12 times in total
Back to top
View user's profile Send private message 
Jasper

Joined: 25 Apr 2010
Posts: 1350
Location: England

PostPosted: Thu 05 Feb 2015, 11:09    Post subject:  

Hi Geoffrey,

It's brilliant and lightning fast.

One aspect, which may be of interest, is if I enter my home address as:

House No, Street Name, Village, Town

xxxx xxx my full 7 character postcode is accurately displayed.

However, if my village is omitted, I get

xxxx (the first four characters of my postcode).

My regards and thanks
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2100
Location: Queensland

PostPosted: Thu 05 Feb 2015, 23:45    Post subject:  

Jasper wrote:
xxxx xxx my full 7 character postcode is accurately displayed.

However, if my village is omitted, I get

xxxx (the first four characters of my postcode).


I find that some aren't shown correctly unless it's give more info, a Google thing, other than a few minor glitches it works ok.

I was looking for a way to get coordinates, everywhere I looked it said that a key was required for the Google maps api, apparently not.

I've made a few changes, set the display font size, tightened the GUI, it was a bit big, now only one instance will run and you can view the location on Google maps.

New version 1.1 first post

_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2100
Location: Queensland

PostPosted: Wed 11 Feb 2015, 03:22    Post subject:  

Updated to version 2.0, now views maps and satellite images with zoom, see first post.
_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Wed 11 Feb 2015, 03:41    Post subject:  

Thanks Geoffrey

Works Fine in Fatdog64-700.
Thanks.

- Neeraj.

_________________
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.”
- Amara’s Law.
Back to top
View user's profile Send private message 
josejp2424


Joined: 01 Aug 2010
Posts: 339

PostPosted: Wed 11 Feb 2015, 08:08    Post subject: netbook
Subject description: netbook
 

Very good program, but gives problems in netbook screen with 10.

Not allows you to maximize.
Sorry for my english

Back to top
View user's profile Send private message Visit poster's website 
Geoffrey


Joined: 30 May 2010
Posts: 2100
Location: Queensland

PostPosted: Fri 13 Feb 2015, 17:46    Post subject: Re: netbook
Subject description: netbook
 

josejp2424 wrote:
Very good program, but gives problems in netbook screen with 10.

Not allows you to maximize.
Sorry for my english



The reason the gui don't fit your screen is that the font's other than the buttons are of a fixed size, the image is also fixed at 640x480.

I'll have a look at it and see what I can do, might have to scale the image to suit screen resolution.

_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2100
Location: Queensland

PostPosted: Sat 14 Feb 2015, 06:36    Post subject:  

Updated to version 3.0, it's now a more conventional GUI layout, see first post.
_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
josejp2424


Joined: 01 Aug 2010
Posts: 339

PostPosted: Tue 17 Feb 2015, 17:31    Post subject: locator
Subject description: locator
 

Now yes Thanks

Back to top
View user's profile Send private message Visit poster's website 
Geoffrey


Joined: 30 May 2010
Posts: 2100
Location: Queensland

PostPosted: Wed 18 Feb 2015, 02:53    Post subject: Re: locator
Subject description: locator
 

josejp2424 wrote:
Now yes Thanks


Here's a new version 3.1 with text on image, see first post.

_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2100
Location: Queensland

PostPosted: Mon 09 Mar 2015, 10:24    Post subject:  

Updated to version 3.2, see first post.
_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2100
Location: Queensland

PostPosted: Sat 25 Apr 2015, 21:20    Post subject:  

Updated to version 3.3, see first post.
_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
Moat

Joined: 16 Jul 2013
Posts: 572
Location: Mid-mitten, USA

PostPosted: Sun 26 Apr 2015, 01:00    Post subject:  

Neat little app - very fast and light way to access Google maps!

But these eyes are gettin' old, so - hope you don't mind a little feedback...

1) I can't re-size or maximize the window - the titlebar's maximize button is non-functional, and there are no drawn window borders to "grab" (Locator v3.3 on Precise 5.7.1 with Openbox as the WM). 1280x800 pix screen laptop.

Not sure if the actual image would/should resize larger, anyways...? Probably an Openbox-specific thing. Tried fiddling around with the size parms in the script, but found it to be a bit over this noob's head... Embarassed

2) In using, I find I'm wishing the zoom went out further - like maybe another 5 steps (i.e. 15-ish steps total) - out to, say, 500 kilometers or thereabouts. 25, 50, 100, 250, 500 km steps, maybe. That'd be nicer for quickly saving a "how do I get to that town?" map as a traveling/trip planning reference.

3) Also would be pretty slick if the image last saved directory (i.e. Pictures directory) and format (.png, .pdf, etc...) were saved between uses - or some way to at least set defaults for those.

In any case, a sweet little app - and a great lightweight addition to Puppy! Thanks,

Bob
Back to top
View user's profile Send private message 
Rangan Masti

Joined: 01 Jan 2013
Posts: 18
Location: Germany, Berlin

PostPosted: Sun 26 Apr 2015, 14:20    Post subject:  

I find this app good Laughing
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2100
Location: Queensland

PostPosted: Tue 28 Apr 2015, 00:18    Post subject:  

Updated to version 3.4, see first post.

Moat wrote:

1) I can't re-size or maximize the window - the titlebar's maximize button is non-functional, and there are no drawn window borders to "grab" (Locator v3.3 on Precise 5.7.1 with Openbox as the WM). 1280x800 pix screen laptop.


No the GUI is not resizable, the image determines the size, the image from google is a maximum of 640x640, the size downloaded is 640x480 then reduced to ⅓ for the display, this is so the GUI fits the screen in different resolutions.

Quote:
Tried fiddling around with the size parms in the script, but found it to be a bit over this noob's head


You can set the displayed image to ½ size, that might work for you ok, just edit the script at line number 29 change the 3 to a 2

Code:
WIDTH=$(( $W / 3 ))


Quote:
2) In using, I find I'm wishing the zoom went out further - like maybe another 5 steps (i.e. 15-ish steps total) - out to, say, 500 kilometers or thereabouts. 25, 50, 100, 250, 500 km steps, maybe. That'd be nicer for quickly saving a "how do I get to that town?" map as a traveling/trip planning reference.


Done added extra zoom levels.

Quote:
3) Also would be pretty slick if the image last saved directory (i.e. Pictures directory) and format (.png, .pdf, etc...) were saved between uses - or some way to at least set defaults for those.


Also done, thanks for the feedback.

_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0661s ][ Queries: 12 (0.0043s) ][ GZIP on ]