Comet system forum

Discussion forum about Comet system products

Temperature, Humdity,

Pressure Transmitters

and Data Loggers

You are not logged in.

#1 29-08-2012 22:25:06

brianmca
Member
Registered: 29-08-2012
Posts: 9

Webpage charts only work on Windows

The webpages for the Hx5xx and Tx5xx have graphs of the recent history of the monitored data.  These graphs are produced by a JavaScript library downloaded from the sensor called jsgraphics1.js.  The graphs do not display except on Windows.   The axis labels are there, and you can mouse-over it and tooltips appears showing the data points, but the graph is not drawn.

I have tried a variety of browsers on both Linux and Mac without success.  I used the JavaScript debugger for Firefox and got nowhere.  I've monitored the network traffic and it appears that the jsgraphics1.js file is never retrieved from the the sensor.  However, "wget http://172.20.1.12/jsgraphics1.js" works.

Offline

 

#2 29-08-2012 23:15:12

brianmca
Member
Registered: 29-08-2012
Posts: 9

Re: Webpage charts only work on Windows

In the Firefox Error Console, I get this whenever the page loads:

Error: ReferenceError: jsGraphics is not defined

Offline

 

#3 29-08-2012 23:26:45

brianmca
Member
Registered: 29-08-2012
Posts: 9

Re: Webpage charts only work on Windows

Comparing output on the Firefox Web Console between Windows and Mac, it appears that the GET of jsgraphics1.js does not succeed on the Mac.  The "status code" for the request is blank, and there is no sign of a response.

If I use lwp-download from the command line, it works.

Offline

 

#4 30-08-2012 06:55:14

HonzaD
Administrator
Registered: 11-08-2008
Posts: 294

Re: Webpage charts only work on Windows

Hello,

I think you have problem with multiple connection (sockets) from your web browser at one moment. Tx5xx and Hx5xx devices have only one socket web server. You can try disable multiple connection inside your web browser.

Example for Firefox:

Code:

about:config
network.http.max-connections-per-server set to 1

Jan

Offline

 

#5 30-08-2012 15:30:54

brianmca
Member
Registered: 29-08-2012
Posts: 9

Re: Webpage charts only work on Windows

Thank you!  It does need to be 1.  Current default on Mac and Linux is 15.

Offline

 

#6 30-08-2012 21:06:12

brianmca
Member
Registered: 29-08-2012
Posts: 9

Re: Webpage charts only work on Windows

While this is a valid work-around something else must be going on as the setting in Firefox on Windows is also 15, yet it works.

Offline

 

#7 31-08-2012 07:15:55

HonzaD
Administrator
Registered: 11-08-2008
Posts: 294

Re: Webpage charts only work on Windows

Hello,

I think windows have different network stack (winsock library). Maybe for future we can thinking about multiple sockets for web server inside device.


Jan

Offline

 

Board footer

Powered by PunBB | CZ / SK
© Copyright 2002–2005 Rickard Andersson