[Updated] Fixing @someguy123's steemfeed-js to work with BTC-E down
Since BTC-e is down, steemfeed-js by @someguy123 is not working... In fact, when checking the price with BTC-e, it crashes.
@someguy123 updated his steemfeed-js repo, so you don't have to do all this! Read his post here
Note: As @drakos said in his comment below, his steemfeed is working fine. While my edit is easily reversible, make sure yours is crashing before changing it, otherwise you are wasting your time!
This is a quick fix, until a new version is released, so follow these instructions:
- Go to the
steemfeed-js
folder. cd lib
nano exchange.js
- Inside this file, locate this part:
var BTCEAdapter = require('./adapters/BTCEAdapter'),
PoloniexAdapter = require('./adapters/PoloniexAdapter'),
BittrexAdapter = require('./adapters/BittrexAdapter')
;
change it to read like this:
// var BTCEAdapter = require('./adapters/BTCEAdapter'),
var PoloniexAdapter = require('./adapters/PoloniexAdapter'),
BittrexAdapter = require('./adapters/BittrexAdapter')
;
Then, locate this line:
add_adapter(BTCEAdapter);
And change it to this:
// add_adapter(BTCEAdapter);
Exit and save..
We now have to recompile the steemfeed-js by going to its folder and running this command:
docker build -t steemfeed-js .
Start the feed again:
docker run -itd --rm --name feed steemfeed-js
If you are not running the dockerised version, start it via nodejs
And now, business as usual!
It's working fine here though, it simply skips BTC-e:
Mine stopped crashing as soon as I disabled BTC-e 😐
Everything else on the server was working (and still is) fine