Browse Source

ui fixes touchscreen

v1.3
Christian Rotzoll 6 years ago
parent
commit
0e8427dfe2
  1. 2
      home.admin/00infoBlitz.sh
  2. 1
      home.admin/00infoLCD.sh
  3. 35
      home.admin/00infoLCDTK.py

2
home.admin/00infoBlitz.sh

@ -292,7 +292,7 @@ ${color_yellow} ${color_gray}${network} Fullnode + Lightning Netwo
${color_yellow} ,/ ${color_yellow}%s ${color_yellow} ,/ ${color_yellow}%s
${color_yellow} ,'/ ${color_gray}%s, temp %s°C %s°F ${color_yellow} ,'/ ${color_gray}%s, temp %s°C %s°F
${color_yellow} ,' / ${color_gray}Free Mem ${color_ram}${ram} ${color_gray} HDDuse ${color_hdd}%s${color_gray} ${color_yellow} ,' / ${color_gray}Free Mem ${color_ram}${ram} ${color_gray} HDDuse ${color_hdd}%s${color_gray}
${color_yellow} ,' /_____, ${color_gray}ssh admin@${color_green}${local_ip}${color_gray} ${network_rx}${network_tx} ${color_yellow} ,' /_____, ${color_gray}ssh admin@${color_green}${local_ip}${color_gray} d${network_rx} u${network_tx}
${color_yellow} .'____ ,' ${color_gray}${webinterfaceInfo} ${color_yellow} .'____ ,' ${color_gray}${webinterfaceInfo}
${color_yellow} / ,' ${color_gray}${network} ${color_green}${networkVersion} ${chain}net ${color_gray}Sync ${sync_color}${sync} %s ${color_yellow} / ,' ${color_gray}${network} ${color_green}${networkVersion} ${chain}net ${color_gray}Sync ${sync_color}${sync} %s
${color_yellow} / ,' ${color_gray}${public_addr_pre}${public_color}${public_addr} ${public}${networkConnectionsInfo} ${color_yellow} / ,' ${color_gray}${public_addr_pre}${public_color}${public_addr} ${public}${networkConnectionsInfo}

1
home.admin/00infoLCD.sh

@ -214,7 +214,6 @@ while :
if [ ${#touchscreen} -gt 0 ] && [ ${touchscreen} -gt 0 ]; then if [ ${#touchscreen} -gt 0 ] && [ ${touchscreen} -gt 0 ]; then
echo "" echo ""
echo "" echo ""
echo ""
fi fi
sleep 5 sleep 5

35
home.admin/00infoLCDTK.py

@ -81,17 +81,22 @@ def setup_logging(default_path='00infoLCDw.json'):
def callback_b1(): def callback_b1():
global WINFO global WINFO
log.info("clicked b1") log.info("clicked b1 - no action yet (placeholder)")
if sys.platform != "win32": #if sys.platform != "win32":
os.system("xterm -fn fixed -into %d +sb -hold /home/admin/00infoLCD.sh &" % WINFO) # os.system("xterm -fn fixed -into %d +sb -hold /home/admin/00infoLCD.sh &" % WINFO)
def callback_b2(): def callback_b2():
global WINFO global WINFO
log.info("clicked b2") log.info("clicked b2 - no action yet (placeholder)")
if sys.platform != "win32": #if sys.platform != "win32":
os.system("xterm -fn fixed -into %d +sb -hold /home/admin/XXbutton2.sh &" % WINFO) # os.system("xterm -fn fixed -into %d +sb -hold /home/admin/XXbutton2.sh &" % WINFO)
def callback_b3():
global WINFO
log.info("clicked b3 - no action yet")
#if sys.platform != "win32":
# os.system("xterm -fn fixed -into %d +sb -hold /home/admin/XXbutton3.sh &" % WINFO)
def callback_b4(): def callback_b4():
global WINFO global WINFO
@ -121,19 +126,21 @@ def main():
frame1 = tk.Frame(entry, width=80, background="black") frame1 = tk.Frame(entry, width=80, background="black")
frame1.pack(side="left", fill="both", expand=True) frame1.pack(side="left", fill="both", expand=True)
# button 1 # button 1 - no action yet (placeholder)
button1 = tk.Button(frame1, text='\u0397', fg='black', command=callback_b1) button1 = tk.Button(frame1, text='\u002d', fg='black', command=callback_b1)
button1.pack(pady=24) button1.pack(pady=24)
# button 2 # button 2 - no action yet (placeholder)
button2 = tk.Button(frame1, text='\u0399', fg='black', command=callback_b2) button2 = tk.Button(frame1, text='\u002d', fg='black', command=callback_b2)
button2.pack(pady=24) button2.pack(pady=24)
# button 3 # button 3 - no action yet (placeholder)
label3 = tk.Label(frame1, text='1.3', bg=COLOR, fg='white') button3 = tk.Button(frame1, text='\u002d', fg='black', command=callback_b3)
label3.pack(pady=24) button3.pack(pady=24)
#label3 = tk.Label(frame1, text='1.3', bg=COLOR, fg='white')
#label3.pack(pady=24)
# button 4 # button 4 - no action yet (power down)
button4 = tk.Button(frame1, text='\N{BLACK CIRCLE}', fg='red', command=callback_b4) button4 = tk.Button(frame1, text='\N{BLACK CIRCLE}', fg='red', command=callback_b4)
button4.pack(pady=24) button4.pack(pady=24)

Loading…
Cancel
Save