Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DIY Check your node on OLED display
#1
Hello,

I wanted to share the little code I made today.

Description:

It uses the API request to check if your node are connected or not and then it display on OLED ssd1306
It should also support ssd1309, ss1325, ss1331, sh1106 if you substitute the name in the code.



Requirements:
  • And OLED SSD1306 on i2c
  • you need latest luma.oled
  • check if your device is available here
Install

Code:
cd ~
git clone https://github.com/mrtom31/SkyDisplay.git
cd SkyDisplay
echo "MyPasswordSkycoin">secret.txt
Change "MyPasswordSkycoin" by ... I let you guess.

Usage
Check if it works first:
Code:
python OLEDSkycoinDisplay.py

Then use
Code:
crontab -e

to setup a schedule and add those lines:
Code:
* 8 * * * /home/pi/SkyDisplay/OLEDSkycoinDisplay.py
* 19 * * * kill $(cat /home/pi/SkyDisplay/pid.txt)

Replace
Code:
/home/pi
with the location where you cloned the repository.


Tell me if you have any issue.

[Image: giphy.gif]

Also it can scroll automatically with delay if you have lot of node. It doesn't show here since I only have 5 nodes.
[-] The following 1 user says Thank You to mrtom31 for this post:
  • skyguy
Reply
#2
Very impressive. Thanks for sharing
Reply
#3
(05-18-2019, 06:42 PM)skyguy Wrote: Very impressive. Thanks for sharing

Thanks.

My next step might be to enhance the status of connection from GOOD/FAIL to ONLINE/LOCAL/OFFLINE (or better)
Make a smarter and fancier display:
- only display if there is a connection issue (not all ONLINE)
- temperature if >70°C  
- ... looking for idea

I think that would be a great idea to integrate a low energy screen eInk waveshare for the Official Skywire. It would be pretty neat through the transparent glass. It's clearly not necessary though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)