leots / arduino-pc-monitor Goto Github PK
View Code? Open in Web Editor NEWAn Arduino program and Python script that give you system information on an LCD
License: MIT License
An Arduino program and Python script that give you system information on an LCD
License: MIT License
also I am using a 3.5" TFT LCD display with UNO and I am running a different arduino code but using your python script to write the data to the arduino and I am getting this error.
My CPU has 6 cores.
Only 1 port found: COM3. Connecting to it...
Traceback (most recent call last):
File "C:\Users\ChetanKPatil\Desktop\Monitor\ArduinoPCMonitor.py", line 234, in
main()
File "C:\Users\ChetanKPatil\Desktop\Monitor\ArduinoPCMonitor.py", line 197, in main
config["gpu_mem_size"]
File "C:\Users\ChetanKPatil\Desktop\Monitor\ArduinoPCMonitor.py", line 126, in get_hardware_info
core_temp = find_in_data(cpu_temps, 'CPU Core #' + str(i + 1))
File "C:\Users\ChetanKPatil\Desktop\Monitor\ArduinoPCMonitor.py", line 84, in find_in_data
if ohw_data['Text'] == name:
TypeError: 'int' object is not subscriptable
the error i am getting is: Error: 'int' object is not subscriptable (line 129)
now i don't have any experience with python so i can't help with solving this sadly
this is in the main python file btw.
edit:
this is with newest installed python version on windows 8.1
Hello. Please tell me how to choose another port? I have Arduino connected to port 17 (port number 1 is occupied by another device).
See #5
What do I have to change in the Arduino code when using an 20x4 lcd with an i2c module connected?
Been messing around for hours with some similar projects but no idea
Hey, I am having a problem getting your script to run. I'm running Python 3.4.0 and Open Hardware Monitor 0.7.1 Beta. OHM web server is running and accessible from the browser at localhost:8085.
>python ArduinoPCMonitor.py
Only 1 port found: COM8. Connecting to it...
Traceback (most recent call last):
File "ArduinoPCMonitor.py", line 234, in <module>
main()
File "ArduinoPCMonitor.py", line 197, in main
config["gpu_mem_size"]
File "ArduinoPCMonitor.py", line 129, in get_hardware_info
temp_value = core_temp['Value'][:-5]
TypeError: 'int' object is not subscriptable
Contents of config.json
{
"ohw_ip": "localhost",
"ohw_port": "8085",
"cpu_name": "AMD FX-6350",
"gpu_name": "AMD Radeon HD 7800 Series",
"gpu_mem_size": 2048
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.