[RELEASE] XBMC Earth - Google Earth and Geocoder / Geolocation Script

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
MrLight Offline
Skilled Python Coder
Posts: 26
Joined: Jan 2008
Reputation: 0
Post: #16
Hi all,

Thanks for testing my script.
Because Google has changed some URl-Parameters there was now map displayed in the last Version.
I have fixed that now.
I have although added some Basic Panoramio-Support.

Download the fixed Version from the first post...
I have done some testings with the Windows Version and the Xbox Version

MrLight
find quote
chihau Offline
Junior Member
Posts: 7
Joined: Jan 2009
Reputation: 0
Post: #17
I can't run the script in my xbmc 8.10 for mac

the xbmc.log output is:

15:11:35 T:2958921728 M:1158144000 NOTICE: -->Python Interpreter Initialized<--
15:11:35 T:2958921728 M:1158144000 NOTICE:
15:11:36 T:2958921728 M:1153912832 NOTICE: XBMC Earth Version: 0.50 Date: 15-01-2009
15:11:38 T:2958921728 M:1152524288 NOTICE: Traceback (most recent call last):
15:11:38 T:2958921728 M:1152524288 NOTICE: File "/Users/chihau/Library/Application Support/XBMC/scripts/Common Scripts/XBMC Earth/default.py", line 27, in ?
15:11:38 T:2958921728 M:1152520192 NOTICE:
15:11:38 T:2958921728 M:1152520192 NOTICE: from pic import Pic_GUI
15:11:38 T:2958921728 M:1152520192 NOTICE: File "/Users/chihau/Library/Application Support/XBMC/scripts/Common Scripts/XBMC Earth/resources/lib/pic.py", line 23, in ?
15:11:38 T:2958921728 M:1152520192 NOTICE:
15:11:38 T:2958921728 M:1152520192 NOTICE: from PIL import Image, ImageFont, ImageDraw, ImageFilter
15:11:38 T:2958921728 M:1152520192 NOTICE: File "/Users/chihau/Library/Application Support/XBMC/scripts/Common Scripts/XBMC Earth/resources/lib/PIL/ImageFont.py", line 115, in ?
15:11:38 T:2958921728 M:1152520192 NOTICE:
15:11:38 T:2958921728 M:1152520192 NOTICE: class FreeTypeFont:
15:11:38 T:2958921728 M:1152520192 NOTICE: File "/Users/chihau/Library/Application Support/XBMC/scripts/Common Scripts/XBMC Earth/resources/lib/PIL/ImageFont.py", line 135, in FreeTypeFont
15:11:38 T:2958921728 M:1152516096 NOTICE:
15:11:38 T:2958921728 M:1152516096 NOTICE: def getmask2(self, text, mode="", fill=Image.core.fill):
15:11:38 T:2958921728 M:1152516096 NOTICE: File "/Users/chihau/Library/Application Support/XBMC/scripts/Common Scripts/XBMC Earth/resources/lib/PIL/Image.py", line 36, in __getattr__
15:11:38 T:2958921728 M:1152516096 NOTICE:
15:11:38 T:2958921728 M:1152516096 NOTICE: raise ImportError("The _imaging C module is not installed")
15:11:38 T:2958921728 M:1152516096 NOTICE: ImportError
15:11:38 T:2958921728 M:1152516096 NOTICE: :
15:11:38 T:2958921728 M:1152516096 NOTICE: The _imaging C module is not installed
15:11:38 T:2958921728 M:1152516096 NOTICE:
15:11:38 T:2958921728 M:1152516096 ERROR: Scriptresult: Error
find quote
MrLight Offline
Skilled Python Coder
Posts: 26
Joined: Jan 2008
Reputation: 0
Post: #18
sorry - at this time there is no mac and no linux support...
I will fix this in a few weeks...
find quote
mjnman Offline
Junior Member
Posts: 9
Joined: Dec 2008
Reputation: 0
Post: #19
Hi,
is there a Linux version of Google Earth?
thanks
Matteo
find quote
greatant1337 Offline
Senior Member
Posts: 191
Joined: Jul 2008
Reputation: 0
Location: Gold Coast, Australia
Post: #20
This is an awesome script. Just not a big fan of the skin, so I've made an MC360 version.

I've been unable to change the positioning of the actual map/satellite images nor will they show over any other control. If there's ever a new version of this script map position would be a really useful thing to be able to change.

[Image: fjqa9e.jpg]
[Image: 2s7gtid.jpg]
(This post was last modified: 2009-05-13 04:08 by greatant1337.)
find quote
MrLight Offline
Skilled Python Coder
Posts: 26
Joined: Jan 2008
Reputation: 0
Post: #21
greatant1337 Wrote:This is an awesome script. Just not a big fan of the skin, so I've made an MC360 version.

I've been unable to change the positioning of the actual map/satellite images nor will they show over any other control. If there's ever a new version of this script map position would be a really useful thing to be able to change.

Hi greatant1337,

yes and no...
It is not possible to change the Position of the Map within the Skin XML-Files.
I started with no Skin support, so this part is actual hardcoded.

But you can change the Position of the Map in the code. So just set the value of
Code:
Line 90 in default.py
map_pos_x_windowed = 320
map_pos_y_windowed = 270
pic_size_windowed = 190

