I forgot to point to a scrolling text utility I've been working on for the Eigenharp Alpha: https://github.com/Eigenlabs/EigenD-Contrib/blob/master/alpha_text_scroller.py
It displays and scrolls ASCII text on the Eigenharp Alpha keyboard. There are a number of formatting and configuration options included. I'll be folding parts of this back into EigenD, but as a web UI, not as a CLI tool. I thought that the Python version could be interesting to people still.
I'm using this with yet another script that imports the alpha_text_scroller functions and pulls down tweets in real time, scrolling them on the neck of the Alpha.
This is that script, using the tweepy Python library:
import tweepy
import re
import alpha_text_scroller
consumer_key="???"
consumer_secret="???"
access_token="???"
access_token_secret="???"
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
mentions = []
options = alpha_text_scroller.DisplayOptions(9091, speed=1.5)
count = 0
while True:
if len(mentions) == 0:
for m in api.mentions(count=5):
mentions.append('@'+m.user.screen_name+': '+re.sub('@\\w+\\s*','',m.text.strip()))
mentions.reverse()
count += 1
countmod = count % 2
if countmod == 1:
options.colour = 'R'
elif countmod == 0:
options.colour = 'O'
text = mentions.pop()
print text
alpha_text_scroller.scroll('\s{24}'+text, options)