Aenderungen notwendig fuer minibian (root only)
This commit is contained in:
parent
6042cde5ba
commit
c40a946c12
|
@ -23,7 +23,7 @@ class FlipdotSender(object):
|
||||||
def __init__(self, udphost, udpport, img_size=(80,16), font_size=9, font_size_scroll=12,
|
def __init__(self, udphost, udpport, img_size=(80,16), font_size=9, font_size_scroll=12,
|
||||||
font_offset1=(0,0), font_offset2=(0,8),
|
font_offset1=(0,0), font_offset2=(0,8),
|
||||||
#font_family='/usr/share/fonts/gnu-free/FreeMono.ttf',
|
#font_family='/usr/share/fonts/gnu-free/FreeMono.ttf',
|
||||||
font_family='/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf',
|
font_family='/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf',
|
||||||
#font_family='/usr/share/fonts/truetype/freefont/FreeMono.ttf',
|
#font_family='/usr/share/fonts/truetype/freefont/FreeMono.ttf',
|
||||||
|
|
||||||
chars_per_line=11):
|
chars_per_line=11):
|
||||||
|
|
|
@ -47,7 +47,8 @@ class Hangman(object):
|
||||||
self._fo_word= (15, -1) #(15, -1)
|
self._fo_word= (15, -1) #(15, -1)
|
||||||
self._fo_word2= (15, 7) #(15,7)
|
self._fo_word2= (15, 7) #(15,7)
|
||||||
#self._wordlist="/home/pi/mqtt-to-flipdot/hangman/wordlists/nomenliste_de.txt"
|
#self._wordlist="/home/pi/mqtt-to-flipdot/hangman/wordlists/nomenliste_de.txt"
|
||||||
self._wordlist="/home/pi/mqtt-to-flipdot/hangman/wordlists/wordsonly.txt"
|
#self._wordlist="/home/pi/mqtt-to-flipdot/hangman/wordlists/wordsonly.txt"
|
||||||
|
self._wordlist="/root/mqtt-to-flipdot/hangman/wordlists/wordsonly.txt"
|
||||||
|
|
||||||
#self._wordlist="/home/pi/mqtt-to-flipdot/hangman/wordlists/nerdwords.txt"
|
#self._wordlist="/home/pi/mqtt-to-flipdot/hangman/wordlists/nerdwords.txt"
|
||||||
#self._wordlist="./hangman/wordlists/nerdwords.txt" #<- use for local testing
|
#self._wordlist="./hangman/wordlists/nerdwords.txt" #<- use for local testing
|
||||||
|
@ -56,7 +57,8 @@ class Hangman(object):
|
||||||
self._g_displword="" #display word
|
self._g_displword="" #display word
|
||||||
self._g_chars="" #used characters
|
self._g_chars="" #used characters
|
||||||
|
|
||||||
self._hmdir="/home/pi/mqtt-to-flipdot/hangman/stdhm/"
|
# self._hmdir="/home/pi/mqtt-to-flipdot/hangman/stdhm/"
|
||||||
|
self._hmdir="/root/mqtt-to-flipdot/hangman/stdhm/"
|
||||||
#self._hmdir="./hangman/stdhm/" #<- use for local testing
|
#self._hmdir="./hangman/stdhm/" #<- use for local testing
|
||||||
|
|
||||||
self._hmimg=[]
|
self._hmimg=[]
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd /home/pi/mqtt-to-flipdot
|
#cd /home/pi/mqtt-to-flipdot
|
||||||
|
cd /root/mqtt-to-flipdot
|
||||||
|
|
||||||
#/usr/bin/python3 mqtt-to-flipdot.py
|
#/usr/bin/python3 mqtt-to-flipdot.py
|
||||||
su pi -c "screen -dmS ausflippen python3 mqtt-to-flipdot.py"
|
# su pi -c "screen -dmS ausflippen python3 mqtt-to-flipdot.py"
|
||||||
|
screen -dmS ausflippen python3 mqtt-to-flipdot.py
|
||||||
|
|
Loading…
Reference in New Issue