This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
ComputerCraft mixed with Raspberry Pi
Started by _removed, 23 March 2015 - 02:43 PMPosted 23 March 2015 - 03:43 PM
I'm planning to get a Raspberry Pi soon, and I'm wondering how I could connect it with CC. What can I achieve with a Raspberry Pi?
Posted 23 March 2015 - 05:14 PM
Hmm, probably the simplest connection method would be to make a website on localhost and communicate through it. Another solution would be to connect the Raspberry Pi to the computer's (the one which is running MC) files and then edit files of the appropriate computer (world/computer/[computer ID]/).
Posted 24 March 2015 - 11:16 AM
I have a raspberry pi, I have it running ComputerCraft Emulator in the root folder, with a bit of modifying, have you actually applied to get the Raspberry Pi? As last I heard it was a 1 and half year waiting list…?
Posted 24 March 2015 - 09:55 PM
I have a raspberry pi, I have it running ComputerCraft Emulator in the root folder, with a bit of modifying, have you actually applied to get the Raspberry Pi? As last I heard it was a 1 and half year waiting list…?
I did some research, and based on your location in the UK, they are selling them in ASDA for £75. In my location, it costs about £100, with decent specs.
Posted 24 March 2015 - 10:47 PM
I have a raspberry pi, I have it running ComputerCraft Emulator in the root folder, with a bit of modifying, have you actually applied to get the Raspberry Pi? As last I heard it was a 1 and half year waiting list…?
I did some research, and based on your location in the UK, they are selling them in ASDA for £75. In my location, it costs about £100, with decent specs.
Asda? hahaha I did some and no there are cameras and stuff for it but no raspberry pi xD
And specs? there are versions with small differences that's all, plus they are not £75 here, they are £25 in the Uk on my last internet search :)/> edit on this;
"the last I heard" was about 2 years ago :)/> but yes they aren't that expensive at all :') considering mine was $30 from the US.
Edited on 24 March 2015 - 09:49 PM
Posted 26 March 2015 - 12:25 AM
I purchased a B+ for $40 AUD (including an 8GB Micro SD Card).
Edited on 25 March 2015 - 11:25 PM
Posted 26 March 2015 - 02:16 PM
Don't know if that is exactly what you want but I wrote this some time ago. It is about how to connect a Raspberry Pi with CC via Internet.
This article in my blog might be interesting, too.
That might be possible using PHP scripts and a lua, python, bash script or whatever on your Raspi.
Just take yourself a web server with MySQL and PHP. Then, write a script on the Raspi that is sending a request with a folder list each time the folder content changes (A Cron Job would be useful to check that). You can now use another PHP script to get the folder content from the database to your CC computer. Do just the same to transfer files.
Attention: Do not ask for new files to often because your database may be overloaded if you do a database request every second. I think five to ten seconds would be fine.
This article in my blog might be interesting, too.
Edited on 26 March 2015 - 03:19 PM
Posted 27 March 2015 - 07:11 AM
So much for Google Shopping…I have a raspberry pi, I have it running ComputerCraft Emulator in the root folder, with a bit of modifying, have you actually applied to get the Raspberry Pi? As last I heard it was a 1 and half year waiting list…?
I did some research, and based on your location in the UK, they are selling them in ASDA for £75. In my location, it costs about £100, with decent specs.
Asda? hahaha I did some and no there are cameras and stuff for it but no raspberry pi xD
And specs? there are versions with small differences that's all, plus they are not £75 here, they are £25 in the Uk on my last internet search :)/>/> edit on this;
"the last I heard" was about 2 years ago :)/>/> but yes they aren't that expensive at all :') considering mine was $30 from the US.
Is it possible to host a website on a raspberry pi?
Posted 27 March 2015 - 07:59 AM
Is it possible to host a website on a raspberry pi?
yep
any computer capable of serving http requests can
Edited on 27 March 2015 - 07:01 AM
Posted 27 March 2015 - 08:26 AM
http://cdel.me is actually hosted on my pi, using apache. Cloudflare directs my domain to my static wan IP.
Posted 27 March 2015 - 09:33 AM
So much for Google Shopping…I have a raspberry pi, I have it running ComputerCraft Emulator in the root folder, with a bit of modifying, have you actually applied to get the Raspberry Pi? As last I heard it was a 1 and half year waiting list…?
I did some research, and based on your location in the UK, they are selling them in ASDA for £75. In my location, it costs about £100, with decent specs.
Asda? hahaha I did some and no there are cameras and stuff for it but no raspberry pi xD
And specs? there are versions with small differences that's all, plus they are not £75 here, they are £25 in the Uk on my last internet search :)/>/> edit on this;
"the last I heard" was about 2 years ago :)/>/> but yes they aren't that expensive at all :') considering mine was $30 from the US.
Is it possible to host a website on a raspberry pi?
Yeah you can but it isn't powerful, I used to run a web based cloud system on mine as well as wordpress and it was slow, so yeah but not too much :P/>