132 posts
Posted 21 April 2013 - 05:08 PM
That's right! After a couple of weeks of work, I finally figured out how to control my in-game minecraft lights from my phone, by calling a phone number.
[media]
http://www.youtube.com/watch?v=PleesjT9Qe4[/media]
If I get some decent feedback on this, I may release a tutorial or something showing how to set it all up, and then maybe you guys can think of other ways to use this. Also, this may not be the best way to do this, but hey. It gets the job done. Let me know what you think of this so far.
http://www.youtube.com/watch?v=DEakr7BbAEAAlso, I'm running out of things to do with this idea. If you've got any suggestions, let me know!
1214 posts
Location
The Sammich Kingdom
Posted 21 April 2013 - 05:13 PM
You should be able to embed videos with the MEDIA tag or it should do it automatically if you paste the YouTube link with HTTP instead of HTTPS.
132 posts
Posted 21 April 2013 - 05:26 PM
You should be able to embed videos with the MEDIA tag or it should do it automatically if you paste the YouTube link with HTTP instead of HTTPS.
Awesome! Thanks! I thought it used to be the [YouTube][/YouTube] tags. So many forum tags to keep track of.
645 posts
Location
'Merica
Posted 21 April 2013 - 07:35 PM
Holy crap, you mad genius, I never even thought of controlling anything in minecraft via cell phone. +1.
124 posts
Posted 21 April 2013 - 07:51 PM
ComputerCraft is officially a medium between the real world now.
132 posts
Posted 22 April 2013 - 05:03 AM
Thanks for the feedback!
1511 posts
Location
Pennsylvania
Posted 22 April 2013 - 05:15 AM
Truly interesting..
715 posts
Posted 22 April 2013 - 06:21 AM
ComputerCraft is officially a medium between the real world now.
Between the real world and … ?
But that aside, we've been able to do such things for a long time via peripherals and/or the HTTP API.
Not trying to rain on your parade, just pointing out that the capabilities for such things are all there and that people just have to seize the opportunity to try them out. ^_^/>
132 posts
Posted 22 April 2013 - 12:30 PM
ComputerCraft is officially a medium between the real world now.
Between the real world and … ?
But that aside, we've been able to do such things for a long time via peripherals and/or the HTTP API.
Not trying to rain on your parade, just pointing out that the capabilities for such things are all there and that people just have to seize the opportunity to try them out. ^_^/>/>
Yeah, I agree but I haven't seen anyone use their phone with it like this.
1214 posts
Location
The Sammich Kingdom
Posted 22 April 2013 - 12:32 PM
ComputerCraft is officially a medium between the real world now.
Between the real world and … ?
But that aside, we've been able to do such things for a long time via peripherals and/or the HTTP API.
Not trying to rain on your parade, just pointing out that the capabilities for such things are all there and that people just have to seize the opportunity to try them out. ^_^/>/>
Yeah, I agree but I haven't seen anyone use their phone with it like this.
I've seen people able to control redstone via their web browser so they could easily open a web browser on their phone and open it the control website.
132 posts
Posted 22 April 2013 - 12:34 PM
ComputerCraft is officially a medium between the real world now.
Between the real world and … ?
But that aside, we've been able to do such things for a long time via peripherals and/or the HTTP API.
Not trying to rain on your parade, just pointing out that the capabilities for such things are all there and that people just have to seize the opportunity to try them out. ^_^/>/>/>/>
Yeah, I agree but I haven't seen anyone use their phone with it like this.
I've seen people able to control redstone via their web browser so they could easily open a web browser on their phone and open it the control website.
Very true, unless you don't have Internet access :P/> plus, you could get notifications this way via SMS.
1511 posts
Location
Pennsylvania
Posted 22 April 2013 - 12:55 PM
Very true, unless you don't have Internet access
If you don't have internet access, then you wouldn't have ComputerCraft nor Minecraft.
132 posts
Posted 22 April 2013 - 01:05 PM
Very true, unless you don't have Internet access
If you don't have internet access, then you wouldn't have ComputerCraft nor Minecraft.
I'm saying if you're away from home. You'd be able to monitor your machines while away.
1511 posts
Location
Pennsylvania
Posted 22 April 2013 - 01:10 PM
Ah, ok. Gotta be specific with me ^_^/>
132 posts
Posted 22 April 2013 - 01:44 PM
Ah, ok. Gotta be specific with me ^_^/>
Haha.
475 posts
Posted 22 April 2013 - 02:08 PM
Thats awesome!
132 posts
Posted 22 April 2013 - 02:15 PM
Thats awesome!
Thanks a lot!
Keep your eyes out for another video showing off a cell phone controlled temperature gauge! Just working on adding a couple more features, then I'll release it.
53 posts
Posted 22 April 2013 - 03:15 PM
That is quite possibly the most creative thing I've seen. Please create more videos. :D/>
I have an arduino with a gsm shield somewhere so I might have to test something like this.
132 posts
Posted 22 April 2013 - 03:20 PM
That is quite possibly the most creative thing I've seen. Please create more videos. :D/>
I have an arduino with a gsm shield somewhere so I might have to test something like this.
Thanks man! If you're looking forward to more videos, you should subscribe so you're notified when I release more!
2151 posts
Location
Auckland, New Zealand
Posted 22 April 2013 - 04:23 PM
How did you get the communication between your phone and the server? Or what every interface between the phone and the computer.
132 posts
Posted 22 April 2013 - 04:56 PM
How did you get the communication between your phone and the server? Or what every interface between the phone and the computer.
I'll reveal that if/when I create a tutorial for it.
132 posts
Posted 22 April 2013 - 05:35 PM
EDIT: So I wrote some working scripts that would relay the temperature of an engine to my phone, but the program crashes too often, or displays blank data. I'm looking into it. It's possible I can fix it, but it's not looking good. If anyone wants to help me with some CC sensors code, let me know!
31 posts
Posted 23 April 2013 - 05:20 AM
interesting
2088 posts
Location
South Africa
Posted 23 April 2013 - 07:29 AM
Wow from your phone?
Really curious as to how this works :P/>
132 posts
Posted 23 April 2013 - 07:38 AM
Wow from your phone?
Really curious as to how this works :P/>
Yup, I'll probably reveal how it works sometime. The only reason I may not is because in every script (including PHP), there's either my password, or my ip address. Since I spent days setting it up, I don't want to have to redo everything.
196 posts
Location
Norway
Posted 23 April 2013 - 07:45 AM
How did you get the communication between your phone and the server? Or what every interface between the phone and the computer.
I think you can connect your computer to a phone line and then make a program that read information from the phoneline and place it in a database. The you could use the http api to get access to the database or something like that(not shure if that is how it is done, or how it works)
132 posts
Posted 23 April 2013 - 07:48 AM
How did you get the communication between your phone and the server? Or what every interface between the phone and the computer.
I think you can connect your computer to a phone line and then make a program that read information from the phoneline and place it in a database. The you could use the http api to get access to the database or something like that(not shure if that is how it is done, or how it works)
Hmm…
196 posts
Location
Norway
Posted 23 April 2013 - 07:49 AM
How did you get the communication between your phone and the server? Or what every interface between the phone and the computer.
I think you can connect your computer to a phone line and then make a program that read information from the phoneline and place it in a database. The you could use the http api to get access to the database or something like that(not shure if that is how it is done, or how it works)
Hmm…
What are you thinking about?
132 posts
Posted 23 April 2013 - 08:02 AM
How did you get the communication between your phone and the server? Or what every interface between the phone and the computer.
I think you can connect your computer to a phone line and then make a program that read information from the phoneline and place it in a database. The you could use the http api to get access to the database or something like that(not shure if that is how it is done, or how it works)
Hmm…
What are you thinking about?
Oh nothing :rolleyes:/>
196 posts
Location
Norway
Posted 23 April 2013 - 08:03 AM
:P/>
199 posts
Location
Switzerland
Posted 23 April 2013 - 08:05 AM
I hope you have done this with some sort of Arduino or other microcontroller.
Like someone mentioned before u could use a Arduino with a GSM Shield for getting the data,
Im not sure how you got the "ivr" working that tells you press 1 or 2 etc..
Really awesome thing im looking forward too see how you have done it
Greets Loki
2088 posts
Location
South Africa
Posted 23 April 2013 - 08:10 AM
Does this SMS'ing work in all Countries?
132 posts
Posted 23 April 2013 - 08:11 AM
I hope you have done this with some sort of Arduino or other microcontroller.
Like someone mentioned before u could use a Arduino with a GSM Shield for getting the data,
Im not sure how you got the "ivr" working that tells you press 1 or 2 etc..
No clue what the heck you just said.
Does this SMS'ing work in all Countries?
As far as I know, it only works in Canada and the US.
196 posts
Location
Norway
Posted 23 April 2013 - 08:18 AM
I hope you have done this with some sort of Arduino or other microcontroller.
Like someone mentioned before u could use a Arduino with a GSM Shield for getting the data,
Im not sure how you got the "ivr" working that tells you press 1 or 2 etc..
Really awesome thing im looking forward too see how you have done it
Greets Loki
How easy is it to program a Arduino?
132 posts
Posted 23 April 2013 - 08:20 AM
For anyone wondering, the calling/texting servers aren't mine.
Got everything fully working (For the most part). Making a video right now.
132 posts
Posted 23 April 2013 - 08:59 AM
Anyone want the lua code for the redstone engine temperature controller? I could use some help improving it.
196 posts
Location
Norway
Posted 23 April 2013 - 09:06 AM
Anyone want the lua code for the redstone engine temperature controller? I could use some help improving it.
Yes that would be cool :)/>
132 posts
Posted 23 April 2013 - 09:13 AM
Here's the code for the heat detector for the Stirling engine. It requires Open CC Sensors to work. The biggest problem I'm having, is that it's not putting a decimal point when it prints the heat. So instead of print out 100.5 degrees, it'll print out 1005. Anyone have any ideas for adding that little decimal in the correct spot?
Here's the code. I took out all of the website addresses for security.
timer = 0
os.loadAPI("ocs/apis/sensor")
prox = sensor.wrap("left")
local targets = prox.getTargets()
function funcheat()
while true do
for entity, basicDetails in pairs(targets) do
local moreDetails = prox.getTargetDetails(entity)
heat = moreDetails.Heat
if heat ~= nil then
term.clear()
term.setCursorPos(1,1)
overheat()
print(heat)
http.request(""..heat)
sleep(1)
timer = timer + 1
end
end
end
end
function overheat()
if timer >= 30 then
if heat ~= nil then
if heat >= 1000 then
http.request("")
timer = 0
end
end
end
end
funcheat()
196 posts
Location
Norway
Posted 23 April 2013 - 09:20 AM
Here's the code for the heat detector for the Stirling engine. It requires Open CC Sensors to work. The biggest problem I'm having, is that it's not putting a decimal point when it prints the heat. So instead of print out 100.5 degrees, it'll print out 1005. Anyone have any ideas for adding that little decimal in the correct spot?
Here's the code. I took out all of the website addresses for security.
timer = 0
os.loadAPI("ocs/apis/sensor")
prox = sensor.wrap("left")
local targets = prox.getTargets()
function funcheat()
while true do
for entity, basicDetails in pairs(targets) do
local moreDetails = prox.getTargetDetails(entity)
heat = moreDetails.Heat
if heat ~= nil then
term.clear()
term.setCursorPos(1,1)
overheat()
print(heat)
http.request(""..heat)
sleep(1)
timer = timer + 1
end
end
end
end
function overheat()
if timer >= 30 then
if heat ~= nil then
if heat >= 1000 then
http.request("")
timer = 0
end
end
end
end
funcheat()
Hmm, not shure. Might work if you devide the heat by 10
132 posts
Posted 23 April 2013 - 09:30 AM
Here's the code for the heat detector for the Stirling engine. It requires Open CC Sensors to work. The biggest problem I'm having, is that it's not putting a decimal point when it prints the heat. So instead of print out 100.5 degrees, it'll print out 1005. Anyone have any ideas for adding that little decimal in the correct spot?
Here's the code. I took out all of the website addresses for security.
timer = 0
os.loadAPI("ocs/apis/sensor")
prox = sensor.wrap("left")
local targets = prox.getTargets()
function funcheat()
while true do
for entity, basicDetails in pairs(targets) do
local moreDetails = prox.getTargetDetails(entity)
heat = moreDetails.Heat
if heat ~= nil then
term.clear()
term.setCursorPos(1,1)
overheat()
print(heat)
http.request(""..heat)
sleep(1)
timer = timer + 1
end
end
end
end
function overheat()
if timer >= 30 then
if heat ~= nil then
if heat >= 1000 then
http.request("")
timer = 0
end
end
end
end
funcheat()
Hmm, not shure. Might work if you devide the heat by 10
That was easy. I suck at programming. Thanks so much!
The new video is uploading right now. It shows that I made everything SMS based, and I added engine heat control.
196 posts
Location
Norway
Posted 23 April 2013 - 09:34 AM
No problem :D/>
132 posts
Posted 23 April 2013 - 09:43 AM
So I'm running out of things to use this for already. What would you guys use it for?
132 posts
Posted 23 April 2013 - 09:52 AM
Here's the update video. Don't forget to watch in HD.
[media]
http://www.youtube.com/watch?v=DEakr7BbAEA[/media]
286 posts
Posted 23 April 2013 - 10:38 AM
That's awsome dude! Cant wait for the tutorial!
196 posts
Location
Norway
Posted 23 April 2013 - 11:01 AM
:D/>
53 posts
Posted 23 April 2013 - 11:49 AM
I hope you have done this with some sort of Arduino or other microcontroller.
Like someone mentioned before u could use a Arduino with a GSM Shield for getting the data,
Im not sure how you got the "ivr" working that tells you press 1 or 2 etc..
Really awesome thing im looking forward too see how you have done it
Greets Loki
How easy is it to program a Arduino?
It wouldn't be too difficult to program an Arduino for this purpose, the voice prompts however may be a problem. The only hard part would be making a program to read the data from GSM modem and use it to control something.
I'm going to try this since I have one.
elfin8er, is it alright if I post a couple of screenshots here if I get something working?
Also, awesome vid. I'm looking forward to the next one.
132 posts
Posted 23 April 2013 - 11:50 AM
I hope you have done this with some sort of Arduino or other microcontroller.
Like someone mentioned before u could use a Arduino with a GSM Shield for getting the data,
Im not sure how you got the "ivr" working that tells you press 1 or 2 etc..
Really awesome thing im looking forward too see how you have done it
Greets Loki
How easy is it to program a Arduino?
It wouldn't be too difficult to program an Arduino for this purpose, the voice prompts however may be a problem. The only hard part would be making a program to read the data from GSM modem and use it to control something.
I'm going to try this since I have one.
elfin8er, is it alright if I post a couple of screenshots here if I get something working?
Go for it! This sounds really interesting!
379 posts
Location
Hawaii
Posted 23 April 2013 - 12:17 PM
I wish I could see the videos from here at school, but it really sounds neat! Never really thought anyone would be able to do this.
132 posts
Posted 23 April 2013 - 01:54 PM
I wish I could see the videos from here at school, but it really sounds neat! Never really thought anyone would be able to do this.
I have mad the impossible, possible. Mawhahaha!
132 posts
Posted 23 April 2013 - 06:10 PM
I'm thinking of moving this to a new topic I want to create called something like "Connecting Computercraft To The Real World". I'm going to probably be buying a raspberry pi in the future, and would imagine it would be possible to do some things with computercraft and it.
132 posts
Posted 24 April 2013 - 08:25 AM
It's possible I'd be able to play music with computercraft. It'd obviously have to use some other programs too, but I'm looking into it now. If I can figure it out, I'm going to make another topic about connecting the real world to computercraft.
Edit: YES! Got playing a pausing to work! I'm just gonna work on a simple song select, and maybe volume and what not.
Edit: Whew! This is way too hard. Maybe some other time…
Edit: Nevermind. I think I'm onto something here! It may be possible after all. I'm going to try a little bit of testing. This will probably require one extra program to run, and a php script.
53 posts
Posted 24 April 2013 - 01:34 PM
Ok starting on my attempt at this now. I was going to start yesterday but I'm lazy. :P/>
132 posts
Posted 30 April 2013 - 08:41 PM
Ok, kind of confused. Was the other topic deleted, and this one re-opened?
892 posts
Location
Where you'd least expect it.
Posted 30 April 2013 - 09:07 PM
132 posts
Posted 30 April 2013 - 09:21 PM
Snap. I just lost three days worth of code/tutorials.
4 posts
Location
Nederland
Posted 09 May 2013 - 07:40 PM
I have an decent knowledge of programming but im curious how you interact with the engines also what mod pack are oyu using?
199 posts
Location
Switzerland
Posted 10 May 2013 - 06:32 AM
I have an decent knowledge of programming but im curious how you interact with the engines also what mod pack are oyu using?
Its not that hard to manage
Lets see what we have within Computercraft:
1. We can Access the Internet and interact with a PHP Script
2. We can Run Code based on Readings from PHP
What we Need:
1. Sth. that can handle Phone Calls and/or SMS and Communicate with a database or PHP
2. A PHP Script.
so i would go for arduino and for everyone who wants to build sth like this i would go through this things
1. Send Data from Arduino to PHP:
http://blog.thiseldo.co.uk/?p=4182. Handle SMS and Phone Calls with Arduino:
http://tronixstuff.wordpress.com/2011/01/31/tutorial-arduino-and-gsm-cellular-%E2%80%93-part-two/With a decent knowledge of Programming an arduino + Wifi Shield and GSM Shield or Only GSM shield if u use Mobile Internet you get it done fairly easy.
For Reading the Engine Status you would also need a mod like OpenCCSensors but the process is the same
Greets
Loki
132 posts
Posted 12 May 2013 - 06:54 PM
I have an decent knowledge of programming but im curious how you interact with the engines also what mod pack are oyu using?
Its not that hard to manage
Lets see what we have within Computercraft:
1. We can Access the Internet and interact with a PHP Script
2. We can Run Code based on Readings from PHP
What we Need:
1. Sth. that can handle Phone Calls and/or SMS and Communicate with a database or PHP
2. A PHP Script.
so i would go for arduino and for everyone who wants to build sth like this i would go through this things
1. Send Data from Arduino to PHP:
http://blog.thiseldo.co.uk/?p=4182. Handle SMS and Phone Calls with Arduino:
http://tronixstuff.w...80%93-part-two/With a decent knowledge of Programming an arduino + Wifi Shield and GSM Shield or Only GSM shield if u use Mobile Internet you get it done fairly easy.
For Reading the Engine Status you would also need a mod like OpenCCSensors but the process is the same
Greets
Loki
Pretty much how it works, but the hardware isn't on my side. Only the PHP scripting.
500 posts
Posted 12 May 2013 - 08:16 PM
Snap. I just lost three days worth of code/tutorials.
QuantumGrav found a method of recovery, he helped oeed recover some stuff, you might want to talk to him.
132 posts
Posted 23 May 2013 - 11:04 PM
Snap. I just lost three days worth of code/tutorials.
QuantumGrav found a method of recovery, he helped oeed recover some stuff, you might want to talk to him.
idk, I haven't really been doing anything with it anyways.