enh - stub images and cron script for masternode chart backend pull

This commit is contained in:
moocowmoo 2017-03-23 07:01:14 +00:00
parent 99f2b85c72
commit 37230406f2
5 changed files with 20 additions and 2 deletions

View file

@ -13,6 +13,7 @@ exclude:
- Gemfile
- Gemfile.lock
- package.json
- cron/
paginate: 12
paginate_path: "/blog/page:num/"
name: Dash

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

View file

@ -0,0 +1,17 @@
#!/bin/bash
# pull hourly-updated http-only masternode count image
# resize, removing shadow
# place
# requires imagemagick
# invoked */10 by cron
FILE=masternode_count.png
rm -f /tmp/$FILE
wget -q http://178.254.23.111/~pub/masternode_count.png -O /tmp/$FILE
convert /tmp/masternode_count.png -crop 813x525+6+6 /tmp/masternode_count-crop-813x525.png
cp -f /tmp/masternode_count-crop-813x525.png /home/ubuntu/broadcast/assets/img/masternode_count-crop-813x525.png

View file

@ -265,7 +265,7 @@ description: pages.home.description
<img src="/assets/img/home/graph.png" alt="{% t pages.home.network-growth-heading %}">
</div-->
<div class="col-sm-6 home-network-graphic-live">
<img src="http://178.254.23.111/~pub/masternode_count.png" alt="{% t pages.home.network-growth-heading %}">
<img src="/assets/img/masternode_count-crop-813x525.png" alt="{% t pages.home.network-growth-heading %}">
</div>
</div>
</div>

View file

@ -78,7 +78,7 @@ description: pages.currency.description
Maximum masternodes so far: <span id="masternodes_max"></span>
</p>
<p>
<img src="http://178.254.23.111/~pub/masternode_count.png">
<img src="/assets/img/masternode_count-crop-813x525.png">
</p>
</section>