CoinStats - A NodeJS Cryptocurrency Statistic Bot - Changed Image Upload Logic

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@moonrise·
0.000 HBD
CoinStats - A NodeJS Cryptocurrency Statistic Bot - Changed Image Upload Logic
![wallpaper.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519650168/cibabvzhxosw3vz4pvc0.png)

### New Features
#### What feature did you add?
I have changed the logic of uploading images to Spee.ch (LBRY Blockchain). The problem is that every  image needs time to process and be saved correctly in the blockchain. Before the logic change I uploaded every image with an timeout between them (Async). It only worked sometimes, since an image could take longer to upload than the timeout provides. The logic change now uploads images sync instead of async.

Also I have added EOS as coin.

#### How did you implement it?
Basically did the logic changed from:
- Creating Graph (Async)
- Uploading Graph to blockchain (Async)
- Saving created URL for coin
- Next coin (same procedure)
- Generate markdown

To:
- Creating Graph (Step 1)
- Save graph name (Step 2)
- Next coin (Repeat Step 1-2 for all coins)
- Uploading Graphs to blockchain (Sync)
- Generate markdown

Have a look [here](https://github.com/caspernikus/CoinStats/blob/2bb603dc0853fb6bd3a879476a7622f040480ff5/index.js)

### Roadmap
- V.0.3:
  - Bar Charts shows only percentage change over last week
  - Toggle Steemit auto posting via config
- V.1.0:
  - More information (e.g different Charts for each Coin)
  - Running on a Server and automatically post every day
  - Custom messages for the coins
  - Better overall layout

### Proof for GitHub
![Screen Shot 2018-02-23 at 10.47.12.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519379413/bbwdrpuq27uc1qx7h0pp.png)

benediktveith is my main GitHub account.
[Check here for another proof](https://utopian.io/utopian-io/@moonrise/added-code-highlighting-or-added-code-block-toolbar-button-or-fixed-code-block-bug)

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@moonrise/coinstats-a-nodejs-cryptocurrency-statistic-bot-changed-image-upload-logic">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍 , , , , , , , , , , , , , , , , , , , , , , , ,