Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
fixed crash in installer when system time isn't set properly (#16), r…
Browse files Browse the repository at this point in the history
…emoved legacy comments
  • Loading branch information
xtools-at committed Jul 28, 2017
1 parent 06292e2 commit 552ed07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,13 @@ class Player(object):
playlist_last_item = None
progressReportRequired = []

###
# last_playlist = None
###

def __init__(self, config, platform, pHandler): # pylint: disable=redefined-outer-name
self.config = config
self.platform = platform
self.pHandler = pHandler # pylint: disable=invalid-name
self.tunein_parser = tunein.TuneIn(5000)

def play_playlist(self, payload):
###
# self.last_playlist = payload
###
self.navigation_token = payload['navigationToken']
self.playlist_last_item = payload['audioItem']['streams'][-1]['streamId']

Expand Down Expand Up @@ -563,15 +556,6 @@ def process_response(response):

logger.debug("new volume = %s", volume)

'''
This causes a deadlock on triggers
### Resume playing the last station after setting volume
if player.last_playlist is not None:
player.play_playlist(player.last_playlist)
###
'''


# Additional Audio Iten
elif 'audioItem' in j['messageBody']:
player.play_playlist(j['messageBody'])
Expand Down
6 changes: 6 additions & 0 deletions src/scripts/install_assistant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ fi


# Will enter here if Directory exists

# Sync system time to prevent problems while installing pip
sudo systemctl stop ntp
sudo ntpd -gq
sudo systemctl start ntp
# Install pip
/opt/AlexaPi/env/bin/pip install pip setuptools --upgrade

# Install forked Assistant SDK
Expand Down

0 comments on commit 552ed07

Please sign in to comment.