Skip to content

Commit

Permalink
change the path to home folder for the setting
Browse files Browse the repository at this point in the history
  • Loading branch information
snakewa committed Mar 14, 2017
1 parent 8ca1a38 commit 063ae19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions projects/vlc-radio/phatbeatd/usr/bin/phatbeatd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ VLC_PORT = 9294
LOG_LEVEL = 0

PIDFILE = "/var/run/phatbeatd.pid"
STATEFILE = "/tmp/phatbeatd.json"
STATEFILE = "/home/pi/phatbeatd.json"
LOGFILE = "/var/log/phatbeatd.log"
ERRFILE = "/var/log/phatbeatd.err"

Expand Down Expand Up @@ -217,8 +217,9 @@ if __name__ == "__main__":
phatbeat.show()

read_state()
#init vol
if 'volume' in phatbeatd_state:
log('set initi volume: %d' % phatbeatd_state['volume'])
log('set init volume: %d' % phatbeatd_state['volume'])
log(vlc.communicate( "volume %d" % phatbeatd_state['volume']))

def store_volume(cmd_response):
Expand Down

0 comments on commit 063ae19

Please sign in to comment.