create account

Fun With DIY : Proposal progression display by bambukah

View this thread on: hive.blogpeakd.comecency.com
· @bambukah ·
$21.52
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

๐Ÿ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 69 others
properties (23)
authorbambukah
permlinkfun-with-diy--proposal-progression-display
categorybuilt-it
json_metadata"{"app":"peakd/2022.03.6","format":"markdown","description":"Little DIY electronic stuff to display my proposal progression.","tags":["built-it","diy","stem","raspberry","proofofbrain","archon","palnet","proposal"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/bambukah/EoeDTrTfz3Tj6xRjUL2gR5B2MJfvC1GDQAKFPT1VyVmhfmjGiNwPSrHeD96JeucCFTs.jpg","https://files.peakd.com/file/peakd-hive/bambukah/EoGwxCqeoAXBKU67QvksppzWAz7e85K8AyptHjodCq3BwPbUiwALu1NrCbhryRAEa3r.jpg"]}"
created2022-03-20 16:41:27
last_update2022-03-20 16:41:27
depth0
children11
last_payout2022-03-27 16:41:27
cashout_time1969-12-31 23:59:59
total_payout_value10.519 HBD
curator_payout_value11.003 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,814
author_reputation93,958,910,716,526
root_title"Fun With DIY : Proposal progression display"
beneficiaries
0.
accountpeakd
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,525,828
net_rshares17,541,337,268,413
author_curate_reward""
vote details (133)
@brittandjosie ·
![untitled.gif](https://media.tenor.com/images/885bfbe652343f646af52b64a9839366/tenor.gif)
๐Ÿ‘  ,
๐Ÿ‘Ž  ,
properties (23)
authorbrittandjosie
permlinkre-bambukah-r91ymu
categorybuilt-it
json_metadata{"tags":["built-it"],"app":"peakd/2022.03.6"}
created2022-03-20 16:47:18
last_update2022-03-20 16:47:18
depth1
children0
last_payout2022-03-27 16:47:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length90
author_reputation525,661,217,955,513
root_title"Fun With DIY : Proposal progression display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,525,971
net_rshares1,090,772,491
author_curate_reward""
vote details (4)
@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>
properties (22)
authorhivebuzz
permlinknotify-bambukah-20220320t183947
categorybuilt-it
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-03-20 18:39:48
last_update2022-03-20 18:39:48
depth1
children0
last_payout2022-03-27 18:39:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length984
author_reputation369,445,326,025,087
root_title"Fun With DIY : Proposal progression display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,529,250
net_rshares0
@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>
properties (22)
authorhivebuzz
permlinknotify-bambukah-20220322t220308
categorybuilt-it
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-03-22 22:03:09
last_update2022-03-22 22:03:09
depth1
children0
last_payout2022-03-29 22:03:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,038
author_reputation369,445,326,025,087
root_title"Fun With DIY : Proposal progression display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,596,771
net_rshares0
@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>
properties (22)
authorhivebuzz
permlinknotify-bambukah-20220401t080443
categorybuilt-it
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-04-01 08:04:45
last_update2022-04-01 08:04:45
depth1
children0
last_payout2022-04-08 08:04:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length803
author_reputation369,445,326,025,087
root_title"Fun With DIY : Proposal progression display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,883,902
net_rshares0
@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>
properties (22)
authorhivebuzz
permlinknotify-bambukah-20220402t000628
categorybuilt-it
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-04-02 00:06:27
last_update2022-04-02 00:06:27
depth1
children0
last_payout2022-04-09 00:06:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,127
author_reputation369,445,326,025,087
root_title"Fun With DIY : Proposal progression display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,905,416
net_rshares0
@jerrytsuseer ·
$0.02
<center>https://steemitimages.com/DQmdFJRx4XH3zNGySfPDHXWxRghNnbsEdov2Luh8f9o8bdb/10.png
# โ†‘Upvotedโ†‘andโ†Rebloggedโ†’
https://steemitimages.com/DQmebM4nk9u3ccYuPBCWRYU1ZCpAXdZYuUU9Y9Avd5zdjXr/image.png</center>
๐Ÿ‘  ,
properties (23)
authorjerrytsuseer
permlinkre-bambukah-r91ypy
categorybuilt-it
json_metadata{"tags":["built-it"],"app":"peakd/2022.03.6"}
created2022-03-20 16:49:12
last_update2022-03-20 16:49:12
depth1
children0
last_payout2022-03-27 16:49:12
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length207
author_reputation215,778,875,819,970
root_title"Fun With DIY : Proposal progression display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,526,020
net_rshares19,787,618,572
author_curate_reward""
vote details (2)
@stresskiller ·
$0.02
that does look like a fun project , for the winter moths to come 
๐Ÿ‘  
properties (23)
authorstresskiller
permlinkre-bambukah-rgpqm4
categorybuilt-it
json_metadata{"tags":["built-it"],"app":"peakd/2022.07.1"}
created2022-08-16 14:53:45
last_update2022-08-16 14:53:45
depth1
children0
last_payout2022-08-23 14:53:45
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length65
author_reputation119,501,777,761,168
root_title"Fun With DIY : Proposal progression display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,770,549
net_rshares36,690,577,387
author_curate_reward""
vote details (1)
@unklebonehead ·
$0.02
This is a very cool little project. Wish I had a RaspberryPi to do it with. Love those little boards!
๐Ÿ‘  ,
properties (23)
authorunklebonehead
permlinkre-bambukah-2022321t9659441z
categorybuilt-it
json_metadata{"tags":["built-it","diy","stem","raspberry","proofofbrain","archon","palnet","proposal"],"app":"ecency/3.0.22-vision","format":"markdown+html"}
created2022-03-21 13:07:00
last_update2022-03-21 13:07:00
depth1
children0
last_payout2022-03-28 13:07:00
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length101
author_reputation76,998,075,243,136
root_title"Fun With DIY : Proposal progression display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,550,810
net_rshares19,476,595,718
author_curate_reward""
vote details (2)
@yaziris ·
$0.02
<center><b>Proposal-O-Meter</b> 
<br>
Looks pretty neat! Nicely done BukahBro๐Ÿ‘</center>
๐Ÿ‘  , , , , ,
properties (23)
authoryaziris
permlinkre-bambukah-r91yzu
categorybuilt-it
json_metadata{"tags":["built-it"],"app":"peakd/2022.03.6"}
created2022-03-20 16:55:09
last_update2022-03-20 16:55:09
depth1
children2
last_payout2022-03-27 16:55:09
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length87
author_reputation27,700,183,975,226
root_title"Fun With DIY : Proposal progression display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,526,166
net_rshares19,757,239,992
author_curate_reward""
vote details (6)
@dlmmqb ·
Now I want one for delegations bar xD
properties (22)
authordlmmqb
permlinkre-yaziris-s5xtqn
categorybuilt-it
json_metadata{"tags":["built-it"],"app":"peakd/2023.11.3"}
created2023-12-19 23:40:00
last_update2023-12-19 23:40:00
depth2
children1
last_payout2023-12-26 23:40:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length37
author_reputation308,682,909,391,022
root_title"Fun With DIY : Proposal progression display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id129,803,618
net_rshares0
@yaziris ·
I could imagine you'd be staring at it the whole time. Haha
properties (22)
authoryaziris
permlinkre-dlmmqb-s643kn
categorybuilt-it
json_metadata{"tags":["built-it"],"app":"peakd/2023.11.3"}
created2023-12-23 08:58:00
last_update2023-12-23 08:58:00
depth3
children0
last_payout2023-12-30 08:58:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length59
author_reputation27,700,183,975,226
root_title"Fun With DIY : Proposal progression display"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id129,921,284
net_rshares0