MTMR icon indicating copy to clipboard operation
MTMR copied to clipboard

Error with istats

Open RoXuS opened this issue 4 years ago • 8 comments

Any way to see log in case of error?

I'm trying to use this script to see CPU temperature:

  {
    "type": "shellScriptTitledButton",
    "width": 80,
    "refreshInterval": 2,
    "source": {
      "inline": "istats cpu --no-graphs --no-labels"
    },
    "align": "right",
    "bordered": false
  },

RoXuS avatar Jun 18 '20 20:06 RoXuS

oh, when I run MTMR from the term with /Applications/MTMR.app/Contents/MacOS/MTMR it's work?? (Display "error" when I launch it from app).

RoXuS avatar Jun 18 '20 20:06 RoXuS

What happens when you run the inline code in terminal?

jrsall92 avatar Jun 19 '20 13:06 jrsall92

it works: image

RoXuS avatar Jun 19 '20 14:06 RoXuS

And it works when I launch MTMR from term with /Applications/MTMR.app/Contents/MacOS/MTMR (temperature is displayed on touchbar).

RoXuS avatar Jun 19 '20 14:06 RoXuS

try to using full path for istats such like /usr/local/bin/istats

DickyQi avatar Jul 25 '20 15:07 DickyQi

@DickyQi I tried full path but it doesn't work

/Users/kikobeats/.rbenv/shims/istats cpu --no-graphs --no-labels

if I do the action on my terminal I can see it works, so something between MTMR and the inline bash script is failing 🤔

Kikobeats avatar Aug 08 '20 11:08 Kikobeats

Uploading image.png…

1148270327 avatar May 29 '21 03:05 1148270327

terminal do "which stats", then, like this, "type": "appleScriptTitledButton", "source": { "inline":"set temp to do shell script "/usr/local/bin/istats cpu --no-graphs --no-labels"\r return temp " },

1148270327 avatar May 29 '21 03:05 1148270327