Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to pipe STDOUT from one block to another? #13

Open
rjcorwin opened this issue Sep 8, 2016 · 1 comment
Open

Ability to pipe STDOUT from one block to another? #13

rjcorwin opened this issue Sep 8, 2016 · 1 comment

Comments

@rjcorwin
Copy link

rjcorwin commented Sep 8, 2016

Hi David - RJ here from Open Pipe Kit, we exchanged comments on Hacker News. I see from your Docs that we could add JSON files to the Open Pipe Kit CLIs in order for them to be configurable in PiBakery, but how about piping STDOUT from one block to another? Is that something that is currently possible in PiBakery? I'm also interested in running these block combinations at an interval so you can do something like "Every 60 seconds run the Raspberry Pi CPU temperature pull command and pipe the STDOUT to the Adafruit IO push command".

@davidferguson
Copy link
Owner

At the moment, each block acts independently of all the other blocks, so you can't pipe output from one into another. The only way to do something like this would be to have blocks read and write to temporary files, which is a bit messy.

At the moment, I'm planning on just having the On First Boot, On Every Boot and On Next boot startup blocks, but I will be adding a block to create cron jobs soon. Although that's not exactly what you described, hopefully that'll be of use to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants