Code Monkey home page Code Monkey logo

istats.widget's Introduction

Roland Schaer

👨🏼‍💻 Senior Software Engineer • 🚵‍♂️ Mountainbiker • ⛱️ Part-Time Carioca

Formerly at Adobe and One Inside.

Projects i currently contribute to

  • demand - A prompt library for Rust
  • mise - A asdf-like runtime manager and task runner

Connect with me

Email LinkedIn

Technologies and Tools i use

Java Spring Go Rust JavaScript HTML5 CSS3 Git GitHub Docker Kubernetes VS Code

istats.widget's People

Contributors

dependabot[bot] avatar noblecloud avatar rivetmichael avatar roele avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

istats.widget's Issues

Problem with Ruby version?

Hi
I'm trying to install iStats in MacOS 11.1. (Big Sur) and I'm getting the following error:

Screenshot 2021-01-15 at 10 03 02

I'm not sure what I'm doing wrong here, the folder of the Ruby version is 2.6 in my case and not 2.3. I checked also the iStats Ruby Gem page in Github that they have some ideas for troubleshooting, but with no luck.
Any ideas?

Thanks in advance!!!

Ease configuration of visual appearance

Hello,

really like your widget :)
but how do i position it on the right side of the screen?
i tried to set the right:0% parameter instead of the left but it won't work...

Flashing stats

The graphics flash / flicker occasionally, seemingly without cause / correlation. Can anyone confirm / suggest fixes?

OSX El Capitan

This doesn't work nothing shows up I'm new to Übersicht

ventura 13.1

i had istats working before cleaning up my disc so some things were erased + i updated to ventura and cannot figure out how to install. tried a bunch of things on other forums and posts but this is the main issue when i try to install, and i have xcode command lines installed.
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory. /Library/Ruby/Site/2.6.0/rubygems/installer.rb:712:in verify_gem_home'
/Library/Ruby/Site/2.6.0/rubygems/installer.rb:902:in pre_install_checks' /Library/Ruby/Site/2.6.0/rubygems/installer.rb:302:in install'
/Library/Ruby/Site/2.6.0/rubygems/resolver/specification.rb:104:in install' /Library/Ruby/Site/2.6.0/rubygems/request_set.rb:194:in block in install'
/Library/Ruby/Site/2.6.0/rubygems/request_set.rb:182:in each' /Library/Ruby/Site/2.6.0/rubygems/request_set.rb:182:in install'
/Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb:210:in install_gem' /Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb:226:in block in install_gems'
/Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb:219:in each' /Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb:219:in install_gems'
/Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb:167:in execute' /Library/Ruby/Site/2.6.0/rubygems/command.rb:323:in invoke_with_build_args'
/Library/Ruby/Site/2.6.0/rubygems/command_manager.rb:185:in process_args' /Library/Ruby/Site/2.6.0/rubygems/command_manager.rb:149:in run'
/Library/Ruby/Site/2.6.0/rubygems/gem_runner.rb:51:in run' /usr/bin/gem:21:in

