Announcement

Collapse
No announcement yet.

Determine CPU platform

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Determine CPU platform

    Hi,

    Is it possible to determine the CPU platform ?

    I need to copy an external executable which is used by the plugin, but I have compiled version for different platforms, like Windows x86, Linux x86, Windows XP embedded, and for the ARM (Raspberry Pi) CPU.

    I can determine if Windows or Linux is running, but for example not it it's running on a x86 or ARM cpu.

    Any help is more than welcome.
    Regards,

    Rien du Pre
    The Netherlands
    Using:
    Homeseer PRO latest HS4 BETA on a Raspberry
    Plugin's:
    RFXCOM, mcsMQTT, Z-Wave

    #2
    You mean to determine if your HS3 system is Arm, X86 etc?

    less /proc/cpuinfo

    Should give that info from Linux command line assuming it's Linux. Windows just right click Computer and go to Properties.

    Comment


      #3
      For windows, once you determine it's running Windows, I think you could use environment.processor_identifier and/or environment.processor_architecture to determine the CPU. I have no idea exactly which method to use or how to use it, but a quick google search gives lots of examples.
      Fred

      HomeSeer Pro 3.0.0.548, HS3Touch, Zwave 3.0.1.252, Envisalink DSC 3.0.0.40, WeatherXML, Z-stick, HS phone, Way2Call

      Comment

      Working...
      X