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

CraftNanny.org Control your base online.

Started by jaranvil, 11 August 2015 - 08:52 PM
jaranvil #1
Posted 11 August 2015 - 10:52 PM
This is a new project that lets users place in-games modules on CC computers and control or monitor aspects of the game from an online platform. I want to get some people to test it out and see what they think. Also if anyone is interested in contributing, that would be great as well.

http://craftnanny.org
https://github.com/jaranvil/CraftNanny

Site features (most are works in progress):
  • Track players entering/leaving your base
  • Monitor inventory changes of nearby players
  • monitor energy and fluid storage
  • control redstone outputs, monitor inputs
  • monitor and broadcast over rednet
  • set rule based actions (set rs output at x% energy)
  • set rule based e-mail notifications (player x entered base)


Edited on 12 August 2015 - 01:14 AM
H4X0RZ #2
Posted 11 August 2015 - 11:36 PM
Wow 👏! This looks awesome! Can everyone monitor your computer, or does it have something like a (password) protection? Fail. Browsed the site for a bit and found out how it works.
Edited on 11 August 2015 - 09:40 PM
jaranvil #3
Posted 11 August 2015 - 11:39 PM
You create an account on the site and register each module in-game with that account user/pass.
HPWebcamAble #4
Posted 12 August 2015 - 01:00 AM
Awesome idea, but why is it limited to CC 1.6x?

Awesome! I'll have to try it when I get a chance.
Edited on 12 August 2015 - 01:25 AM
jaranvil #5
Posted 12 August 2015 - 01:31 AM
CC 1.6 is the minimum. I added a + to the site.
OnyxFox #6
Posted 12 August 2015 - 03:04 AM
This could be because I am connected through a wired modem but I don't know.

I should also mention I'm connected to a RC Iron Tank.
Edited on 12 August 2015 - 01:09 AM
jaranvil #7
Posted 12 August 2015 - 03:07 AM
What version of CC? Either it doesn't like the modem or your CC doesn't support getTankInfo(). I know the energy module is alright with modems, fluid one might not be yet
Edited on 12 August 2015 - 01:09 AM
OnyxFox #8
Posted 12 August 2015 - 03:11 AM
CC 1.74
jaranvil #9
Posted 12 August 2015 - 03:17 AM
Can you try directly connecting the computer? What kind of tank is it?
OnyxFox #10
Posted 12 August 2015 - 03:26 AM
Railcraft Iron Tank
jaranvil #11
Posted 12 August 2015 - 03:28 AM
Should be fine. Do you have openperipherals on your server?
OnyxFox #12
Posted 12 August 2015 - 03:29 AM
Yes. And it works when directly next to it.
jaranvil #13
Posted 12 August 2015 - 03:34 AM
Awesome, thanks for testing it out. We are slowly adding support for modems and relevant errors when things go wrong. Let me know if you have any suggestions or bug reports. GitHub issues is the best way https://github.com/jaranvil/CraftNanny/issues
OnyxFox #14
Posted 12 August 2015 - 04:25 AM
I really like it, I'll keep working with it.
Kn3ff3tS #15
Posted 12 August 2015 - 06:34 PM
What is the MySQL structure of the website?
PLS answer :)/>
jaranvil #16
Posted 12 August 2015 - 08:01 PM
I can put the DDL on github if you like, but it's not really ready to be setup on another server yet, if that's what you're doing.
Kn3ff3tS #17
Posted 12 August 2015 - 08:12 PM
I wont start a public server. Just for private use
jaranvil #18
Posted 13 August 2015 - 02:29 AM
Here you go. There are still tables I need to add for other features. This is really early code.

https://github.com/jaranvil/CraftNanny/blob/master/CraftNanny_DDL.sql
Kn3ff3tS #19
Posted 13 August 2015 - 02:07 PM
+rep for you :-)
Kn3ff3tS #20
Posted 13 August 2015 - 02:17 PM
The variable "dbconn" is undefined in main. PLS help

//EDIT: FIXED
Edited on 13 August 2015 - 12:29 PM
iAd4m #21
Posted 15 August 2015 - 04:34 PM
Looks good, keep up the work!