I'm trying to get data from local port 80 into my processing sketch but it is not working.
When i put on my browser my host ip and local port (something like 169.254.186.203:80) i can see what was sent to the local port. So I tryed do get that into processing using the following simple WebClient sketch, but it doen't work.
import processing.net.*;
Client myClient;
int dataIn;
void setup() {
size(200, 200);
// Connect to the local machine at port 80.
// This example will not run if you haven't
// previously started a server on this port
myClient = new Client(this, "169.254.186.203", 80); //my ip and local port
I´m just trying to get a life time plot from temperature values, for that I built a sketch on processing based. To simulate the temperature values I used the position of the mouse.
The problem is that I just get a point running on time, not a line like I want. I think the mistake is on
drawDataLine() function (last function).
Somebody can help me with this??
Thanks in advance
float dataMin, dataMax;
float plotX1, plotY1;
float plotX2, plotY2;
float labelX, labelY;
int [] time = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24};