mirror of
https://github.com/seigler/dash-website
synced 2025-07-27 07:16:10 +00:00
enh - stub images and cron script for masternode chart backend pull
This commit is contained in:
parent
99f2b85c72
commit
37230406f2
5 changed files with 20 additions and 2 deletions
|
@ -13,6 +13,7 @@ exclude:
|
||||||
- Gemfile
|
- Gemfile
|
||||||
- Gemfile.lock
|
- Gemfile.lock
|
||||||
- package.json
|
- package.json
|
||||||
|
- cron/
|
||||||
paginate: 12
|
paginate: 12
|
||||||
paginate_path: "/blog/page:num/"
|
paginate_path: "/blog/page:num/"
|
||||||
name: Dash
|
name: Dash
|
||||||
|
|
BIN
assets/img/masternode_count-crop-813x525.png
Normal file
BIN
assets/img/masternode_count-crop-813x525.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.8 KiB |
17
cron/pull_and_resize_masternode_graph.sh
Executable file
17
cron/pull_and_resize_masternode_graph.sh
Executable 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
|
|
@ -265,7 +265,7 @@ description: pages.home.description
|
||||||
<img src="/assets/img/home/graph.png" alt="{% t pages.home.network-growth-heading %}">
|
<img src="/assets/img/home/graph.png" alt="{% t pages.home.network-growth-heading %}">
|
||||||
</div-->
|
</div-->
|
||||||
<div class="col-sm-6 home-network-graphic-live">
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -78,7 +78,7 @@ description: pages.currency.description
|
||||||
Maximum masternodes so far: <span id="masternodes_max"></span>
|
Maximum masternodes so far: <span id="masternodes_max"></span>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<img src="http://178.254.23.111/~pub/masternode_count.png">
|
<img src="/assets/img/masternode_count-crop-813x525.png">
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue