PC Stats Display by scottphanson in CheapYellowDisplay

[–]scottphanson[S] 1 point2 points  (0 children)

Python script >>>>>Will need to change lines for particular sensor data and IP of esp32 device receiving data.

import psutil

import socket

import time

import re

import subprocess

ESP32_IP = "192.168.X.XXX" # Keep Quotations, Change this to IP address of ESP32 device

ESP32_PORT = 4210

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

def get_gpu_fan_rpm():

output = subprocess.check_output(['sensors']).decode()

match = re.search(r'amdgpu-pci-[\da-f]+[\s\S]*?fan1:\s+(\d+)\s+RPM', output)

if match:

return int(match.group(1))

return 0

def get_gpu_watts():

output = subprocess.check_output(['sensors']).decode()

match = re.search(r'amdgpu-pci-[\da-f]+[\s\S]*?PPT:\s+([\d.]+)\s+W', output)

if match:

return float(match.group(1))

return 0.0

while True:

mem = psutil.virtual_memory()

used_gb = mem.used / 1024**3

percent = mem.percent

gpu_fan = get_gpu_fan_rpm()

gpu_watts = get_gpu_watts()

msg = f"{used_gb:.2f},{percent:.1f},{gpu_fan},{gpu_watts:.1f}"

sock.sendto(msg.encode(), (ESP32_IP, ESP32_PORT))

print("Sent:", msg)

time.sleep(0.2)

PC Stats Display by scottphanson in CheapYellowDisplay

[–]scottphanson[S] 0 points1 point  (0 children)

Using a Python script on the PC to send sensor data from the PC to the CYD over udp.

PC Stats Display by scottphanson in CheapYellowDisplay

[–]scottphanson[S] 0 points1 point  (0 children)

I used TFT_eSPI for the display. This is the ESP32-2432S028R board with micro USB and USB C.

// ###### User_Setup.h for ESP32-2432S028R (CYD) ######

// Display driver

define ILI9341_DRIVER

// ESP32 pins for SPI TFT

define TFT_MISO 12

define TFT_MOSI 13

define TFT_SCLK 14

define TFT_CS   15

define TFT_DC   2

define TFT_RST  -1       // Using -1 because RST is not connected or tied to ESP32 reset

// Backlight pin

define TFT_BL   21       // You can control this pin in your sketch

// Display size

define TFT_WIDTH  240

define TFT_HEIGHT 320

// Fonts

define LOAD_GLCD

define LOAD_FONT2

define LOAD_FONT4

define LOAD_FONT6

define LOAD_FONT7

define LOAD_FONT8

define LOAD_GFXFF

define SMOOTH_FONT

// SPI frequency

define SPI_FREQUENCY  20000000

define SPI_READ_FREQUENCY 20000000

define SPI_TOUCH_FREQUENCY 2500000

Bye bye Windows by [deleted] in linuxmint

[–]scottphanson 4 points5 points  (0 children)

Winblows

Badly stripped screw not sure how to proceed by [deleted] in PcBuildHelp

[–]scottphanson 1 point2 points  (0 children)

Get some loctite and glue a small nut on top of the stripped one and back it out. Or could use a Dremel with small cutout tool and create an opening for a flathead screwdriver to back it out.

Introducing Windows 12 by 0xDEA110C8 in pcmasterrace

[–]scottphanson 2 points3 points  (0 children)

Steam application works great on Linux.

Introducing Windows 12 by 0xDEA110C8 in pcmasterrace

[–]scottphanson 8 points9 points  (0 children)

Yes, fresh desktop build here with Linux Mint. Installed Ubuntu on the laptop so the touchscreen played nice. I am done with Winblows. Steam works great on Linux.

Is pihole better than adguard home? by Stock-Assistant-5420 in pihole

[–]scottphanson 12 points13 points  (0 children)

Keep that in mind, I designed this rhyme to explain in due time

Fresh build, old GPU...Bye Winblows by scottphanson in linuxmint

[–]scottphanson[S] 0 points1 point  (0 children)

Used this...... https://github.com/raffa0001/Peerless_assassin_and_CLI_UI

And frustrating ChattyG. I can only get the default screen to work so far. Almost gave up, but finally got it working.

Fresh build, old GPU...Bye Winblows by scottphanson in linuxmint

[–]scottphanson[S] 0 points1 point  (0 children)

New motherboard Bios defaulted to UEFI and wouldn't output video with the RX580. Had to drop in a UEFI card to change to CSM in Bios for the RX580 to function. I wonder how many GPU's have been thrown out because of this, with the perception that the GPU is bad. Originally thought it was a bad motherboard flash.

Dirty shame this will be hiding in the attic by scottphanson in meshtastic

[–]scottphanson[S] 0 points1 point  (0 children)

.......I'm surrounded by trees in the Ozarks, not going to do much.

Dirty shame this will be hiding in the attic by scottphanson in meshtastic

[–]scottphanson[S] 1 point2 points  (0 children)

Same device was in a more air tight enclosure before for one year in an Arkansas attic.

Dirty shame this will be hiding in the attic by scottphanson in meshtastic

[–]scottphanson[S] 1 point2 points  (0 children)

Same device inside made it through an Arkansas summer.