Aenderungen notwendig fuer minibian (root only)

This commit is contained in:
Starcalc 2017-08-13 19:43:26 +02:00
parent 6042cde5ba
commit c40a946c12
5 changed files with 61236 additions and 5 deletions

2
FlipdotSender.py Normal file → Executable file
View File

@ -23,7 +23,7 @@ class FlipdotSender(object):
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_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',
chars_per_line=11):

6
hangman.py Normal file → Executable file
View File

@ -47,7 +47,8 @@ class Hangman(object):
self._fo_word= (15, -1) #(15, -1)
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/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="./hangman/wordlists/nerdwords.txt" #<- use for local testing
@ -56,7 +57,8 @@ class Hangman(object):
self._g_displword="" #display word
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._hmimg=[]

File diff suppressed because it is too large Load Diff

0
mqtt-to-flipdot.py Normal file → Executable file
View File

View File

@ -1,6 +1,8 @@
#!/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
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