[Steem Assistant A0.1] First development update for the Smart Voice Interface of the Steem Blockchain. Test it now for free using my server!

in #utopian-io6 years ago (edited)

image.png
source

Steem Assistant (Version A0.1)

Welcome to the 1st development update regarding the Steem Assistant for Amazon Echo. This is a first of many, as I believe in reporting the progress as often as possible to let potential users get a grasp on what's going on. My goal is to make at least 1 report per week, no matter how many man-hours that requires. More updates will also come in video form, uploaded to DTube soon™.

This time, I've been hard at work reworking some basic functionality after the popularity the original announcement gathered! On top of that, I've added Lucky Posts & improved the voice recognition of some commands in the skill.json file.

As always, you can find all of the code over at the github repository, under the MIT License. All feedback and help is more than welcome!

Use it now for absolutely free!

If you want to use the Alpha version for free, just create an Alexa Skill over at developer.amazon.com and set the endpoint to https://steem-assistant.herokuapp.com/steem_assistant ! I'll pay for the server!

Both Intents for reading posts have been altered:

TrendingCheckIntent has been altered:

  • Renamed to TopCheckIntent.
  • Changed to reading top10 from trending, hot or new.

TrendingSpecificPostIntent has been altered:

  • Renamed to SpecificPostIntent.
  • Changed to reading a specific post from trending, hot or new.
  • Added additional information, like the tags the post is posted under, number of upvotes & their value as well as amount of comments.

CheckPriceIntent has been altered:

  • Added support for all top 500 coins from coinmarketcap, as well as their symbols (ex. BTC for Bitcoin).
  • Added additional information, like the % change in the last 24h and place in coinmarketcap's popularity ranking.
  • Prices have been rounded up to 2 decimal places if the coin costs more than 1 USD.

LuckyPostIntent has been added:

  • You can now ask Steem for a random post from the first 100 Trending, Hot or New posts by asking:
    Alexa, ask steem to read a lucky post from trending.

Other

Wake name has been changed

  • Steem Assistant changed to Steem for shorter commands and voice recognition consistency.

Requirements.txt added

  • You can find it here

How were these functionalities added?

The support for top500 coins

This has been added to the skill.json file with the help of this simple Python script:

import json, requests

response = requests.get("https://api.coinmarketcap.com/v1/ticker/?limit=500")
data = json.loads(response.text)
coin_dict = {"name":"Coins",
            "values":[]}
counter = 0
for x in data:
    _ = {}
    _["id"] = str(counter)
    _["name"] = {"value":x["id"], "synonyms":[x["symbol"]]}
    coin_dict["values"].append(_)
    counter += 1

coin_dict = str(coin_dict).replace("'", "\"")
answer = json.loads(coin_dict)
with open('output.txt','w') as f:
    print (json.dumps(answer, indent=1, sort_keys=False), file=f)

All the other code that actually runs in the application has can be found on the Github repository, starting with commit 5092d40 and ending at a8e5d57. It has been properly commented.

Roadmap

Further Intents are to be developed, up until there are no more useful intents that can be utilized without the user's Steem nickname.

After that, an Web application utilizing OAuth2 and SteemConnect will allow for Alexa to learn your nickname, opening up a way for users to use more personal intents, like Alexa, what's my current pending payout?. This will also allow for customization that'd be nearly impossible to do with just the voice alone.

How to contribute?

You can contribute to echo.py as well as skill.json directly by creating a Pull Request to my repository, or you can contact me on Discord at Jestemkioskiem#5566 to talk about this project!

I'm looking for Python developers, Web developers and people experienced with handling sensitive information ready to build a website centered about SteemConnect and OAuth2.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.031
BTC 69067.71
ETH 3754.33
USDT 1.00
SBD 3.72