DrayTek UK Users' Community Forum

Help, Advice and Solutions from DrayTek Users

2925ac - show temperature - command line

  • scot99
  • Topic Author
  • User is blocked
  • User is blocked
More
29 Sep 2016 01:50 #1 by scot99
Hi,

I have a USB temperature monitor attached, the data from which the router uses and makes pretty graphs.

However when I use the 'show temperature' command on the command line (from where I will need to pull the data) I get output something along the lines of

' 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6144, 6512, 6496, 6304, 6192, 6160, 6096, 6080, 6032, 6032, 6032, 6032, 6032, 5984, 5984, 5952, 5968, 5952, 5952, 5968, 6032, 6032, 5984, 5968, 5936, 5952, 5920, 5920, 5920, 5920, 5920, 5920, 5920, 5936, 5952, 5936, 5920, 5920, 5920, 5920, 5920, 5920, 5872, 5856, 5920, 5920, 5920, 5920, 5920, 5920, 5920, 5920, 5888, 5920, 5952'

Cannot figure out for the life of me how to convert this to C or F, anyone got any suggestions?

Many thanks

Scott

Please Log in or Create an account to join the conversation.

  • sjltech.uk
  • User
  • User
More
30 Sep 2016 21:02 #2 by sjltech.uk
Replied by sjltech.uk on topic Re: 2925ac - show temperature - command line
Hi Scott,
Couldn't resist having a look at this as I have the thermometer set up too, so curiosity got the better of me.
I ran the same command and looked at the Min & Max temperatures I could see on the graph, and think I've spotted the pattern.
The comma represents the time interval (I'm sure you'd guessed that) of the sample
Max temp = 27.63, max val = 7072
Min temp = 26.88, min val = 6880
diff in temp = 0.75, diff in val = 192
so, 3/4 degree C = val of 192, which rather curiously makes 1 degree C = val of 256 (does seem like a very likely possibility !)
Perhaps you could see if dividing the min/max by 256 gives you the temperatures you see in your graph ?
NOTE: I have no "correction" setting in the sensor settings.
Be curious to know what you find.
Cheers
Simon

Please Log in or Create an account to join the conversation.

More
03 Oct 2016 10:02 #3 by admin3
Thanks for the explanation - that appears to be how it works on my 2860ac as well and putting those values into a chart in Excel via a CSV does show something like the router's temperature chart :)
I'm not sure what the time interval is yet though.



Forum Administrator

Please Log in or Create an account to join the conversation.

  • sjltech.uk
  • User
  • User
More
03 Oct 2016 11:20 #4 by sjltech.uk
Replied by sjltech.uk on topic Re: 2925ac - show temperature - command line
Hello admin3, thanks for your kind comments :D
I had assumed that the interval would tie up with the "Refresh Min(s)" setting in the Temperature Sensor Graph page, so decided to have a look.
More figures (sorry :lol: )
Router uptime = 22h16m = 1336 minutes
Refresh interval = 1m (default I think)
number of records from Show Temperature command = 1439
hmmmm, NOT what I was hoping to find BUT
The beginning of the Show Temperature output has a large number of "0," entries, curiously in my case I had 102 of these.
1439 - 102 = 1337
This is SO close to the 1336 figure I was expecting, that I'm not convinced it's coincidence ! ('though of course, I don't know what the "0,"s actually are !)
I had hoped to try changing the interval to, say, 5 minutes and see if I get something like 20 entries/hr, but I would want to reboot first to clear the logs and can't do that at the moment. However, I have a planned engineer visit in the next couple of days, so will use that opportunity to test this.
Cheers
Simon

Please Log in or Create an account to join the conversation.

  • sjltech.uk
  • User
  • User
More
10 Oct 2016 22:37 #5 by sjltech.uk
Replied by sjltech.uk on topic Re: 2925ac - show temperature - command line
Apologies for the delay getting back on this one....
From what I can see now, the 'show temperature' command returns 1440 entries (the number of minutes in 24 hours) and what I can see in the GUI ties up with this - I can see the last 24 hours worth of information, so I would guess this rolls ?
Changing the interval in the GUI made no difference to the entries in the 'show temperature' command.
So, my conclusions are:
Number/256 = temperature in degrees C
1440 entries are kept = 1 per minute for 24 hours
The log rolls over, so it's going to be a bit tricky to turn it into a useful "calendar history" since there is no timestamp anywhere to correlate
But, I am prepared to be proved wrong - had a look at an AP900 (which has got a thermometer on it) but I don't have the 'show temperature' command there :cry:
Cheers
Simon

Please Log in or Create an account to join the conversation.