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. ----
post_id | 952,605 |
---|---|
author | someguy123 |
permlink | for-witnesses-instant-price-feed-script |
category | steem |
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"]}" |
created | 2016-09-14 21:23:06 |
last_update | 2016-09-14 21:23:06 |
depth | 0 |
children | 8 |
net_rshares | 32,775,354,996,674 |
last_payout | 2016-10-15 22:58:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 58.101 SBD |
curator_payout_value | 8.200 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 2,660 |
author_reputation | 87,543,160,636,924 |
root_title | "(For Witnesses) Instant price-feed script" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
barrie | 0 | 480,580,736,920 | 100% | ||
steempty | 0 | 7,709,698,644,474 | 100% | ||
badassmother | 0 | 2,047,223,484,288 | 100% | ||
xeldal | 0 | 7,237,641,095,857 | 100% | ||
enki | 0 | 5,763,267,292,768 | 100% | ||
rossco99 | 0 | 1,351,751,497,885 | 100% | ||
liondani | 0 | 979,329,895,832 | 100% | ||
joseph | 0 | 1,606,862,657,789 | 100% | ||
masteryoda | 0 | 604,450,588,064 | 100% | ||
bingo-0 | 0 | 6,558,280,281 | 100% | ||
boatymcboatface | 0 | 451,499,016,753 | 100% | ||
proctologic | 0 | 43,419,977,322 | 100% | ||
idol | 0 | 9,645,077,587 | 100% | ||
sakr | 0 | 4,632,015,537 | 100% | ||
chitty | 0 | 0 | 100% | ||
valtr | 0 | 13,339,911,374 | 100% | ||
jocelyn | 0 | 1,660,385,973 | 100% | ||
makishart | 0 | 10,851,486,806 | 100% | ||
eeks | 0 | 74,898,352,154 | 9.08% | ||
kingscrown | 0 | 44,396,700,362 | 54% | ||
paco-steem | 0 | 478,348,587 | 100% | ||
spaninv | 0 | 5,761,288,772 | 100% | ||
instructor2121 | 0 | 30,452,424,785 | 100% | ||
james-show | 0 | 22,561,510,625 | 100% | ||
teamsteem | 0 | 319,839,871,900 | 100% | ||
acidyo | 0 | 7,842,240,064 | 28% | ||
fact | 0 | 12,523,278,732 | 100% | ||
steve-walschot | 0 | 165,675,931,272 | 100% | ||
klye | 0 | 45,076,592,867 | 100% | ||
coar | 0 | 268,838,726 | 29% | ||
murh | 0 | 1,060,918,790 | 55.55% | ||
error | 0 | 2,164,613,798 | 100% | ||
ranko-k | 0 | 38,743,084,521 | 100% | ||
theshell | 0 | 59,938,053,903 | 100% | ||
thecryptofiend | 0 | 63,483,855,468 | 100% | ||
justtryme90 | 0 | 64,091,574,128 | 100% | ||
drinkzya | 0 | 33,034,780,577 | 100% | ||
stiletto | 0 | 373,228,451 | 100% | ||
thecryptodrive | 0 | 54,701,254,841 | 100% | ||
benthegameboy | 0 | 1,457,773,116 | 100% | ||
tee-em | 0 | 5,045,815,647 | 100% | ||
michaelx | 0 | 30,492,658,321 | 100% | ||
mark-waser | 0 | 5,688,877,274 | 100% | ||
lukestokes | 0 | 284,743,683,612 | 100% | ||
cryptoiskey | 0 | 32,608,925,905 | 100% | ||
mrhankeh | 0 | 471,495,169 | 100% | ||
clement | 0 | 36,256,706,806 | 100% | ||
isteemit | 0 | 47,424,925,997 | 100% | ||
venuspcs | 0 | 52,078,876,854 | 100% | ||
lehard | 0 | 61,322,628,143 | 100% | ||
rubybian | 0 | 69,473,128,292 | 100% | ||
getssidetracked | 0 | 2,484,450,620 | 28% | ||
strawhat | 0 | 64,083,416 | 28% | ||
steemswede | 0 | 1,275,074,566 | 100% | ||
cryptochannel | 0 | 63,507,873 | 28% | ||
derekareith | 0 | 142,892,158,061 | 100% | ||
rxhector | 0 | 734,067,704 | 100% | ||
ausbitbank | 0 | 14,877,398,745 | 100% | ||
steem1653 | 0 | 2,632,186,142 | 100% | ||
anyx | 0 | 184,832,039,173 | 100% | ||
snowden | 0 | 85,507,270 | 100% | ||
aaseb | 0 | 14,613,684,729 | 100% | ||
karen13 | 0 | 1,107,695,218 | 10% | ||
deviedev | 0 | 10,417,290,332 | 100% | ||
nabilov | 0 | 251,327,027,125 | 100% | ||
allmonitors | 0 | 11,426,107,825 | 100% | ||
luisucv34 | 0 | 798,945,222 | 100% | ||
wildchild | 0 | 87,223,247 | 100% | ||
phenom | 0 | 24,415,730,119 | 100% | ||
blueorgy | 0 | 155,323,923,181 | 100% | ||
simon.braki.love | 0 | 3,365,306,111 | 100% | ||
fubar-bdhr | 0 | 4,344,203,931 | 80% | ||
bitcoiner | 0 | 3,847,392,207 | 100% | ||
jl777 | 0 | 53,841,855,426 | 10% | ||
zaebars | 0 | 30,007,195,916 | 100% | ||
raymonjohnstone | 0 | 780,016,532 | 100% | ||
masterinvestor | 0 | 23,815,798,787 | 100% | ||
steemchain | 0 | 50,619,397 | 100% | ||
sergey44 | 0 | 231,816,568 | 100% | ||
chloetaylor | 0 | 8,674,577,701 | 100% | ||
proto | 0 | 4,543,675,783 | 10% | ||
alex.chien | 0 | 1,326,645,484 | 100% | ||
tygergamer | 0 | 4,039,822,794 | 100% | ||
smailer | 0 | 41,078,378,681 | 100% | ||
fabien | 0 | 25,747,727,433 | 100% | ||
glitterpig | 0 | 3,434,632,063 | 100% | ||
steemdrive | 0 | 131,911,531,491 | 100% | ||
gomeravibz | 0 | 50,568,123,930 | 100% | ||
taker | 0 | 2,298,263,441 | 10% | ||
frozendota | 0 | 226,021,128 | 100% | ||
merej99 | 0 | 2,236,311,560 | 100% | ||
spaceghost | 0 | 8,108,046,283 | 100% | ||
laonie1 | 0 | 22,424,637,028 | 100% | ||
laonie2 | 0 | 22,941,246,641 | 100% | ||
laonie3 | 0 | 22,949,353,334 | 100% | ||
brendio | 0 | 5,281,751,774 | 100% | ||
gmurph | 0 | 2,082,766,666 | 9.08% | ||
michellek | 0 | 51,829,756 | 100% | ||
laonie4 | 0 | 22,944,895,384 | 100% | ||
laonie5 | 0 | 22,942,676,593 | 100% | ||
laonie6 | 0 | 22,939,779,370 | 100% | ||
laonie7 | 0 | 22,935,888,604 | 100% | ||
kurtbeil | 0 | 3,488,667,053 | 100% | ||
laonie8 | 0 | 22,932,609,455 | 100% | ||
laonie9 | 0 | 22,929,943,691 | 100% | ||
steemleak | 0 | 2,440,288,355 | 100% | ||
jphamer1 | 0 | 21,532,364,480 | 100% | ||
bigsambucca | 0 | 94,018,543 | 100% | ||
paynode | 0 | 2,235,147,478 | 100% | ||
sirwinchester | 0 | 62,400,081,859 | 24% | ||
nonlinearone | 0 | 40,210,689,203 | 100% | ||
thebotkiller | 0 | 10,512,691,519 | 100% | ||
loli | 0 | 51,247,757 | 100% | ||
nano2nd | 0 | 52,419,023 | 100% | ||
theb0red1 | 0 | 9,618,545,985 | 100% | ||
pjheinz | 0 | 10,470,923,790 | 100% | ||
cryptoblu | 0 | 59,021,275 | 100% | ||
instructor | 0 | 59,014,859 | 100% | ||
dollarvigilante | 0 | 739,486,877,190 | 100% | ||
anotherjoe | 0 | 1,869,955,686 | 1% | ||
lamech-m | 0 | 3,977,281,078 | 100% | ||
gvargas123 | 0 | 9,825,312,082 | 100% | ||
laonie10 | 0 | 22,924,046,457 | 100% | ||
wuyueling | 0 | 540,587,396 | 100% | ||
bitchplease | 0 | 50,816,343 | 100% | ||
someguy123 | 0 | 79,582,276,447 | 100% | ||
barrycooper | 0 | 92,909,029,992 | 100% | ||
mikemacintire | 0 | 17,558,106,467 | 100% | ||
hilarski | 0 | 29,736,150,488 | 100% | ||
craigwilliamz | 0 | 9,139,395,267 | 100% | ||
imag1ne | 0 | 2,949,130,694 | 100% | ||
shadowspub | 0 | 2,288,447,522 | 100% | ||
rickmiller | 0 | 55,859,919 | 100% | ||
cryptoeasy | 0 | 2,022,966,642 | 100% | ||
nulliusinverba | 0 | 5,155,210,900 | 100% | ||
runridefly | 0 | 1,933,020,393 | 100% | ||
mlpfrank | 0 | 117,344,778 | 100% | ||
laonie11 | 0 | 22,610,744,163 | 100% | ||
davidjkelley | 0 | 1,588,577,993 | 100% | ||
l0k1 | 0 | 4,324,251,259 | 100% | ||
digital-wisdom | 0 | 14,885,699,052 | 100% | ||
ethical-ai | 0 | 3,628,428,304 | 100% | ||
freesteem | 0 | 50,784,892 | 100% | ||
jwaser | 0 | 6,531,123,702 | 100% | ||
crypt0mine | 0 | 1,357,136,537 | 100% | ||
zettar | 0 | 1,018,551,189 | 100% | ||
bwaser | 0 | 2,557,933,752 | 100% | ||
dexter-k | 0 | 5,522,483,964 | 100% | ||
ct-gurus | 0 | 659,596,752 | 100% | ||
tracemayer | 0 | 61,809,990,034 | 100% | ||
paxmagnus | 0 | 52,562,092 | 100% | ||
steemsquad | 0 | 2,084,859,262 | 100% | ||
anomaly | 0 | 255,505,026 | 100% | ||
ellepdub | 0 | 2,346,835,012 | 100% | ||
inarix03 | 0 | 61,292,139 | 100% | ||
herpetologyguy | 0 | 11,804,337,064 | 100% | ||
morgan.waser | 0 | 4,605,155,703 | 100% | ||
teemsteem | 0 | 51,238,118 | 100% | ||
steemprincess | 0 | 50,975,390 | 100% | ||
strong-ai | 0 | 3,527,633,520 | 100% | ||
rusteemitblog | 0 | 1,319,477,064 | 100% | ||
dealzgal | 0 | 74,838,700 | 100% | ||
storage | 0 | 71,104,899 | 100% | ||
antaja | 0 | 184,381,906 | 100% | ||
hacon | 0 | 568,738,102 | 100% | ||
blackmarket | 0 | 58,460,105 | 100% | ||
gifts | 0 | 61,530,871 | 100% | ||
expat | 0 | 91,120,780 | 100% | ||
techslut | 0 | 178,722,423 | 100% | ||
steemtrail | 0 | 134,906,258 | 100% | ||
steemlift | 0 | 1,593,664,040 | 100% | ||
toddemaher1 | 0 | 147,694,207 | 100% | ||
cjin | 0 | 0 | 100% |
Bookmarked for future reference and use. Don't forget about the tmux guys! Thanks!
post_id | 952,791 |
---|---|
author | bitcoiner |
permlink | re-someguy123-for-witnesses-instant-price-feed-script-20160914t214543084z |
category | steem |
json_metadata | "{"tags": ["steem"]}" |
created | 2016-09-14 21:45:42 |
last_update | 2016-09-14 21:45:42 |
depth | 1 |
children | 4 |
net_rshares | 0 |
last_payout | 2016-10-15 22:58:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 82 |
author_reputation | 28,039,985,052,237 |
root_title | "(For Witnesses) Instant price-feed script" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
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
post_id | 952,813 |
---|---|
author | someguy123 |
permlink | re-bitcoiner-re-someguy123-for-witnesses-instant-price-feed-script-20160914t214812150z |
category | steem |
json_metadata | "{"tags": ["steem"]}" |
created | 2016-09-14 21:48:12 |
last_update | 2016-09-14 21:48:12 |
depth | 2 |
children | 3 |
net_rshares | 3,555,795,014 |
last_payout | 2016-10-15 22:58:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 219 |
author_reputation | 87,543,160,636,924 |
root_title | "(For Witnesses) Instant price-feed script" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
bitcoiner | 0 | 3,555,795,014 | 100% |
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?
post_id | 952,830 |
---|---|
author | bitcoiner |
permlink | re-someguy123-re-bitcoiner-re-someguy123-for-witnesses-instant-price-feed-script-20160914t215100719z |
category | steem |
json_metadata | "{"tags": ["steem"]}" |
created | 2016-09-14 21:51:00 |
last_update | 2016-09-14 21:51:00 |
depth | 3 |
children | 2 |
net_rshares | 0 |
last_payout | 2016-10-15 22:58:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 194 |
author_reputation | 28,039,985,052,237 |
root_title | "(For Witnesses) Instant price-feed script" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
I don't know what this means, but I do appreciate what you're doing. :)
post_id | 955,314 |
---|---|
author | anotherjoe |
permlink | re-someguy123-for-witnesses-instant-price-feed-script-20160915t050053383z |
category | steem |
json_metadata | "{"tags": ["steem"]}" |
created | 2016-09-15 05:00:54 |
last_update | 2016-09-15 05:00:54 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2016-10-15 22:58:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 72 |
author_reputation | 40,323,252,521,113 |
root_title | "(For Witnesses) Instant price-feed script" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Thanks! Bookmark cashtags: $b.witness $b.pricefeed $b.dev
post_id | 958,906 |
---|---|
author | nonlinearone |
permlink | re-someguy123-for-witnesses-instant-price-feed-script-20160915t154239379z |
category | steem |
json_metadata | "{"tags": ["steem"]}" |
created | 2016-09-15 15:42:39 |
last_update | 2016-09-15 15:42:39 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2016-10-15 22:58:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 57 |
author_reputation | 32,692,222,381,271 |
root_title | "(For Witnesses) Instant price-feed script" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Trying this out!!.. looks amazing so far, thanks for all your script they have been ever so useful for me!
post_id | 3,236,644 |
---|---|
author | chitty |
permlink | re-someguy123-for-witnesses-instant-price-feed-script-20170531t143248074z |
category | steem |
json_metadata | "{"app": "steemit/0.1", "tags": ["steem"]}" |
created | 2017-05-31 14:32:48 |
last_update | 2017-05-31 14:32:48 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2017-06-07 14:32:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 106 |
author_reputation | 84,463,031,858,396 |
root_title | "(For Witnesses) Instant price-feed script" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |