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

WIP CC WebTerminal - Online ComputerCraft Terminal/Monitor system.

Started by Wojbie, 03 July 2015 - 05:47 PM
Wojbie #1
Posted 03 July 2015 - 07:47 PM
Just wanted to showcase front (graphical) part of small project i am working on and off in free time.
I present you: ComputerCraft WebTerminal.

Plan is to create CC API that will communicate using http with a php file on server saving contents of terminal object.
This page is example of how this data can be then visualized.
It may not be all professional like but it works.
Hope you like it.

https://wojbie.net/we...m/javascale.php

EDIT: The red-yellow-red frame on the part of screen is currently saved click event. Plan is to store one click event until its retrieved by cc api. It is global so if it changes for you that means someone else is clicking screen :lol:/>
Also bottom line is made from random characters and part of debug code so stuff changes between ajax updates. Everything over bottom line is read from saved file.

EDIT2: Someone is clicking :ph34r:/>

EDIT3: Screenshot in case it breaks:


EDIT: Changed the link to correct one.
Edited on 02 May 2017 - 09:24 PM
Bomb Bloke #2
Posted 04 July 2015 - 03:50 AM
Well this is pretty cool. Just for giggles, would you care to try running this through it?:

pastebin get cUYTGbpb package
pastebin get 5uk9uRjC GIF
package get wZfpq9h8
slideshow
Wojbie #3
Posted 04 July 2015 - 03:58 AM
Sadly CC api part is unfinished. Semi-operational but needs some work before its 100% usable. Right now i messed something up with php code and its not getting all updates correctly. This showcase thing is kinda semi manually made using code snippets. But when i get it working you can sure expect me to be running that thing ;p Will need some CC Server to host computer that will be messaging WebTerminal but i will find a "volunteer".
Edited on 04 July 2015 - 01:58 AM
biggest yikes #4
Posted 06 July 2015 - 04:59 PM
Neat!
Wojbie #5
Posted 03 September 2015 - 04:42 PM
Well this is pretty cool. Just for giggles, would you care to try running this through it?:

pastebin get cUYTGbpb package
pastebin get 5uk9uRjC GIF
package get wZfpq9h8
slideshow

I got it running ok! You wanted sideshow?
Here you go!
http://wojbie.net/we...vatest.html#rel

It will not show any animation due the fact that CC api updates server every 5 sec so its more like stills from animation. But it works!. If it's not updating then server that was running CC computer went under.

Screen-shot of it in action:


EDIT2:
Showcase code removed due to abuse.
Edited on 09 September 2015 - 09:03 PM
Bomb Bloke #6
Posted 04 September 2015 - 02:22 AM
Neat! Good job, dude! :)/>
funzrey_ #7
Posted 17 September 2015 - 11:38 PM
Awesome! This could actually become a multiplayer game in ComputerCraft if you did it right! You could even make a chat!
DannySMc #8
Posted 21 December 2015 - 12:20 AM
Hey, if you are still working on this, can I help out? I do web development, and really want one of these working! :D/>
Wojbie #9
Posted 21 December 2015 - 12:23 AM
Development is paused until 1.8 release. I am working on creating custom font file cause of all new letters added. Also i am testing better way to pass almost live events there and back. Currently its running on temp system that checks every 5 sec for update. So basicly with 1.8 going on it went from 80% done to 60-70% done :D/>

EDIT: Oh and i completely forgot to add 2px border stuff and i am waiting for border situation to clarify for 1.8.
Edited on 20 December 2015 - 11:25 PM
Creator #10
Posted 21 December 2015 - 06:21 AM
Why don't you have a javascript that runs on the client? Will be much faster. Like mimic does it.
Wojbie #11
Posted 21 December 2015 - 07:11 AM
Well its plenty fast for what i designed it to do. All slowdowns in this versions are delibirate ones that are there for debugging purposes. When i am done with it it will be almost instantaneous both ways.