Giovanni Gentile
Published © GPL3+

Omega Onion2 OLED Screen Show IP And LAN Name

I have an Omega Onion2. I use also the Power Dock. When I connect my Onion2 now I can see the IP address and the IP name.

BeginnerProtip764
Omega Onion2 OLED Screen Show IP And LAN Name

Things used in this project

Hardware components

i2c graphic screen
×1

Story

Read more

Code

Code snippet #5

Plain text
import datetime
import time
today = datetime.date.today()
time = (time.strftime("%H:%M:%S"))
print str(today)+"--"+time

Code snippet #10

Plain text
#!/bin/sholed-exp -c
#echo $1 > /root/ticker.txt
VAR1=$(python ./ip_script.py)
VAR2=$(python ./host_script.py)
VAR3=$(python ./date_script.py)
oled-exp -i
oled-exp cursor 0,4 write 'Omega Onion2'
oled-exp cursor 3,0 write $VAR1
oled-exp cursor 6,0 write $VAR2
oled-exp cursor 1,0 write $VAR3

Credits

Giovanni Gentile

Giovanni Gentile

36 projects • 98 followers
Graduated in Psychology Artificial Intelligence department. Expert in electronics, automation and IoT. Now working on VR-AR experiences.

Comments