by chrish » Thu Apr 13, 2017 3:58 pm
I would definitely be interested in that. A little help to get started would really make things smoother. I am becoming comfortable with setting up OS and software on these little linux boxes and getting little bits of code together to work with pinouts and other io (like audio). I've done a bit of JS in my other ARIS games. In both cases, having the basic idea down and being able to start from someone else's functioning work, advanced copy-paste, makes it easy to get far while not knowing all of the details behind the system.
Here, I know that on the target device, I would need a bit of code to run that would connect to the ARIS server somehow, take in a couple values there and then pass them on to pinouts on the device. I would also need to make additions to my ARIS game (in the form of JS in an event or other object?).
I've read enough about pusher in its documentation and playing around in the MHS files to get a sense of what that code looks like, but there are some basics I'm still not sure of in a way that prevents me from going further until I pick up more. I was also checking out the stuff in ARIS/Arduino but that seemed old. I do have some arduinos handy but one of the neat things about the devices that run linux (RPi, CHIP, etc.) is how they are full typical computers that happen to have pinouts. You often don't need any extra hardware to connect to the network or load them.
One thing that makes it difficult to interpret pusher documentation is that they assume the reader is setting everything up, not plugging into an existing set up. I'm guessing that on the embedded device we would use the client JS library, but would we go about this by installing a web server on that device and then creating a page that would host the code? Or would there be something like loading a python script on boot that was listening on a port? I'm also not certain what the additions to events or other objects would be, or if there are other ways to put this code into an ARIS game.
It may be too that my estimation of how graspable this stuff is is off, but I'm ready to keep at it for a while.