Florent Kosmala

Date: 03/20/2022 - Upvotes : 133 - Words : 482

Fun With DIY : Proposal progression display

Hello everybody ! Today, I want to see how my proposal evolves day by day. Instead of refresh PeakD or Ecency page, I create a small thing with a small screen that i have collected many months ago, and a Raspberry Pi 4 that was sleeping in a drawer. Ladies & gentlemen, let me show you the PPD : Proposal Progression Display ! ![I love this DIY !](https://files.peakd.com/file/peakd-hive/bambukah/EoeDTrTfz3Tj6xRjUL2gR5B2MJfvC1GDQAKFPT1VyVmhfmjGiNwPSrHeD96JeucCFTs.jpg) If you like the project, don't forget to vote for the SuperHive proposal on [**PeakD**](https://peakd.com/me/proposals/211) or [**Ecency**](https://ecency.com/proposals/211) ## Materials : For this tutorial, I'll skip the wood case construction, it's only 4 pieces of wood glued together and paint in black. But I'll focus on configuration & coding. For this tutorial, you need : - A Raspberry PI 3 or 4 - A HDMI screen, mine is the Waveshare 7.9 LCD touchscreen - A Raspbian Lite SD Card ![Materials used for this tutorial](https://files.peakd.com/file/peakd-hive/bambukah/EoGwxCqeoAXBKU67QvksppzWAz7e85K8AyptHjodCq3BwPbUiwALu1NrCbhryRAEa3r.jpg) ## Dependencies installation After installing Raspbian Lite on the SD card, we will install X server (for displaying the browser), Chromium browser (to show the progress web page in kiosk mode), NginX to serve the page. Let's go, conect to your Pi with SSH and execute : ``` sudo apt update sudo apt install --no-install-recommends xserver-xorg-video-all xserver-xorg-input-all xserver-xorg-core xinit x11-xserver-utils chromium-browser unclutter nginx git ``` Also, you need to activate the console autologin to load X server & Chromium at startup. So execute `sudo raspi-config`, select `System options -> S5 Boot / Autogin` and choose `B2 Console autologin` ## Configuration ### Display server After installing all dependencies, It's the time for configuration. The first thing I want is to load display server with Chromium. Edit / Create the /home/pi/.bash_profile, and copy/paste this script : ``` if [ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ] then startx fi ``` ### Chromium It's ok for X, We need to do the same for Chromium, edit the /home/pi/.xinitrc and paste this script : ``` #!/usr/bin/env sh xset -dpms xset s off xset s noblank unclutter & chromium-browser https://localhost/ --window-position=0,0 --start-fullscreen --kiosk --incognito --noerrdialogs --disable-translate --no-first-run --fast --fast-start --disable-infobars --disable-features=TranslateUI --disk-cache-dir=/dev/null --overscroll-history-navigation=0 --disable-pinch --window-size=400,1280 ``` CAUTION : look at the `--window-size=400,1280`, it's the settings for the waveshare 7.9 screen. Change them for your screen (horizontal and vertical). ### NginX This step is to change the NginX user to pi and the root folder. First, create the web folder into /home/pi : `mkdir /home/pi/web` After that, edit the /etc/nginx/nginx.conf (with sudo) and change the first line to `user pi;` And last thing to do, edit the `/etc/nginx/sites-enabled/default` and change the `root` line to /home/pi/web ## Install the PPD Now, it's time to clone the [hive-ppd github repo](https://github.com/fkosmala/hive-ppd) into /home/pi/web : ``` git clone https://github.com/fkosmala/hive-ppd /home/pi/web ``` If you want to change the displayed proposal, edit the /home/pi/web/index.html at line 57, change the id of the proposal, and reboot ! ## Final words Hope you enjoyed this little DIY. If you like this project or any other HIVE projects i've made, consider support the SuperHive proposal on [**PeakD**](https://peakd.com/me/proposals/211) or [**Ecency**](https://ecency.com/proposals/211). Thank you very much ! If you have any problem or question, the Comments section is OPEN :) Have a great day

Tags : built-it diy stem raspberry proofofbrain archon palnet proposal

Vote for this article

50%

Write a comment :


Comments :

brittandjosie :

![untitled.gif](https://media.tenor.com/images/885bfbe652343f646af52b64a9839366/tenor.gif)


jerrytsuseer :

<center>https://steemitimages.com/DQmdFJRx4XH3zNGySfPDHXWxRghNnbsEdov2Luh8f9o8bdb/10.png # ↑Upvoted↑and←Reblogged→ https://steemitimages.com/DQmebM4nk9u3ccYuPBCWRYU1ZCpAXdZYuUU9Y9Avd5zdjXr/image.png</center>


yaziris :

<center><b>Proposal-O-Meter</b> <br> Looks pretty neat! Nicely done BukahBro👍</center>


hivebuzz :

Congratulations @bambukah! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s): <table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@bambukah/posts.png?202203201833"></td><td>You published more than 70 posts.<br>Your next target is to reach 80 posts.</td></tr> </table> <sub>_You can view your badges on [your board](https://hivebuzz.me/@bambukah) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> To support your work, I also upvoted your post! **Check out the last post from @hivebuzz:** <table><tr><td><a href="/hive-122221/@hivebuzz/pum-202203-15"><img src="https://images.hive.blog/64x128/https://i.imgur.com/xwzanZE.png"></a></td><td><a href="/hive-122221/@hivebuzz/pum-202203-15">Hive Power Up Month - Feedback from February day 15</a></td></tr></table>


unklebonehead :

This is a very cool little project. Wish I had a RaspberryPi to do it with. Love those little boards!


hivebuzz :

Congratulations @bambukah! You received a personal badge! <table><tr><td>https://images.hive.blog/70x70/http://hivebuzz.me/badges/ukr-love.s1.png?202203222134</td><td>Congratulations on the purchase of your NFT for Peace.<br>Thank you for encouraging peace in Ukraine and helping civilians who suffer from war.</td></tr></table> <sub>_You can view your badges on [your board](https://hivebuzz.me/@bambukah) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub> **Check out the last post from @hivebuzz:** <table><tr><td><a href="/nftforpeace/@hivebuzz/nft-for-peace"><img src="https://images.hive.blog/64x128/https://i.imgur.com/tBCp4ps.png"></a></td><td><a href="/nftforpeace/@hivebuzz/nft-for-peace">Introducing NFT for Peace</a></td></tr><tr><td><a href="/hive-122221/@hivebuzz/pum-202203-15"><img src="https://images.hive.blog/64x128/https://i.imgur.com/xwzanZE.png"></a></td><td><a href="/hive-122221/@hivebuzz/pum-202203-15">Hive Power Up Month - Feedback from February day 15</a></td></tr></table>


hivebuzz :

Congratulations @bambukah! You received a personal badge! <table><tr><td>https://images.hive.blog/70x70/http://hivebuzz.me/badges/pud.png?202204010751</td><td>You powered-up at least 10 HIVE on Hive Power Up Day!<br>Wait until the end of Power Up Day to find out the size of your Power-Bee.<br>May the Hive Power be with you! </td></tr></table> <sub>_You can view your badges on [your board](https://hivebuzz.me/@bambukah) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub> **Check out the last post from @hivebuzz:** <table><tr><td><a href="/hive-122221/@hivebuzz/pud-202204"><img src="https://images.hive.blog/64x128/https://i.imgur.com/805FIIt.jpg"></a></td><td><a href="/hive-122221/@hivebuzz/pud-202204">Hive Power Up Day - April 1st 2022</a></td></tr></table>


hivebuzz :

Congratulations @bambukah! You received a personal badge! <table><tr><td>https://images.hive.blog/70x70/http://hivebuzz.me/badges/pud.s2.png?202204020001</td><td>You powered-up at least 50 HP on Hive Power Up Day! This entitles you to a level 2 badge<br>Participate in the next Power Up Day and try to power-up more HIVE to get a bigger Power-Bee.<br>May the Hive Power be with you!</td></tr></table> <sub>_You can view your badges on [your board](https://hivebuzz.me/@bambukah) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub> **Check out the last post from @hivebuzz:** <table><tr><td><a href="/hive-122221/@hivebuzz/pum-202204"><img src="https://images.hive.blog/64x128/https://i.imgur.com/M9RD8KS.png"></a></td><td><a href="/hive-122221/@hivebuzz/pum-202204">The fourth edition of Hive Power Up Month started today. Don't miss it!</a></td></tr><tr><td><a href="/hive-122221/@hivebuzz/pud-202204"><img src="https://images.hive.blog/64x128/https://i.imgur.com/805FIIt.jpg"></a></td><td><a href="/hive-122221/@hivebuzz/pud-202204">Hive Power Up Day - April 1st 2022</a></td></tr></table>