Jump to content

insp1re2600

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by insp1re2600

  1. 20 hours ago, Fiery said:

    We've contacted Asus and asked them whether it's possible to access the OLED screen of their device directly.  We'll see what they have to say about this... :)  I'll let you know in this topic once we have an update.

    nice, look forward to it being a native possibility,

     

    this works with cpuz, maybe for insight.

     

    Clear-Host
    $i = 1
    Do{
    #Generate CPU-Z Log file
    Start-process "C:\Program Files\CPUID\CPU-Z\cpuz.exe" -ArgumentList "-txt=cpuinfo" -Wait
    
    #Variables
    $CPUtemp = (((Get-Content "C:\program files\CPUID\CPU-Z\cpuinfo.txt") -match "Temperature 0") -match "Package").substring(16,2)
    $CPUpercent = Get-WmiObject Win32_Processor | Select -expandproperty loadpercentage
    $RAM = Get-WmiObject Win32_OperatingSystem | Select totalvisiblememorysize, freephysicalmemory
    $RAMtotal = [math]::Round($ram.totalvisiblememorysize/1024/1024)
    $RAMusage = [math]::Round(($RAM.TotalVisibleMemorySize - $RAM.FreePhysicalMemory)/1024/1024,1)
    $IPAddress = Get-NetIPAddress | Where addressfamily -eq "ipv4" | Where interfacealias -NotLike "*loopback*" | Select -first 1 | Select -ExpandProperty ipaddress
    $Date = Get-Date -Format "MM/dd/yy hh:mm tt"
    
    #XML Stuff
    [XML]$XMLfile=Get-Content(“C:\Program Files (x86)\LightingService\OledLastProfile.xml”)
    $XMLfile.root.profiles.profile1.main.single.player.setting.text_list.text_string1 = "$date"
    $XMLfile.root.profiles.profile1.main.single.player.setting.text_list.text_string2 = "$($env:COMPUTERNAME) - $($IPAddress)"
    $XMLfile.root.profiles.profile1.main.single.player.setting.text_list.text_string3 = "CPU: $CPUpercent % / $CPUtemp °C"
    $XMLfile.root.profiles.profile1.main.single.player.setting.text_list.text_string4 = "RAM: $RAMUsage GB of $RAMtotal GB"
    $XMLfile.save(“C:\Program Files (x86)\LightingService\OledLastProfile.xml”)
    
    #LiveDash
    Restart-Service lightingservice -Force    
    Start-Sleep -Seconds 15
    }
    While($i -eq 1)

     

×
×
  • Create New...