'
`

Add support for extra stats

Add support for showing GPU temperature.

According to VirutalSMC the GPU temperature is available with SMC key TCGC. By the comment in #22 i assume that this key can vary from hardware to hardware and possibly should be made configurable.

Widget Doesn't Display Correct Battery Level

Hi there,
So I recently downloaded and installed the iStats widget, and I've noticed that the battery level tends to be off by 5% or so. Not sure if I should be that bothered about this, but I'd just rather not have to check my (auto-hide) menu bar every time I want to see my battery level if possible.

Any help would be appreciated.

-DA

Use React JSX syntax

Widget should be reimplemented using the new React JSX syntax option.

The rewrite should also include

  • Easy & elaborate configuration options for positioning and colors
  • Dynamic battery icon
  • Unit Tests
  • Code Coverage
  • CI/CD

Error keyword class

The error that pops up on my desktop is
Screen Shot 2021-01-27 at 7 43 20 PM

I've tried the debugging methods but they didn't work. If you could help, that would be greatly appreciated!

Thank you!

Extract UI components

With #358 fixed it should be now possible to properly extract UI components (e.g. Error, Stats, Stat).

Icons not showing up...

Everything seems to be working fine, except that the icons within the donuts don't show up. I think I did everything correctly. See attached screenshot for reference. Any help is appreciated. thanks in advance!
Screen Shot 2019-04-21 at 3 56 49 PM

Doesn't work on Mojave (10.14 final release)

Hi,

Thx for the great widget! Have been using it for quite some time on High Sierra. With an upgrade to Mojave, the widget stoped rendering and now displays the output of istats command rather than dials themselves. The other Übersicht widgets I use work correctly.

Can you please help fix the issue?

The following is displayed on the desktop:

--- CPU Stats ---
CPU temp: 52.81°C �[32m▁�[0m�[32m▂�[0m�[93m▃�[0m�[93m▅�[0m▆▇

--- Fan Stats ---
Total fans in system: 2
Fan 0 speed: 2285 RPM �[32m▁�[0m�[32m▂�[0m▃▅▆▇
Fan 1 speed: 2104 RPM �[32m▁�[0m�[32m▂�[0m▃▅▆▇

--- Battery Stats ---
Battery health: Good
Cycle count: 80 �[32m▁�[0m�[32m▂�[0m▃▅▆▇ 8.0%
Max cycles: 1000
Current charge: 6365 mAh �[32m▁�[0m�[32m▂�[0m�[32m▃�[0m�[32m▅�[0m�[32m▆�[0m�[32m▇�[0m 100%
Maximum charge: 6421 mAh �[32m▁�[0m�[32m▂�[0m�[32m▃�[0m�[32m▅�[0m�[32m▆�[0m�[32m▇�[0m 96.3%
Design capacity: 6669 mAh
Battery temp: 33.3°C

--- Extra Stats ---
TG0D GPU 0 Die temp: 57.81°C �[32m▁�[0m�[32m▂�[0m�[93m▃�[0m�[93m▅�[0m▆▇

Breaks desktop

It seems to be breaking my desktop all of a sudden where all icons become unclickable. If I disable this widget they become clickable again. I wasn't having this issue until recently.

Add ordering support for stats

I managed to add extra (GPU) to the list. Is there an easy way to change the order of icons.
I'd like the GPU in second place...
Any help appreciated!

how to enable GPU for iMac

How to enable GPU temp for iMac? in istats gpu temp is shown as TG0D (GPU 0 Die), TG1D (GPU 1 Die), TG0P (proximity). iMac has Radeon Pro Vega graphic card-
The line in index.jsx 'extra.tcgc-peci-gpu-temp' is meant for intel gpu in mbp right?

Make fan display dynamic

As of now the number of displayed fans is exactly 2 not taking any variations into account. Display of the fans should be implemented in a dynamic fashion so that for other MacBook models with only on fan only one is displayed.

Mojave Error in Place of Widget

I followed the instructions to install the widget properly but an error is being shown in place of the widget.

Invariant Violation: Objects are not valid as a React child (found: Error: env: ruby_executable_hooks: No such file or directory
). If you meant to render a collection of children, use an array instead.

iStats works fine in the terminal and the command variable in index.jsx is pointing to my iStats binary. Not sure what's going wrong as I'm new to Übersicht and stuff.

System: Mac OSX Mojave 10.14.6
Ruby: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]
Gem: ~/.rvm/rubies/ruby-2.5.1/bin/gem
iStats: /usr/local/bin/istats
Uber: v1.4

Nothing shows up

Hi,

i can't get it working ! I install the gem istats, the bash script work but i see nothing in the ubersicht debug console. No errors, but the XHR calls are empty.

Any ideas ?

Stat with 0 value does not render

Hello,

first of all, thx for your great development and widget. I am using it with Ubersicht on my Mac. I only have one problem:

I changed the position to the bottom right corner. I enabled

'cpu.cpu-temp',
'fan.fan-0-speed',
'battery.current-charge'

Of course, normally the fan is not spinning at all, and stays in idle. Due to that, the Current Battery Charge moves to the left and I have a free space on the right as the fan symbol hides itself. I would prefer:

Fan Speed - left
Cpu Temp - middle
Current Battery Charge right

And when the fan is not spinning and hides itself CPU Temp and Battery charge stays in place and the free space is on the left side.

Is there anything I could change in the index.jsx file to make that happen? Or even better, no matter if the fan is idle or not, the symbol stays.

Thanks in advance!

Error when waking from sleep or login

I get this error every time the Mac wakes from sleep or when I login.
Running the latest istats/ubersicht on Big Sur beta 8

Any remedy?

[Error] Failed to load resource: The network connection was lost. (run, line 0)
[Error] Failed to load resource: The network connection was lost. (run, line 0)
[Error] Failed to load resource: The network connection was lost. (run, line 0)
[Error] Invariant Violation: Objects are not valid as a React child (found: Error: error running command). If you meant to render a collection of children, use an array instead.
in div
in Error
(anonymous function) (client.js:1:30533)
throwOnInvalidObjectType (client.js:1:247380)
(anonymous function) (client.js:1:262806)
reconcileChildrenAtExpirationTime (client.js:1:270092)
reconcileChildren (client.js:1:269871)
(anonymous function) (client.js:1:288470)
performUnitOfWork (client.js:1:334759)
workLoop (client.js:1:335598)
callCallback (client.js:1:37840)
dispatchEvent
invokeGuardedCallback (client.js:1:37927)
invokeGuardedCallback (client.js:1:39026)
replayUnitOfWork (client.js:1:344446)
renderRoot (client.js:1:336674)
performWorkOnRoot (client.js:1:351020)
performWork (client.js:1:349356)
performSyncWork (client.js:1:348268)
requestWork (client.js:1:346645)
scheduleWork$1 (client.js:1:342703)
(anonymous function) (client.js:1:355658)
(anonymous function) (client.js:1:364643)
legacyRenderSubtreeIntoContainer (client.js:1:367460)
render (client.js:1:769967)
redraw (client.js:1:766132)
[Error] The above error occurred in the

component:
in div
in Error

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
(anonymous function) (client.js:1:303867)
logError (client.js:1:303886)
(anonymous function) (client.js:1:315140)
callCallback (client.js:1:222115)
commitUpdateQueue (client.js:1:223057)
commitLifeCycles (client.js:1:306744)
commitAllLifeCycles (client.js:1:324784)
callCallback (client.js:1:37840)
dispatchEvent
invokeGuardedCallback (client.js:1:37927)
invokeGuardedCallback (client.js:1:39026)
commitRoot (client.js:1:328295)
completeRoot (client.js:1:351512)
performWorkOnRoot (client.js:1:351059)
performWork (client.js:1:349356)
performSyncWork (client.js:1:348268)
requestWork (client.js:1:346645)
scheduleWork$1 (client.js:1:342703)
(anonymous function) (client.js:1:355658)
(anonymous function) (client.js:1:364643)
legacyRenderSubtreeIntoContainer (client.js:1:367460)
render (client.js:1:769967)
redraw (client.js:1:766132)
[Error] Failed to load resource: The network connection was lost. (run, line 0)
[Error] Failed to load resource: The network connection was lost. (run, line 0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.