This is super cool. 20 step 1 day pattern for Boeing is quite the descending line post 737 MAX + Starliner + firing CEO.

I see you have an API key for the stock data in the source code, which is fine but might break the script in the future. Is it possible to use import system env vars from the we user into Norns Lua? My python is much more strong today but something like putting IEXAPIS_TOKEN in .bashrc and then

import os
API_KEY = os.environ['IEXAPIS_TOKEN']
...
1 Like

Has anyone come across “error: init” when trying to run this? I’ve installed it via maiden. I get the same error from molly the poly

@voidstate Is there some console output in maiden?

@lazzarello not sure I really follow your suggestion here – if it’s about getting the API key out of the main script then why not just a lua file?

No it installs fine, when I run it on norns I get the initial screen ok then it kicks me back to the main menu with “error init” where the app name usually displays.

I was wondering about output when running the script?

lua version

API_KEY = os.getenv('IEXAPIS_TOKEN')
1 Like

I ran it in maiden and downloaded it to norns from there and now it works. Resolved!

@zebra lol, thanks. that makes a lot of sense.

@markeats just a different place to put it. It was a reflex from working with web APIs a lot. It could go anywhere really. It’s nbd.

Today was a bad day for stonks, but it was a good day to use arp_index. I’m using it here to sequence my Deepmind 12D.

5 Likes

Hi, this is really nice. I love it! Would there be anyway to track other stock echanges as an option?

not sure how exactly it’s being done, but looking at the code - it pulls data from http://iexcloud.io

and specifically gets companies from this line.

So you could probably setup your own API token and company list?

1 Like

Hi okyeron,
Not sure how I can do what you suggest, but I’ll try that at some point.
Thanks for the quick reply!

Yep @okyeron is spot on, there are lots of options with their API that would easily swap in, eg: https://iexcloud.io/docs/api/#list

3 Likes

Thanks, but this is way above my capabilities at this time, but I appreciate the suggestion.

TWTR

Is tempo adjustable?

Yes, in params.

20chars

1 Like

Hmmm. I’m kind of new to Norns, not sure what that means but I’ll look into it. Thanks!

When in the script, press key 1 to navigate up one menu level. Then scroll right with encoder 1. Use key 3 to select EDIT>. Navigate with encoder 2, you can change the clock rate/bpm, or you can change the the step length.

1 Like

Thank you for the detailed instructions!

1 Like

had to go listen after hearing about the Reddit attack on Wallstreet.
:stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue:
https://www.instagram.com/p/CKimVwGJT9j/?utm_source=ig_web_copy_link


for those that may no know… :slight_smile:

4 Likes