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

in #utopian-io7 years ago (edited)

wallpaper.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

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

benediktveith is my main GitHub account.
Check here for another proof



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Nice contribution. Will have a look at the code when I will add crypto information to my app :) Thanks

Congratulations @moonrise! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You got a First Reply

Click on any badge to view your own Board of Honor on SteemitBoard.

To support your work, I also upvoted your post!
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

Upvote this notification to help all Steemit users. Learn why here!

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @moonrise I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.17
TRX 0.16
JST 0.029
BTC 60637.64
ETH 2405.36
USDT 1.00
SBD 2.60