This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
elfin8er's profile picture

Controlling Computercraft With Reddit ('Cause I Can)

Started by elfin8er, 05 October 2014 - 06:09 PM
elfin8er #1
Posted 05 October 2014 - 08:09 PM
In the past, I've been able to control Computercraft with various devices including sms text messaging, xbox controllers, and wiimotes. This time, I decided to try and control Computercraft using Reddit, mostly just to see if it could be done. The answer is, yes it can be. Though the code is far from perfect, this is a concept showing that Computercraft can in fact be controlled using a subreddit I created. If I get enough requests, I may livestream a turtle for a few hours sometime, and have the subreddit open to the public. However, I don't think it's stable enough right now.

For those of you who don't want to have to set the system up yourself, and create your own subreddit, I've created a simple video showing the system in action, and a brief overview of how it works.

[media]http://www.youtube.com/watch?v=nwm4jFuxH14[/media]

For those who are interested, you can find the current lua code HERE, the JSON API I used can be found HERE, and the PHP code can be found HERE. Of course if you want to use this on your own, you'll need to change a few of the variables.

In the future, I'd also like to control Computercraft from Twitter, and maybe even Twitch. Let me know in the comments below what other projects you think I should do. It can be anything, but the cheaper the better xD
Edited on 06 October 2014 - 03:32 PM
Cranium #2
Posted 06 October 2014 - 10:37 PM
How about Twitch?
Twitch Plays ComputerCraft. Control a turtle to do anything.
TurtleHunter #3
Posted 06 October 2014 - 11:43 PM
How about Twitch?
Twitch Plays ComputerCraft. Control a turtle to do anything.

I would like to help with that
Anavrins #4
Posted 06 October 2014 - 11:51 PM
How about Twitch?
Twitch Plays ComputerCraft. Control a turtle to do anything.

I would like to help with that
If there's a way for ComputerCraft to connect to a IRC chat, then that would be possible, and totally awesome.
Cranium #5
Posted 07 October 2014 - 12:37 AM
If there's a way for ComputerCraft to connect to a IRC chat, then that would be possible, and totally awesome.
You could do a bit of hackiness by using a chat log that's updated every so often, and having the system read the raw chat output.
Wojbie #6
Posted 07 October 2014 - 12:45 AM
If there's a way for ComputerCraft to connect to a IRC chat, then that would be possible, and totally awesome.
You could do a bit of hackiness by using a chat log that's updated every so often, and having the system read the raw chat output.
Like i did Here?. :D/> shameless self promotion

Hmm Twitch plays Computercraft. Via Irc chat that gets logged on website and then read by turtle. Yea thats seems simple and logical. Anyone got server they can "Donate" to that turtle? Imagine refuelling wars.
Edited on 06 October 2014 - 10:48 PM
TurtleHunter #7
Posted 07 October 2014 - 03:03 AM
If there's a way for ComputerCraft to connect to a IRC chat, then that would be possible, and totally awesome.
You could do a bit of hackiness by using a chat log that's updated every so often, and having the system read the raw chat output.
Like i did Here?. :D/> shameless self promotion

Hmm Twitch plays Computercraft. Via Irc chat that gets logged on website and then read by turtle. Yea thats seems simple and logical. Anyone got server they can "Donate" to that turtle? Imagine refuelling wars.
Turtle replication
elfin8er #8
Posted 07 October 2014 - 05:10 AM
I was actually thinking of doing this with both Twitch and Twitter. I think I can do both with just a Web server.