r/StreamDeckSDK • u/Justice_Beaver200 • Jan 23 '19
Initial Release: HWiNFO64 Steam Deck Plugin
https://github.com/exension/hwinfo-streamdeck
An initial release of the HWiNFO64 Stream Deck plugin I previewed here. If you're a HWiNFO64 user and want to try this out I'd appreciate feedback. I haven't been able to test it outside of my own setup so just hearing from folks who get it setup and working would be great too.
KNOWN ISSUES:
- When enabling Shared Memory Support in HWiNFO64, make sure to quit the program (from the system tray context menu) and re-open. If you've already tried to configure a tile, restarting the Stream Deck program may be necessary.
3
u/ntoff Jan 23 '19
hwinfo v5.90-3550 doesn't give any readings, all the sensors show up but adding one just shows "please launch hwinfo64" in the button. Is there a minimum / maximum version of hwinfo that is compatible?
1
u/Justice_Beaver200 Jan 23 '19
I am using a later version but I've also been using the same data for a while now. Make sure you enabled the shared memory option in settings as outlined on the GitHub page.
1
u/ntoff Jan 24 '19
It's enabled. Your right click menu also looks different to mine, yours just seems to have "sensors, settings, quit" while mine has "show all, sensors, main, summary, settings, quit"
2
u/theclaw18 Jan 24 '19
The pre-compiled plugin doesn't want to install to stream deck. I double click it and nothing happens. (then chose stream deck as the app)
1
u/Justice_Beaver200 Jan 25 '19
Make sure you have the latest version of the Stream Deck app, 4+. The file extension should be associated with Stream Deck. If you have the latest version, then perhaps the Stream Deck folks can chime in with some help.
2
1
u/Timacfr Jan 25 '19
Yes please make sure that you have Stream Deck 4.0 or later. Earlier versions of Stream Deck don't support third party plugins.
1
u/Clorix Jan 24 '19
I love the concept, and I have it running on my Stream Deck. Is there a way to set units? For example, my Physical Memory Available button shows only a number. I would like it to show "9035 MB" in my case.
1
u/Justice_Beaver200 Jan 24 '19
Yeah there's an option for format in the property inspector... use the value: %.0f MB
That should give you the value you want
1
u/LoboStylez Jan 24 '19
Great work! Happy to see the SDK already being put into good use.
I've downloaded and enabled shared memory / restart etc. But my option in Stream Deck GUI just stays stuck on 'Loading...'
Any suggestions? Cheers!
1
u/Justice_Beaver200 Jan 24 '19
Does the icon say "Please Launch HWiNFO" ? There may be an issue with older versions of HWiNFO that I'm trying to narrow down.
If something else went wrong you may need to re-start Stream Deck. There's a log file in `%APPDATA%\Elgato\StreamDeck\Plugins\com.exension.hwinfo.sdPlugin` called `hwinfo.log` - if you upload that and share it I can get an idea of what happened.
1
u/SReject Jan 24 '19
Great job! A suggestion: instead of using github to provide a download link, use the repo to host the source and then use this page to provide the download link
1
u/Justice_Beaver200 Jan 24 '19
Totally understand that, unfortunately per the agreement with the HWiNFO author I cannot share the source. I'll be utilizing Releases after this initial release.
1
u/baggytrowsers Jan 24 '19
Can you please explain the format field? I don't understand the %.0f bit?
2
u/Justice_Beaver200 Jan 24 '19 edited Jan 24 '19
This explains it better than I can: https://golang.org/pkg/fmt/#hdr-Printing
The full wiki is here: https://en.m.wikipedia.org/wiki/Printf_format_string
In short the "%" is a control character that indicates to the string formatter what follows in a format sequence.
".0f" in this case refers to zero decimal places (".0") and the value is a floating-point number type ("f")
Input: 123.45
Format: %.0f
Output: 123
1
u/WikiTextBot Jan 24 '19
Printf format string
printf format string refers to a control parameter used by a class of functions in the input/output libraries of C and many other programming languages. The string is written in a simple template language: characters are usually copied literally into the function's output, but format specifiers, which start with a % character, indicate the location and method to translate a piece of data (such as a number) to characters.
"printf" is the name of one of the main C output functions, and stands for "print formatted". printf format strings are complementary to scanf format strings, which provide formatted input (parsing).
[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28
1
1
u/Timacfr Jan 24 '19
This looks really nice. I tried to use it but the 'Sensor:' field in the Property Inspector in Stream Deck stays on "Loading...".
I tried with HWiNFO64 6.00-3620 and the beta 6.01-3640. 'Shared Memory Support' is checked. In the hwinfo.log file, I see these suspicious lines:
Check access failed: HWiNFO OpenMutex failed
[...]
OnPropertyInspectorConnected Sensors failed: HWiNFO OpenMutex failedAny idea why the plugin seems unable to communicate with HWiNFO64 in my case?
Thanks!
1
u/Justice_Beaver200 Jan 24 '19
Super interesting. I recognize the issue but haven't ran into this myself. Mind if I message you to debug?
1
u/Timacfr Jan 25 '19
It turns out that the issue only occurs if
Sensors-onlyis disabled. If I enableSensors-only, the plugin is working correctly. Any idea what is going on?1
u/Justice_Beaver200 Jan 25 '19
Probably an optimization inside HWiNFO in where sensor data isn't gathered unless it's in this mode. Will try various configurations to narrow down and update README appropriately.
1
u/Timacfr Jan 25 '19
If this issue can't be fixed in the plugin (for example it would require a change in HWiNFO), maybe you could detect this case and display a message in the Property Inspector? At least the user would immediately understand how to work around the problem.
1
u/Justice_Beaver200 Jan 25 '19
Yeah I probably can't fix it directly within the plugin. I think using the property inspector would be an OK workaround.
If I could suggest an API to pop-up information to the user. A dialog that displays HTML similar to the way PI is handled.
This would be useful for plugins like mine that require 3rd-party configuration as well as providing an ability to display a change log, rich-content examples/readme, etc...
1
u/Justice_Beaver200 Jan 25 '19
As a first step I've updated the GitHub README to include appropriate steps for getting up and running. https://github.com/exension/hwinfo-streamdeck
1
u/Justice_Beaver200 Jan 24 '19
I was able to reproduce the issue and hopefully it's the same fix for you.
After enabling Shared Memory Support, go to the system tray and find HWiNFO64. Right click and Quit, then re-open. Shared Memory Support setting will take effect only after a full restart of the program. In case OnPropertyInspectorConnected doesn't re-trigger try and quit Stream Deck as well.
1
u/Timacfr Jan 24 '19
Sadly this is not the same issue. I tried to quit both HWiNFO and Stream Deck and relaunched both and still see the same issue. I can reproduce the problem on 2 different machines.
If you want me to try anything, feel free to send me a message. I will be more than happy to help.
1
u/TheOfficialProtostar Jan 24 '19 edited Jan 24 '19
Seems like there is an issue with adding a % symbol to readings that are missing it, (ones that already have it listed in HWiNFO like ram usage
for example when trying to set it for fan speeds it results in this: https://i.imgur.com/yU79xh0.png
Also, the way you implemented the text feature in the plugin seems to conflict with streamdecks own text: https://i.imgur.com/LeErtZh.gifv
Edit: Also seems like for certain things like clock speeds/fan speeds in RPM, the lowest line it can draw is pretty high up, instead of how low percentage based graphs can go:
1
u/Justice_Beaver200 Jan 24 '19
So for the % issue, because it's a control character if you want a literal "%" you need to escape it. The way that's done is by adding a second "%" sign, so to have a value of "75" read "75%" you'd make the format: "%.0f%%"
I did go ahead an use my own title because the inconsistency with rendering that I experienced. I read the title value and render it on the graph and set it to not show by default. I hope later versions of the SDK can make this a smoother experience but I didn't want to add a second "Title" text box and have the other one just ignored.
Regarding the issue with the Min/Max. I think all it was is that you didn't change focus from that Min text box. The value is updated when you click away, either to another text box or anywhere else really. Good feedback though and I'll look at making changes to make it more clear.
1
u/TheOfficialProtostar Jan 24 '19 edited Jan 25 '19
For the % issue that seems to work, cheers!
For the titles they seem skewed off centre to the right by a few pixels, if you cant allow us to use the stream deck title would this be able to be patched potentially in future? (same seems for the numbers also, but not as much) https://i.imgur.com/FTXWo4s.png https://i.imgur.com/BFznQKj.png
And regarding the min issue, its not what you mentioned, it does update the value if you hit enter, but here is me showing clicking outside the box (the same issue is for fan RPMs also): https://gfycat.com/UnripePeskyGoldenmantledgroundsquirrel
As you can see the min value is insanely high up the button
Enjoying everything else though and looking forward to seeing the development of the plugin!
Edit: Also any chance of allowing us to edit the refresh rate of the graphs?
1
u/Justice_Beaver200 Jan 25 '19
I'll fix the centering issue, noticed that as well.
I see the issue you have with min, will work on a repro and fix.
The refresh rate is interesting... since we're just reading values from HWiNFO, might make sense to allow you 1) sync with its refresh rate; and/or 2) set a longer rate. Thoughts?
1
u/Justice_Beaver200 Jan 25 '19
v1.0.1 released fixing the label and graph min/max issue
1
u/TheOfficialProtostar Jan 25 '19
Seems like sometimes the text is a bit too far to the right and sometimes its ok, think that might just be a kerning issue with the font though to be honest
some words are off by 2-4 pixels to the right, some are almost spot on haha
The graph min/max issue seems to work great now, thanks for the fix!
1
u/Justice_Beaver200 Jan 25 '19
I'll look into other glyph measurement techniques to try and pin down centering. The measurements I did in Photoshop were within 1 pixel, with sub-pixel anti-aliasing making it visually appear different. Most importantly it's much more centered than the built-in title in Stream Deck (toggle the display to see side by side).
Thanks for the feedback. If you see/want anything else add a GitHub issue as this thread is getting hard to parse. ;)
1
u/TheOfficialProtostar Jan 25 '19
Forsure text can be a funny thing, depending on where sofware weights the centre of a string of text might be visually different to a true centre, all depends on what letters are used and the casing really, always going to be a tough thing to get 100% right in a software solution, outside of allowing users to do offsets
Funny thing is ive given a lot of feedback on features for the streamdeck since launch to elgato personally, so back when the text editor wasnt even in their software i kept asking for better ways to position the text vertically etc, change fonts/sizes etc, i might have to bring up to them to add some kind of offset adjustment for horizontal.
Anything you might want me to relay to the dev team in regards to the SDK to make some things easier?
and for sure if i think of any cool additions/bugs i find ill whack them over on github instead, can understand how everything is starting to get split up and lost in this thread now hahah
great work dude!
1
u/TheOfficialProtostar Jan 25 '19
Yeah i originally tried setting the rates higher in hwinfo but it didnt seem to change the graph rates, i think allowing to sync with hwinfos refresh rate might be interesting!
1
u/LtRoyalShrimp Jan 24 '19 edited Jan 24 '19
Hey OP
I tried it and couldn't get it to work at first.
Then I tried running it in sensor only mode. That worked!
1
1
u/Kenshin9977 Jan 25 '19
I have an issue where every graphs are full eventhough usage / temps aren't at max : https://i.imgur.com/lL3a4rb.png
2
u/Justice_Beaver200 Jan 25 '19
There is a Min and Max field in the property inspector. Enter the desired values (e.g. min: 0, max: 100; for percentages).
1
u/Smurfss__ Feb 09 '19
Works great! Only question I had was how to have memory load and current clocks listed. Anyone know how to get these? Thank you!
1
u/Justice_Beaver200 Feb 09 '19
It may help to look through HWiNFO's Sensor screen to see all the reading values. When you find the one you want (this is "Reading"), look up for the nearest "header" value, this is the "Sensor".
For the case of memory load, the Sensor is "System: <motherboard>", the Reading is: "Physical Memory Load".
You can do the same for your CPU and GPU, too.
1
u/Smurfss__ Feb 09 '19
How do I pull that up? When I open it, a window doesn't pull it just allows for everything to be pulled through the streamdeck.
1
u/Justice_Beaver200 Feb 09 '19
https://i.imgur.com/bBPmKJY.png
You'll want to open HWiNFO64 from the system tray and get this sensors window up. This will let you see everything HWiNFO64 can see. If it's not visible to HWiNFO64, then the sensor isn't available through the Stream Deck plugin.
More info about the program: https://www.hwinfo.com/
1
Feb 21 '19
I have HWinfo running in the background but the tile on the stream deck is just Stuck with a red Loading...
1
u/Justice_Beaver200 Feb 21 '19
Take a look at the help on the GitHub page... make sure HWiNFO is configured properly.
1
u/UNIKO585 Feb 27 '19
I get the percentage worging on mine but I dont get the graph working on mine like you have in the vid above
1
u/Justice_Beaver200 Feb 27 '19
Check the min/max values and set them appropriately for the sensor reading you're configuring.
For example, if it's CPU usage %, then min 0, max 100
For CPU temperature, you might do min 20 (as in Celsius) and max 85
1
1
2
1
1
u/Kenshin9977 Jan 25 '19
I didn't had HWiNFO installed at first so I had to install it but the Plugin wasn't working. I had "Load sensors..." indefinitely.
I then checked "Show Sensors on Startup", rebooted my computer and now it works.
1
1
u/BartyB Dec 08 '22
for the D/L and u/L speeds. The values are in Mbps which I set it to. But the text itself lists KB/s. How do you change the text?
1
u/garack666 Mar 10 '23 edited Mar 10 '23
Very nice but i cant show RAM usage, theres no sensor for it ?
HW inffo shows my RAM.
EDIT found it under system!
3
u/Justice_Beaver200 Jan 25 '19
v1.0.1 Released
https://github.com/exension/hwinfo-streamdeck/releases
Fixes:
Labels weren't exactly centered (now centered to nearest pixel)
Min/max graph scaling wasn't accurate