(For Witnesses) Instant price-feed script by someguy123

View this thread on steempeak.com
· @someguy123 ·
$66.30
(For Witnesses) Instant price-feed script
As part of being a witness, you're expected to run a price feed, to allow the network to convert SBD to USD (via STEEM).
---
**Unfortunately,  most of them are a bit of a pain to install.**

**Well. Not anymore.** I've taken @jesta's fork of @clayop's python price feed, and wrapped it with a shell script that can deal with setting it up, configuring, as well as start/stop/status

It's open source, released under the GNU GPL v3. You can view the code here: https://gist.github.com/Someguy123/100dbc0e40d343886e2aa014317f586f/

It works on both Linux (debian-based, e.g. ubuntu), and OSX (requires homebrew).

Here's how to use it:

```
wget https://gist.githubusercontent.com/Someguy123/100dbc0e40d343886e2aa014317f586f/raw/pricefeed-tool.sh -O price.sh
chmod +x price.sh
./price.sh install
./price.sh start
```

Need to change the username or key?

```
./price.sh config
```

Here's an example, on a complete fresh [DigitalOcean 512mb server](https://m.do.co/c/ee902cbe72a4) to show how easy it is:

```
root@feedtest:~# wget https://gist.githubusercontent.com/Someguy123/100dbc0e40d343886e2aa014317f586f/raw/pricefeed-tool.sh -O price.sh

2016-09-14 21:06:10 (42.7 MB/s) - โ€˜price.shโ€™ saved [4643/4643]

root@feedtest:~# chmod +x price.sh
root@feedtest:~# ./price.sh install
Installing Python3, git, and Python3-PIP...
- - - - - - - - - - - - - - - - - - - - - -

Extracting templates from packages: 100%
- - - - - - - - - - - - - - - - - - - - - -

Updating PIP to avoid problems...
- - - - - - - - - - - - - - - - - - - - - -

Cloning @jesta's Steem Feed...
- - - - - - - - - - - - - - - - - - - - - -

Installing dependencies...
- - - - - - - - - - - - - - - - - - - - - -

Automatically configure the price feed? (Y/n)
Creating config file...
If you make a mistake, just press CTRL-C to exit without saving.
Your STEEM username  (no @ sign): someguy123
Your active private key (begins with 5): 5.........
- - - - - - - - - - - - - - - - - - - - - -
Successfully saved config
- - - - - - - - - - - - - - - - - - - - - -

Price feed has been installed. Start with './price.sh restart'

root@feedtest:~# ./price.sh restart
Killing any existing price feed
Loading environment settings
Starting steemfeed in screen 'pricefeed'
Pricefeed started! Check on it with 'screen -x pricefeed'
Problems? Check steemfeed/error.log
root@feedtest:~# ./price.sh status
The price feed is running
root@feedtest:~#

```

Did you see that? That's right. 3 commands and it's up.

---

Do you like what I'm doing for STEEM/Steemit?
----
[Vote for me to be a witness](https://steemit.com/~witnesses) - every vote counts. 
----
Don't forget to follow me for more like this.
----
๐Ÿ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 109 others
properties (23)
post_id952,605
authorsomeguy123
permlinkfor-witnesses-instant-price-feed-script
categorysteem
json_metadata"{"users": ["jesta", "clayop"], "links": ["https://gist.github.com/Someguy123/100dbc0e40d343886e2aa014317f586f/", "https://m.do.co/c/ee902cbe72a4", "https://steemit.com/~witnesses"], "tags": ["steem", "steem-help", "witness-category", "tools", "development"]}"
created2016-09-14 21:23:06
last_update2016-09-14 21:23:06
depth0
children8
net_rshares32,775,354,996,674
last_payout2016-10-15 22:58:09
cashout_time1969-12-31 23:59:59
total_payout_value58.101 SBD
curator_payout_value8.200 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,660
author_reputation87,543,160,636,924
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (173)
@bitcoiner ·
Bookmarked for future reference and use. Don't forget about the tmux guys! Thanks!
properties (22)
post_id952,791
authorbitcoiner
permlinkre-someguy123-for-witnesses-instant-price-feed-script-20160914t214543084z
categorysteem
json_metadata"{"tags": ["steem"]}"
created2016-09-14 21:45:42
last_update2016-09-14 21:45:42
depth1
children4
net_rshares0
last_payout2016-10-15 22:58:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length82
author_reputation28,039,985,052,237
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@someguy123 ·
TMUX is great too, but it's not the nicest when you want to script it.

Screen has the wonderful `-dmS` which pretty much lets you daemonize anything you want, instantly. Plus screen is available on practically every OS
๐Ÿ‘  
properties (23)
post_id952,813
authorsomeguy123
permlinkre-bitcoiner-re-someguy123-for-witnesses-instant-price-feed-script-20160914t214812150z
categorysteem
json_metadata"{"tags": ["steem"]}"
created2016-09-14 21:48:12
last_update2016-09-14 21:48:12
depth2
children3
net_rshares3,555,795,014
last_payout2016-10-15 22:58:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length219
author_reputation87,543,160,636,924
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@bitcoiner ·
tmux is very scriptable too.. you can also start a process without attaching
so i've a question- after posting a witness application thread, how do you publish it as the *url* under the witness?
properties (22)
post_id952,830
authorbitcoiner
permlinkre-someguy123-re-bitcoiner-re-someguy123-for-witnesses-instant-price-feed-script-20160914t215100719z
categorysteem
json_metadata"{"tags": ["steem"]}"
created2016-09-14 21:51:00
last_update2016-09-14 21:51:00
depth3
children2
net_rshares0
last_payout2016-10-15 22:58:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length194
author_reputation28,039,985,052,237
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@anotherjoe ·
I don't know what this means, but I do appreciate what you're doing.  :)
properties (22)
post_id955,314
authoranotherjoe
permlinkre-someguy123-for-witnesses-instant-price-feed-script-20160915t050053383z
categorysteem
json_metadata"{"tags": ["steem"]}"
created2016-09-15 05:00:54
last_update2016-09-15 05:00:54
depth1
children0
net_rshares0
last_payout2016-10-15 22:58:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length72
author_reputation40,323,252,521,113
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@nonlinearone ·
Thanks! Bookmark cashtags: $b.witness $b.pricefeed $b.dev
properties (22)
post_id958,906
authornonlinearone
permlinkre-someguy123-for-witnesses-instant-price-feed-script-20160915t154239379z
categorysteem
json_metadata"{"tags": ["steem"]}"
created2016-09-15 15:42:39
last_update2016-09-15 15:42:39
depth1
children0
net_rshares0
last_payout2016-10-15 22:58:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length57
author_reputation32,692,222,381,271
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@chitty ·
Trying this out!!.. looks amazing so far, thanks for all your script they have been ever so useful for me!
properties (22)
post_id3,236,644
authorchitty
permlinkre-someguy123-for-witnesses-instant-price-feed-script-20170531t143248074z
categorysteem
json_metadata"{"app": "steemit/0.1", "tags": ["steem"]}"
created2017-05-31 14:32:48
last_update2017-05-31 14:32:48
depth1
children0
net_rshares0
last_payout2017-06-07 14:32:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length106
author_reputation84,463,031,858,396
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000