Desktopinfo not ref...
 
Notifications
Clear all

We appreciate the contributions many of you have been able to make towards repairing the storm damage and keeping a roof over our heads. With your help we’ve been able to complete much of the critical work. There is still work to be done to secure the house and your continued support will be a huge help.

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

Desktopinfo not refreshing while session locked

6 Posts
2 Users
2 Reactions
153 Views
(@arieltorres)
Active Member Registered
Joined: 4 weeks ago
Posts: 3
Topic starter  

Hi, Glenn, and thanks for Desktopinfo! 

One thing I'd like to find out: my Desktopinfo just run a batch file every 10 minutes to poke into my DAC (Picoreplayer+Allo Boss) thru a ssh session to get the uptime and the temperature. Works just fine, until one of two things happen:

1) I lock my session (Win+L) and, when I return the next day, Desktopinfo has stopped refreshing the info about the DAC. And stop responding when I close it and relaunch the program or kill the task in the Task manager (I've even tried TASKILL to close any instances of the program, but to no avail.)

2) After many times (say, 10) of editing the .ini file (it's addictive), Desktopinfo hangs and begin to behave weird. I have to logout on login again into the Windows session to get Desktopinfo to work again. (Again, I've even tried TASKILL to close any instances of the program, unsuccessfully.)

I hope you can give me some hints.

Thanks again for this great job!

Ariel 


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1926
 

1) I don't recall any situation where Task Manager is unable to end the process.  I will need to see the batch file to try to understand the situation.

2) Are you running WMI queries?  This is a known Windows issue that can block Desktop Info.


   
ReplyQuote
(@arieltorres)
Active Member Registered
Joined: 4 weeks ago
Posts: 3
Topic starter  

Dear @glenn, thanks por answering. And pls never mind. This was a classic RTFM case. My bad.

Instead of sending the output of ssh straight to Desktopinfo I wrote a batch file that created two text files read by FILECONTENTS. The batch was as follows:

ssh tc@192.168.1.36 "uname -n -s -r -m;uptime | awk '{print substr($0, 1, length($0)-33)}'" > c:\{user folder}\picosound_uptime.txt

ssh tc@192.168.1.36 "cat /sys/class/thermal/thermal_zone0/temp | awk '{print substr($0, 1, length($0)-3)}'" > c:\Users\{user folder}\picosound_temp.txt

After reading the manual (again, my bad), I just used CMD, as follows (and it works flawlessly):

CMD=active:1,interval:300,file:cmd.exe parameters:/C ssh tc@192.168.1.36 "uname -n -s -r -m",display:%4
CMD=active:1,interval:300,file:cmd.exe parameters:/C ssh tc@192.168.1.36 "uptime",display:%4[sub:1:25]
CMD=active:1,interval:300,file:cmd.exe parameters:/C ssh tc@192.168.1.36 "cat /sys/class/thermal/thermal_zone0/temp", display:%4

Now, the only thing I cannot figure out is the number formatting in Desktopinfo. The temperature output is a five digit number; ie, 41855. This should be 41,8°C. But I didn't hit the right method yet. Not super important, but I enjoy learning.

Thanks again!

Ariel

OT: when the storm you mention in the forum header happened? 


   
Glenn reacted
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1926
 

@arieltorres

set temp=41855
TEXT=text:Temp,display:{{%temp%/1000}}[4.1f]°C

   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1926
 

Posted by: @arieltorres

OT: when the storm you mention in the forum header happened? 

About a year ago now.  We're still repairing the damage.

 


   
ReplyQuote
(@arieltorres)
Active Member Registered
Joined: 4 weeks ago
Posts: 3
Topic starter  

@glenn Thanks, Glenn! That's what I was looking for.

And truly sorry to hear you're still battling that storm 😞

Ariel 


   
Glenn reacted
ReplyQuote
Glenn's Page