~klnavarro98/earth17/trunk

« back to all changes in this revision

Viewing changes to src/earth17.py

  • Committer: klnavarro
  • Date: 2008-11-16 21:09:02 UTC
  • Revision ID: mickey@bunny-20081116210902-4f315143458a03f5
Add starmap and new XPlanet config file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
# Specific variables for pydoc
30
30
__author__ = "MiKael Navarro <klnavarro@gmail.com>"
31
 
__date__ = "Wed Nov 12 2008"
32
 
__version__ = "0.1.1"
 
31
__date__ = "Sun Nov 16 2008"
 
32
__version__ = "0.1.2"
33
33
__credits__ = """Thanks to Michal Pasternak for download_clouds.py
34
34
and Steve Jones for its initial e17XPlanet project."""
35
35
 
54
54
ENLIGHTENMENT_APPLICATIONS = os.path.join(ENLIGHTENMENT_CONFDIR, "applications", "all")
55
55
 
56
56
NICE = 5  # 5 is a nice background level
57
 
SLEEP_TIME = 1800  # 300s = 5min
 
57
SLEEP_TIME = 600  # 300s = 5min
58
58
 
59
59
# Clouds
60
60
CLOUDS_MAP = "earth_clouds.jpg"
130
130
 
131
131
    # Call XPlanet to generate Earth image
132
132
    xplanet_cmd = XPLANET_PROG
133
 
    xplanet_cmd += " -label_string \"Gaia\" -labelpos +0+0 -body earth -north orbit -radius 60"
 
133
    xplanet_cmd += " -label_string \"Gaia\" -labelpos +10+10 -body earth -north orbit -radius 60"
134
134
    xplanet_cmd += " -longitude 6 -latitude 43.5"
135
135
    #xplanet_cmd += " -origin sun -date 20021204.060000"
 
136
    xplanet_cmd += " -starmap BSC -range 300"
136
137
    xplanet_cmd += " -searchdir %s" % earth17_confdir
137
138
    xplanet_cmd += " -geometry %s " % screen_res
138
139
    xplanet_cmd += " -output %s -num_times 1" % os.path.join(earth17_confdir, "images", xplanet_img)
222
223
            print "Enlightenment not running!"
223
224
            break
224
225
        
 
226
        # Set enlightenment backgrounds
 
227
        set_backgrounds(options.confdir, XPLANET_IMG)
 
228
 
225
229
        # Download clouds map
226
230
        download_clouds(options.confdir, CLOUDS_MAP)
227
231
 
231
235
        # Update earth17.edc and compile edj file
232
236
        compile_edje(options.confdir, XPLANET_IMG)
233
237
 
234
 
        # Update enlightenment backgrounds
235
 
        set_backgrounds(options.confdir, XPLANET_IMG)
236
 
 
237
238
        # Wait next run...
238
239
        print "Sleep... "
239
240
        time.sleep(SLEEP_TIME)