change the python version in startscript

git-svn-id: http://www.neo1973-germany.de/svn@243 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
fgau 2009-02-12 18:24:28 +00:00
parent 150ca000ad
commit 4022435bdd
5 changed files with 13 additions and 18 deletions

View file

@ -4,4 +4,4 @@ NAME=epydial
PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH
TZ=MET; export TZ TZ=MET; export TZ
cd /usr/share/$NAME cd /usr/share/$NAME
exec python2.5 ./$NAME.py > /media/card/$NAME.log 2>&1 exec python ./$NAME.py > /media/card/$NAME.log 2>&1

View file

@ -87,7 +87,7 @@ class AudioScreen(EdjeGroup):
def on_get_mp3_tags(self, status): def on_get_mp3_tags(self, status):
PyneoController.get_song_duration() PyneoController.get_song_duration()
PyneoController.get_song_position() # PyneoController.get_song_position()
try: try:
self.image.delete() self.image.delete()
except: except:
@ -133,8 +133,6 @@ class AudioScreen(EdjeGroup):
PyneoController.get_mp3_tags() PyneoController.get_mp3_tags()
self.toggle = 1 self.toggle = 1
elif self.toggle == 1: elif self.toggle == 1:
print '--- timer stoppen'
self.e_timer.delete()
self.signal_emit("key2", "") self.signal_emit("key2", "")
PyneoController.pause_music() PyneoController.pause_music()
self.toggle = 0 self.toggle = 0
@ -142,6 +140,7 @@ class AudioScreen(EdjeGroup):
self.signal_emit("key2", "") self.signal_emit("key2", "")
self.toggle = 0 self.toggle = 0
PyneoController.stop_music() PyneoController.stop_music()
PyneoController.get_mp3_tags()
if source == "track_right": if source == "track_right":
PyneoController.next_music() PyneoController.next_music()
if source == "track_left": if source == "track_left":

View file

@ -27,14 +27,14 @@ class DialerScreen(EdjeGroup):
# PyneoController.register_callback("gsm_dialing", self.on_gsm_dialing) # PyneoController.register_callback("gsm_dialing", self.on_gsm_dialing)
PyneoController.register_callback("gsm_operator_change", self.on_gsm_operator_change) PyneoController.register_callback("gsm_operator_change", self.on_gsm_operator_change)
PyneoController.register_callback("gsm_signal_strength_change", self.on_gsm_signal_strength_change) PyneoController.register_callback("gsm_signal_strength_change", self.on_gsm_signal_strength_change)
PyneoController.register_callback("battvolt_change", self.on_battvolt_change) PyneoController.register_callback("capacity_change", self.on_capacity_change)
def on_battvolt_change(self, battvolt, chgmode): def on_capacity_change(self, status):
if chgmode == "play-only" or chgmode == "idle": # if chgmode == "play-only" or chgmode == "idle":
EdjeGroup.color_class_set(self, "battvolt_active", 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0) # EdjeGroup.color_class_set(self, "battvolt_active", 255, 255, 255, 64, 0, 0, 0, 0, 0, 0, 0, 0)
else: # else:
EdjeGroup.color_class_set(self, "battvolt_active", 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, 0, 0) # EdjeGroup.color_class_set(self, "battvolt_active", 255, 255, 255, 128, 0, 0, 0, 0, 0, 0, 0, 0)
self.part_text_set("battvolt_text", "%s V"%str(battvolt)[:4]) self.part_text_set("battvolt_text", "%s" % status['capacity'])
def on_sim_key_required(self, key_type): def on_sim_key_required(self, key_type):
print '---', 'opening keyring' print '---', 'opening keyring'

View file

@ -363,8 +363,8 @@ class PyneoController(object):
def on_pwr_status(class_, status_map): def on_pwr_status(class_, status_map):
status = dedbusmap(status_map) status = dedbusmap(status_map)
print "POWER Status: " + str(status) print "POWER Status: " + str(status)
if status.has_key('battvolt'): # if status.has_key('battvolt'):
class_.notify_callbacks("battvolt_change", status['battvolt'], status['chgmode']) class_.notify_callbacks("capacity_change", status)
class_.notify_callbacks("pwr_status_change", status) class_.notify_callbacks("pwr_status_change", status)
@classmethod @classmethod

View file

@ -73,8 +73,4 @@ class GsmStatusScreen(EdjeGroup):
PyneoController.power_down_gsm() PyneoController.power_down_gsm()
elif source == "on" and status == "off": elif source == "on" and status == "off":
PyneoController.power_up_gsm() PyneoController.power_up_gsm()
# elif source == "button_right_bg_brightness": print 'source: ', source
# PyneoController.brightness_change(source)
# elif source == "button_left_bg_brightness":
# PyneoController.brightness_change(source)