Stuck at loading graph

Started by Lensdigital, September 12, 2015, 07:03:48 PM

Lensdigital

I had gateway.js running with connected sensor for about 24 hours now.
I see files in db folder, but when I clean on specific metric (i.e. temperature) I get "graph loading..." bar that stays there forever? Did I miss something during installation (I installed all components separately)?

Felix

Can you open the browser F12 window and see if there are any javascript errors?
Also on the server can you open the console output log (same directory as gateway.js) and scan for any errors?

Felix

There was a bug in index.php, can you get latest and please try again?

Lensdigital


Pacif13r

Hi Felix,

I'm getting the same problem even with the latest index.php.

ReferenceError: graphView is not defined
https://192.168.1.5/
Line 820 : graphView.resetDomain();


Thanks,
Justin

Lensdigital

#5
Quote from: Felix on September 14, 2015, 08:41:23 AM
Can you open the browser F12 window and see if there are any javascript errors?
Also on the server can you open the console output log (same directory as gateway.js) and scan for any errors?
It's working now!
It couldn't find graphHelper.js in the root website directory. So I moved it there from JS subfolder.  Now I can see graph, how cool! And I copied new index.php file as well!

BTW is there any way to display temperature in Fahrenheit?

Felix

Yes of course, the metrics are already doing that. The question is not clear to me...

Lensdigital

#7
It only shows temperature converted to Celsius for me. For example I'm sending
[34]  C:20 F:68 H:50   [RSSI:0]

But Website displays 20°

Edit: Never mind I found a way to fix it in the metrics file :)
F : { name:'F', regexp:/F\:(-?\d+)/i, value:'', unit:'F°', pin:1, graph:1, graphValSuffix:'F', graphOptions:{ legendLbl:'Temperature' }},