Jump to content

PC RGB Led Strip Controller

Go to solution Solved by fizzlesticks,

Since you don't know C++ well, you could skip that step and install Open Hardware Monitor. It has a built in web server that you can use to get your temperatures, here's some code I used to get my GPU temps but it's in Python

 

 

The values for the child indexes may be different depending on what you configure OHM to show but doing this in Node.js would be a lot simpler than worrying about writing something yourself in C++ and will also work if you ever switch to nvidia.

import json,urllib.request serverIp = '192.168.56.1'serverPort = '8085' resp = urllib.request.urlopen('http://{}:{}/data.json'.format(serverIp,serverPort))js = json.loads(resp.read().decode('utf-8')) print(js['Children'][0]['Children'][1]['Children'][1]['Children'][0]['Value'])

Hi, guys. 
I recently  bought 5 meters of RGB led strip and decided to write "controller" software which will change the color of the strip inside of my case.

 

I am going to use Arduino in order to control the RGBs and Node.JS with node-webkit module for creating software. 

I thought that the casual color change won't be enough and decided to add dynamic color change depending on GPU temp/fan speed/etc. My GPU is R9 280x and for getting that information I need to use library which called is AMD Display Library (ADL). I have very little experience with C/C++ and now I am on the stage of creating the Node.JS C/C++ addon for getting all the GPU information. 

 

Are there people who can help me with C/C++ Node.JS native addon development? I can't figure out how to write addon with Visual Studio and how to debug it.

 

Also If you have any feature request that you think is cool, tell me. Maybe I will implement it :).

 

P.S. I am going to make everything is open-source, so if you interested I can give you my github repo link.

 

Link to comment
https://linustechtips.com/topic/309877-pc-rgb-led-strip-controller/
Share on other sites

Link to post
Share on other sites

Since you don't know C++ well, you could skip that step and install Open Hardware Monitor. It has a built in web server that you can use to get your temperatures, here's some code I used to get my GPU temps but it's in Python

 

 

The values for the child indexes may be different depending on what you configure OHM to show but doing this in Node.js would be a lot simpler than worrying about writing something yourself in C++ and will also work if you ever switch to nvidia.

import json,urllib.request serverIp = '192.168.56.1'serverPort = '8085' resp = urllib.request.urlopen('http://{}:{}/data.json'.format(serverIp,serverPort))js = json.loads(resp.read().decode('utf-8')) print(js['Children'][0]['Children'][1]['Children'][1]['Children'][0]['Value'])

1474412270.2748842

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×