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 Tue 16 Oct 2018, 12:53
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 3 of 4 [50 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
Geoffrey


Joined: 30 May 2010
Posts: 2362
Location: Queensland

PostPosted: Sun 06 Aug 2017, 17:20    Post subject:  

Thanks guys, I tried to find the problem with Tahr a while back but gave up as I thought it was the way I was doing things, as MochiMoppel pointed out here.
MochiMoppel wrote:
Everything is fine as long as you use absolute paths for your image. Relative paths seem to work only in browsers. Inkscape has the same limitation. Hardly a "bug", and definitely not a Tahr issue.

http://murga-linux.com/puppy/viewtopic.php?t=98133

_________________
Carolina: Recent Repository Additions

Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1083
Location: SW Wisconsin

PostPosted: Sun 06 Aug 2017, 20:13    Post subject:  

I'm back in LxPupSc 17.08.1 which has librsvg 2.40.18, pretty much represents the current woof-ce, and has the failed embedding. Checked all of the dependencies listed on the librsvg site for that version and they are present, woof-installed, and the version numbers are exactly what is called for. Quickly tried a direct sub. of the older libraries and not unsurprisingly that wouldn't display any of the system icons. Alas, no progress, just a bit of additional data.
_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, and LxPupBB for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS. Now tazpup for puzzles Smile
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 986
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Mon 07 Aug 2017, 17:59    Post subject:  

Just an update about librsvg libs substitutions in 32 & 64 bit Xenialpup.

In 32-bit Xenialpup 7.0.8.1 substituting the librsvg libs from 32-bit precise fixes the Locator window map display in 32-bitXenialpup with no ill system effects so far.

In 64-bit Xenialpup 7.0.8.4 substituting the librsvg libs from 64-bit ubuntu precise does not fix the Locator window map display in 64-bit Xenialpup.

.
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 986
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Sun 20 Aug 2017, 03:01    Post subject:  

Udate about librsvg substitution in ttuuxxx 32-bit debian stretch-7.0.0a1

Works fine with no ill affects so far.

_________________
Giving with an expectation for return brings misery.
Back to top
View user's profile Send private message 
hamoudoudou

Joined: 24 Jul 2014
Posts: 1467
Location: rabat

PostPosted: Fri 06 Apr 2018, 19:56    Post subject: discovered in Green Puppy XFCE Chloe This Morning.  

discovered in Green Puppy XFCE Chloe This Morning. Good Idea to include it In your builds.
By Moat, April 2017 "Tahr is just my fat, amateur-ish, heavily re-mastered X-Tahr 2.0, by the Master Xfce Pup guru, rg66 - "
Does it really need translation ? Words are French words, Latin words
map = carte
save = sauver (Jpg 6x less than PNG)
capture11008.jpg
 Description   Does it really need translation ?
 Filesize   99.32 KB
 Viewed   573 Time(s)

capture11008.jpg

Back to top
View user's profile Send private message 
Marv


Joined: 04 May 2005
Posts: 1083
Location: SW Wisconsin

PostPosted: Sun 06 May 2018, 08:47    Post subject:  

Here is a modified Locator 3.7 I use now. The embedded map displays in newer pups with it. It is Geoffreys 3.7 with perdidos library substitution (THANKS!) incorporated using LD_PRELOAD so the older libraries are used only by Locator (see lines 10 through 12 in the script). LD_PRELOAD will accept entries as a (: or space) delimited list but separate entries are easier to read IMO. At this point I have used this in enough different 'modern' pups over enough time with no problems so I'll post it. 32 bit pups only at this time. The icon etc can obviously be changed to suit. It is just the one I use cross-pup at the moment.
locator-3.7.1.pet
Description  Patched for embedding in newer 32b pups.
pet

 Download 
Filename  locator-3.7.1.pet 
Filesize  106.21 KB 
Downloaded  138 Time(s) 

_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, and LxPupBB for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS. Now tazpup for puzzles Smile
Back to top
View user's profile Send private message 
perdido


Joined: 09 Dec 2013
Posts: 986
Location: ¿Altair IV , Just north of Eeyore Junction.?

PostPosted: Thu 23 Aug 2018, 20:56    Post subject:  

Marv wrote:
Here is a modified Locator 3.7 I use now. The embedded map displays in newer pups with it. It is Geoffreys 3.7 with perdidos library substitution (THANKS!) incorporated using LD_PRELOAD so the older libraries are used only by Locator (see lines 10 through 12 in the script). LD_PRELOAD will accept entries as a (: or space) delimited list but separate entries are easier to read IMO. At this point I have used this in enough different 'modern' pups over enough time with no problems so I'll post it. 32 bit pups only at this time. The icon etc can obviously be changed to suit. It is just the one I use cross-pup at the moment.


Hi Marv!
Outstanding!!!
This is working fine in UPUP Bionic Beaver Smile

Thanks a lot for fixing this for the later pups!!!

.

_________________
Giving with an expectation for return brings misery.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 8701
Location: Perth, Western Australia

PostPosted: Tue 11 Sep 2018, 06:40    Post subject:  

Hi guys,
Locator is nice, but I hit that same problem with librsvg.

As far as I can make out, librsvg no longer supports xlink:href="file://". Instead, you have to embed the image, in base64, and use xlink:href="data:".

base64 utility is a busybox applet, and should be in most/all pups and dogs.

I edited version 3.5, as that is the latest in the first page. /usr/bin/locator, line 274:

Code:
#20180911 librsvg no longer supports xlink:href="file:, need to embed image...
base64 /tmp/locator/.png > /tmp/locator/base64.txt
echo "<svg width=\"640\" height=\"${IMAGE_HEIGHT}\">
   <image width=\"640\" height=\"480\" xlink:href=\"data:image/png;base64," > /tmp/locator/map.svg
cat /tmp/locator/base64.txt >> /tmp/locator/map.svg
echo '" />' >> /tmp/locator/map.svg

echo   '<text x="50%" y="'$TXT_LINE1'%"
     style="text-anchor: middle; fill: '$FILL'; stroke: none; font-weight: bold; font-family: serif; font-size: '$FONT_SIZE'px;">
      '$ADDRESS'   
</text>
<text x="50%" y="'$TXT_LINE2'%"
     style="text-anchor: middle; fill: '$FILL'; stroke: none; font-weight: bold; font-family: serif; font-size: '$FONT_SIZE'px;">
      '$ADDRESS2'   
</text>
<text x="50%" y="'$TXT_LINE3'%"
      style="text-anchor: middle; fill: '$FILL'; stroke: none; font-weight: bold; font-family: serif; font-size: 18px;">
     Latitude: '$LATITUDE' Longitude: '$LONGITUDE'
</text>     
</svg> ' >> /tmp/locator/map.svg


Works!
Well, the above could be improved, can remove that intermediate "base64.txt".

Script attached, remove the .gz, set executable:
locator.gz
Description  false .gz, just rename to 'locator'
gz

 Download 
Filename  locator.gz 
Filesize  38.77 KB 
Downloaded  37 Time(s) 

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Marv


Joined: 04 May 2005
Posts: 1083
Location: SW Wisconsin

PostPosted: Tue 11 Sep 2018, 11:40    Post subject:  

Thanks!
Tested in upupcc-18.09alpha1 and lxpupsc64-18.06 +6 for now as those are what I'm running most. Also applied BarryKs patch to Geoffreys 3.70 and tested it in the above pups. It is working well in both.

_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, and LxPupBB for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS. Now tazpup for puzzles Smile

Last edited by Marv on Tue 11 Sep 2018, 18:25; edited 1 time in total
Back to top
View user's profile Send private message 
roadkill13

Joined: 10 Aug 2011
Posts: 143
Location: United States

PostPosted: Tue 11 Sep 2018, 15:41    Post subject:  

@Marv wrote:
Quote:
Tested in upupcc-18.09alpha1 and lxpupsc64-18.06 +6 for now as those are what I'm running most. Also applied the patch to Geoffreys 3.70 and tested it in the above pups. It is working well in both.


I successfully tested the patch with Marv's version 3.7.1 in Quirky Xerus 8.6 as well. Thank you for that version Marv. Geoffrey had a great idea!

@BarryK

Thank you for the patch.
Back to top
View user's profile Send private message Yahoo Messenger 
Marv


Joined: 04 May 2005
Posts: 1083
Location: SW Wisconsin

PostPosted: Tue 11 Sep 2018, 18:32    Post subject:  

I edited my post 2 posts above to clarify that I now have tested BarryKs patch in the 3.70 version. My original approach adding in the older libraries worked reliably in a wide variety of pups but did not work in 64b puppies and involved carrying the older libraries. BarryK did it right. Less overhead and works in both 64b and 32b pups.
_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, and LxPupBB for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS. Now tazpup for puzzles Smile
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 8701
Location: Perth, Western Australia

PostPosted: Tue 11 Sep 2018, 21:53    Post subject:  

I created a PET in the repo for EasyOS and Quirky, gave it version number 3.7.2:

http://bkhome.org/news/201809/locator-map-and-satellite-viewer.html

It should work in all pups.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 8701
Location: Perth, Western Australia

PostPosted: Mon 17 Sep 2018, 08:18    Post subject:  

I am finding using Locator is hit-and-miss, mostly miss. When addresses are entered, failure is reported. Actually, the text returned in /tmp/locator/LOCATION is:

Code:
{
   "error_message" : "Keyless access to Google Maps Platform is deprecated. Please use an API key with all your API calls to avoid service interruption. For further details please refer to http://g.co/dev/maps-no-account",
   "results" : [],
   "status" : "OVER_QUERY_LIMIT"
}


It is making Locator pretty much unusable. Supposed to get an api key:

https://cloud.google.com/maps-platform/user-guide/account-changes/

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Marv


Joined: 04 May 2005
Posts: 1083
Location: SW Wisconsin

PostPosted: Mon 17 Sep 2018, 08:22    Post subject: gooooogle monkeywrench alert  

All patched flavors of locator were working well and displaying maps on all pups for me as of September 11 2018 here. Alas, they no longer do for me. The reason is that google is now is enforcing the requirement for an API developer key for static maps so the wget line to retrieve the static map fails with a 403 error. Could someone confirm? The Lat and Long retrieval and clickthrough to google maps still work here. Grrr. BarryK confirmed while I was typing...
_________________
Pups currently in kennel Very Happy LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64, and LxPupBB for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS. Now tazpup for puzzles Smile
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2362
Location: Queensland

PostPosted: Tue 18 Sep 2018, 00:08    Post subject: Re: gooooogle monkeywrench alert  

Marv wrote:
Grrr. BarryK confirmed while I was typing...


That's a shame guy's, when I first started this I did so as I found it didn't need a api key, then a key was only required the retrieve more detailed information.

Image retrieval appears to still work

https://maps.google.com/maps/api/staticmap?center=46.309462,%20-0.9928649999999999&zoom=20&size=640x480&sensor=false&maptype=satellite

That would be right now it won't let the map view, they must be watching me it worked fine earlier today.

_________________
Carolina: Recent Repository Additions


Last edited by Geoffrey on Wed 19 Sep 2018, 04:35; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 4 [50 Posts]   Goto page: Previous 1, 2, 3, 4 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.1659s ][ Queries: 15 (0.0163s) ][ GZIP on ]