CoinStats - A NodeJS Cryptocurrency Statistic Bot - Automatic posting to Steemblockchain
About
CoinStats is a NodeJS Cryptocurrency Statistic Bot for Steemit or other Platforms. CoinStats retrieves the last 24 hours of historical data for specified coins and generates line chart images from them. These images are uploaded directly to the LBRY Blockchain and a Markdown File is generated, which is uploaded to Steemit.
New Features
What feature(s) did you add?
V.0.2 removes the vertical axis grid lines from all charts, to make them overall beautifuler. Also another minor change was to increase the wait time between uploading images into to LBRY blockchain. The timeout is now set to 90 seconds and should remove all 502 Bad Gateway
errors.
e.g.
The major change of V.0.2 was the implementation of automatic posting to the steemit blockchain. Now when markdown is generated it will be automatically uploaded to your steemit account.
How did you implement it/them?
Beautifuler Graphs
Increased Timeout
Uploading to Steem Blockchain
The library SteemJS was used to broadcast the new comment, also I changed the code logic a little bit to provide valid json_metadata infos.
function broadcastToSteemBlockchain(data, timestamp) {
const json_metadata = {
"tags": [
"coin",
"cryptocurrency",
"bitcoin",
"steem",
"crypto"
],
"links": data.links,
"image": data.images,
"format": "markdown",
"app": "coinstats\/0.2"
};
steem.broadcast.comment(
config.private_posting_key,
'',
'coin',
config.account,
timestamp + '-coinstats-daily-cryptocurrency-statistic-service',
'CoinStats - Daily Cryptocurrency Statistic Service',
data.markdown,
json_metadata
);
}
Shows the actual broadcast method.
In the same turn I have a added a config file to provide informations about the account, it's posting_key, and the steem api endpoint.
Roadmap
- V.0.1:
- Markdown File generation
- Chart generation
- Upload to LBRY Blockchain
- V.0.2:
- Create directly Steemit Post
- Better Charts
- 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 Account benediktveith
Posted on Utopian.io - Rewarding Open Source Contributors
@moonrise, No matter approved or not, I upvote and support you.
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
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
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
Your post is very good