The map-pics are loaded before the skin-XML. Since XBMC has no Z-Index, for me this was the only way to keep the controls over the Map...
In the future it should be possible to integrate the Skin-Support for the Map. The Fullscreen Map uses the same pic-Objects so it could be a little tricky...So if you want to share your beautiful looking Skin, we can think about the full Skinsupport for multiple Skins... (I like the Navigation Objects, but the orange is not my favorite:rolleyesSmile


MrLight
(This post was last modified: 2009-05-15 09:44 by MrLight.)
find quote
greatant1337 Offline
Senior Member
Posts: 191
Joined: Jul 2008
Reputation: 0
Location: Gold Coast, Australia
Post: #22
MrLight Wrote:Hi greatant1337,

yes and no...
It is not possible to change the Position of the Map within the Skin XML-Files.
I started with no Skin support, so this part is actual hardcoded.

But you can change the Position of the Map in the code. So just set the value of
Code:
Line 90 in default.py
map_pos_x_windowed = 320
map_pos_y_windowed = 270
pic_size_windowed = 190

The map-pics are loaded before the skin-XML. Since XBMC has no Z-Index, for me this was the only way to keep the controls over the Map...
In the future it should be possible to integrate the Skin-Support for the Map. The Fullscreen Map uses the same pic-Objects so it could be a little tricky...So if you want to share your beautiful looking Skin, we can think about the full Skinsupport for multiple Skins... (I like the Navigation Objects, but the orange is not my favorite:rolleyesSmile


MrLight
Hey MrLight,
Thanks for replying and thanks for the killer script.
I assumed xml read last was displayed last and thus on top, isn't this how html also works (atleast without the css z-index)?

I have played around with those numbers quite a bit but then found the route line was off-position. Anyway I realise it's just cos certain things are hardcoded.

The orange is just part of the MC360 skin default theme. If the map were a control I would have the orange parts setup to reflect the current theme of the skin.

The skin is only partially complete, I wanted to rearrange some of the information some more to fit with MC360 and make the controls a little more user-friendly as well as add a pop-up image with button help.

Please do add skin support for the map. I imagine google earth would look pretty amazing integrated with some of the fancier skins.

I particularly like the media search selections in this skin.
Download
(This post was last modified: 2009-05-15 18:16 by greatant1337.)
find quote
MrLight Offline
Skilled Python Coder
Posts: 26
Joined: Jan 2008
Reputation: 0
Post: #23
Hi greatant1337,

I will try to make the script full skinable. At this time there are just a few problems.Frown But I think it should be possible...

First I will do the Linux integration which looks quiet good now.
So I think next weekend we could have a skinable test version... (all objects in the skin XML)

MrLight
find quote
greatant1337 Offline
Senior Member
Posts: 191
Joined: Jul 2008
Reputation: 0
Location: Gold Coast, Australia
Post: #24
MrLight Wrote:First I will do the Linux integration which looks quiet good now.
So I think next weekend we could have a skinable test version... (all objects in the skin XML)
Big Grin
find quote
MrLight Offline
Skilled Python Coder
Posts: 26
Joined: Jan 2008
Reputation: 0
Post: #25
Hi greatant1337,

one week more to go, but now I have uploaded a development Version of XBMC Earth with a few new features.

So the upcoming release shoud run under Linux, should have full Skin support and should bring a basic GoogleStreetView interface (which isn't finished yet).

So if you like you can check-out the Dev-Branche from the svn:
http://xbmcplugin.googlecode.com/svn/bra...rth%20dev/

Feel free to report bugs or missing things in the Skin Support or somewhere else.
I have insert some docs into the skin-XML-File...

Greatings
MrLight
find quote
greatant1337 Offline
Senior Member
Posts: 191
Joined: Jul 2008
Reputation: 0
Location: Gold Coast, Australia
Post: #26
I'm desperately searching for a kiss emoticon.

I'll check out the SVN and if possible begin skinning.

EDIT: I see now the problems you must have had in making this work properly with skinning in mind. Thank you very much.

EDIT2: Suggestion: I can't find the range of correct numbers, but I believe language strings should be numbers not already used by the default xbmc strings.xml.

Eg. Rather than: <string id="100">Move Map...</string>
perhaps: <string id="30100">Move Map...</string> (Just an example number)
(This post was last modified: 2009-05-30 14:44 by greatant1337.)
find quote
f3ar007 Offline
Member
Posts: 57
Joined: Apr 2009
Reputation: 0
Post: #27
This script is impressive, nice work!

In my win32 build, the buttons overlap the map a bit, are you aware of this?
find quote
greatant1337 Offline
Senior Member
Posts: 191
Joined: Jul 2008
Reputation: 0
Location: Gold Coast, Australia
Post: #28
f3ar007 Wrote:This script is impressive, nice work!

In my win32 build, the buttons overlap the map a bit, are you aware of this?

Yeah, he knows. MrLight has redone the skinning side of the script to make it easier to work with. I'm working on a new skin (MC360 and PM3 versions, more eventually) but am in the middle of exams right now so won't be working on it for about another week.
find quote
bertrand Offline
Member
Posts: 80
Joined: Apr 2009
Reputation: 0
Location: Lyon, france
Post: #29
Any news about the linux version ? Mine still doesn't start... Smile
find quote
MrLight Offline
Skilled Python Coder
Posts: 26
Joined: Jan 2008
Reputation: 0
Post: #30
Hi Bertrand,

look into the Dev-Branch (you can find a link a few posts before).
I think this version should run with Linux I have tested it with xbmc live...
find quote