It is currently March 28th, 2024, 5:40 pm

Rainmeter with CorsairLink4

Share and get help with Plugins and Addons
Post Reply
jilkka
Posts: 1
Joined: January 29th, 2016, 2:37 am

Rainmeter with CorsairLink4

Post by jilkka »

Just got CorsairLink4 to work with rainmeter, in an albeit jury rigged way. However, it is working smoothly for me. Using it to display my H110i coolant temp, and also the fan speed. Might also add pump speed at a later date.
This post was inspired by an old rainmeter thread from 2013: https://forum.rainmeter.net/viewtopic.php?f=4&t=16021

In order for Rainmeter to get values, I used the log to file option in CL4, after enabling the H110i Temp and Fan in the graphing feature.
Next, I plugged the sample for Webparser plugin into a modified illustro skin, and then change the URL to file:// and pointed it to the log file.
Added an update of 3 seconds, and regexp of

Code: Select all

(?si).*M,(.*),(.*)$
to look for M in AM or PM, then display

Code: Select all

StringIndex=1
for my Temp or StringIndex=2 for fan speed.

Code example for Temp:

Code: Select all

[MeasureH110i]
Measure=Plugin
Plugin=WebParser
URL=file://C:/Users/<username-here>/Documents/corsair_link_20160128_21_34_56.csv
StringIndex=1
UpdateRate=3
RegExp=(?si).*M,(.*),(.*)$
MinValue=0
MaxValue=65
DynamicVariables=1

[MeterTextH110i]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=80
W=190
H=14
Text="H110i Coolant"
StringStyle=BOLD

[ValueTextH110i]
Meter=STRING
MeterStyle=styleRightText
X=200
Y=0r
W=190
H=14
MeasureName=MeasureH110i
Text="%1"
StringStyle=BOLD


[MeterBarH110i]
Meter=BAR
MeterStyle=styleBar
MeasureName=MeasureH110i
X=10
Y=92
W=190
H=1
And here is a pic of the customized skin:
Image

The fan speed one was similar, only exception being the Fan speed value kept overwriting the "RPM" string next to it when i had it as such: "%1 RPM"
In order to rectify that, I simply copied the MeterBarText block and offset the value variable block by 5 pixels on X. So X=175 now:

Code: Select all

[ValueTextH110i]
Meter=STRING
MeterStyle=styleRightText
X=175
Y=0r
W=190
H=14
MeasureName=MeasureH110iFan
Text=%1
StringStyle=BOLD

[ValueText2H110i]
Meter=STRING
MeterStyle=styleRightText
X=200
Y=0r
W=190
H=14
MeasureName=MeasureH110iFan
Text="RPM"
StringStyle=BOLD
And a picture of how that looks:
Image

And that's all there was to that. Figured someone might want to get this working, so here you go!
Comments welcome, and if you have better ways of doing it I am totally down to hear them... like I said, this is just a jury rig, so I could get it to work.
Post Reply