pioneer600

Pioneer600 sample for headless raspberry pi servers
git clone git://git.ckyln.com/pioneer600.git
Log | Files | Refs | README

commit 06f622fdf7cfdb32c38b5da7a4e87907b85884f2
parent af652d123e1d9d83ce9d8b902e424e18052cfcda
Author: Cem Keylan <32103268+cemkeylan@users.noreply.github.com>
Date:   Sat, 15 Sep 2018 02:53:15 +0300

Merge pull request #4 from cemkeylan/next

Polished the main screen
Diffstat:
MPioneer600.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Pioneer600.py b/Pioneer600.py @@ -2,7 +2,7 @@ # -*- coding:utf-8 -*- # Cem KEYLAN # 2018 -# Version 1.0 +# Version 1.1 import RPi.GPIO as GPIO @@ -67,6 +67,7 @@ def menu (): # Main Information delivering up status if main_menu == 1 : + strtime = time.strftime("%H : %M : %S") if submenus == 4: submenus = 1 @@ -78,7 +79,7 @@ def menu (): upstatus = "Down" else: upstatus = "UP" - oled("Status = " + upstatus,os.popen("hostname -I").read(),"by Cem Keylan") + oled("Status = " + upstatus,os.popen("/sbin/ifconfig eth0 | grep 'inet ' | cut -d: -f2 | awk '{ print $2}'").read(), strtime) elif submenus == 3 : if "active" in os.popen("sudo service ssh status").read(): upssh = "UP" @@ -216,7 +217,7 @@ GPIO.setup(KEY,GPIO.IN,GPIO.PUD_UP) bus = smbus.SMBus(1) print("Starting...") -print("Version 1.0") +print("Version 1.1") try: while True: