What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

[Plugin] WatchFox

xfox

New Member
Joined
Mar 18, 2010
Messages
217
Reaction score
3
Features:
- Tiny info website with LIVE(!) updates of your bot (with)
- A Webserver for hosting your website for yourself is included (there is no public server for this)

Requirements:
- Node.js (node.js), this let's you run serverside javascript (webserver is written in js)

To DO:
- still a lot ;) graphical UI etc...

Instructions:
  1. Download and install node.js (node.js)
  2. Download webserver.zip and extract it where you want, NOT in your db folder
  3. Start the webserver with the start-server.cmd, now it will listen on port 9050 (default) for the events from the plugin and on port 33333 (default) for http-requests...
  4. Now you should be able to navigate to http://localhost:33333 with your favourite browser (i recommend chrome)... there should be a naked web site, now you have to install the plugin (next step)
  5. Download watchfox.zip (the db-plugin) and extract it to your Plugins folder
  6. Enable it and start the bot.
  7. Donate! :D (Would be great, so i can buy me an ice :D )

IMPORTANT: there is no need of reloading the page, everything is done with websockets (socket.io), so when something happens, you will see it... (looting and leaving a run with stats for now)

For using this from outside your network: you have to edit the index.html:

  • change localhost:33333 to externalip:33333
  • thanks to flexkres to this advice, i forgot to tell you those instructions ;)
 

Attachments

Last edited:
Changes:

1.2.0
  • should now smoothly run with multiple instances of DemonBuddy with one webserver (events are automagically filtered by character name, no extra setup needed)
  • shows item stats now :)
  • some visual improvements on the html page

1.1.0:
  • updated for the new non german db version 143+ (just update the plugin, webserver is still the same)

1.0.0
  • initial release
 
Last edited:
Amazing idea. Just hope its more stable than Webstats plugin. It crashes hell lots of times. And thanks for allowing us o host it on our own. So much more privacy!
 
Why are they in perfect sync?
>Yawn, gotta read through more code

M7YTj.png
 
Oh gee, I wonder why:
var socket = io.connect('http://mschaffer.dyndns.org:33333');

Change that to:
var socket = io.connect('http://127.0.0.1:33333');

>Yawn
 
Oh gee, I wonder why:
var socket = io.connect('http://mschaffer.dyndns.org:33333');

Change that to:
var socket = io.connect('http://127.0.0.1:33333');

>Yawn

oh yess... lol :D change that.... i'll fix in the zip file :D
 
OP, Good idea... but, there's quite a few things missing.
A: When refreshing the page, it really should load everything that was looted before you refreshed, good for phones when you're connecting to see previous progress, not new progress.
B: Needs better protection on the server end
C: No sure, but things are better in threes.
 
OP, Good idea... but, there's quite a few things missing.
A: When refreshing the page, it really should load everything that was looted before you refreshed, good for phones when you're connecting to see previous progress, not new progress.
B: Needs better protection on the server end
C: No sure, but things are better in threes.

A: will be done next step ;)
B: perhaps i'll do some verification-hashes for the plugin->server events
C: ? :D
 
Damn you and your port forwarding:

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            while(true)
            {
                TcpClient _tcpClient = new TcpClient();
                Console.WriteLine("Lol");
                _tcpClient.Connect("mschaffer.dyndns.org", 9050);
                Console.WriteLine("Lol");
                NetworkStream _serverStream = default(NetworkStream);
                Console.WriteLine("Lol");
                _serverStream = _tcpClient.GetStream();
                Console.WriteLine("Lol");
                byte[] outStream = Encoding.ASCII.GetBytes("{\"itemType\": \"Legs\", \"quality\": \"Legendary1\", \"name\": \"lol\", \"gold\": \"0\", \"level\": \"52\", \"color\": \"ffff00\"}");
                _serverStream.Write(outStream, 0, outStream.Length);
                _serverStream.Flush();
            }
        }
    }
}

Never connects D:
 
Damn you and your port forwarding:

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            while(true)
            {
                TcpClient _tcpClient = new TcpClient();
                Console.WriteLine("Lol");
                _tcpClient.Connect("mschaffer.dyndns.org", 9050);
                Console.WriteLine("Lol");
                NetworkStream _serverStream = default(NetworkStream);
                Console.WriteLine("Lol");
                _serverStream = _tcpClient.GetStream();
                Console.WriteLine("Lol");
                byte[] outStream = Encoding.ASCII.GetBytes("{\"itemType\": \"Legs\", \"quality\": \"Legendary1\", \"name\": \"lol\", \"gold\": \"0\", \"level\": \"52\", \"color\": \"ffff00\"}");
                _serverStream.Write(outStream, 0, outStream.Length);
                _serverStream.Flush();
            }
        }
    }
}

Never connects D:

yepp, this port is closed, run your own ;)
 
testing... :>
thanks buddy!

Edit:

Just set it up and it was pretty easy. Working at firefox without any problems.
Well, but it doesn't work on my iPhone.
If you have to use another pc to check your stats it's better to use teamviewer.
 
Last edited:
testing... :>
thanks buddy!

Edit:

Just set it up and it was pretty easy. Working at firefox without any problems.
Well, but it doesn't work on my iPhone.
If you have to use another pc to check your stats it's better to use teamviewer.

i tested in on wp7.5 and on android phones, worked like a charm....
could anyone approve it's not working on iphone?
 
BTW is it possible to redirect to a personal web domain in order to watch it when I am not at home?
 
on iphone:
settings -> safari -> java script -> on

but it doesn't work. maybe it's me or it doesn't work on iphone.
 
Back
Top