create account

(For Witnesses) Instant price-feed script by someguy123

View this thread on: hive.blogpeakd.comecency.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)
authorsomeguy123
permlinkfor-witnesses-instant-price-feed-script
categorysteem
json_metadata{"tags":["steem","steem-help","witness-category","tools","development"],"users":["jesta","clayop"],"links":["https://gist.github.com/Someguy123/100dbc0e40d343886e2aa014317f586f/","https://m.do.co/c/ee902cbe72a4","https://steemit.com/~witnesses"]}
created2016-09-14 21:23:06
last_update2016-09-14 21:23:06
depth0
children8
last_payout2016-10-15 22:58:09
cashout_time1969-12-31 23:59:59
total_payout_value58.101 HBD
curator_payout_value8.200 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,660
author_reputation103,945,664,283,580
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,247,443
net_rshares32,775,354,996,674
author_curate_reward""
vote details (173)
@anotherjoe ·
I don't know what this means, but I do appreciate what you're doing.  :)
properties (22)
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
last_payout2016-10-15 22:58: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_length72
author_reputation40,326,779,382,210
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,250,841
net_rshares0
@bitcoiner ·
Bookmarked for future reference and use. Don't forget about the tmux guys! Thanks!
properties (22)
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
last_payout2016-10-15 22:58: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_length82
author_reputation28,017,014,641,958
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,247,684
net_rshares0
@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)
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
last_payout2016-10-15 22:58: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_length219
author_reputation103,945,664,283,580
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,247,711
net_rshares3,555,795,014
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)
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
last_payout2016-10-15 22:58: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_length194
author_reputation28,017,014,641,958
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,247,733
net_rshares0
@chitty ·
Trying this out!!.. looks amazing so far, thanks for all your script they have been ever so useful for me!
properties (22)
authorchitty
permlinkre-someguy123-for-witnesses-instant-price-feed-script-20170531t143248074z
categorysteem
json_metadata{"tags":["steem"],"app":"steemit/0.1"}
created2017-05-31 14:32:48
last_update2017-05-31 14:32:48
depth1
children0
last_payout2017-06-07 14:32: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_length106
author_reputation86,901,300,608,582
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,996,232
net_rshares0
@nonlinearone ·
Thanks! Bookmark cashtags: $b.witness $b.pricefeed $b.dev
properties (22)
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
last_payout2016-10-15 22:58: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_length57
author_reputation32,682,086,388,813
root_title"(For Witnesses) Instant price-feed script"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,255,328
net_rshares0