├── .gitignore ├── LICENSE ├── MANIFEST.in ├── OpenHWMonitor ├── Aga.Controls.dll ├── License.html ├── OpenHardwareMonitor.config ├── OpenHardwareMonitor.exe ├── OpenHardwareMonitor.exe.config ├── OpenHardwareMonitorLib.dll ├── OxyPlot.WindowsForms.dll └── OxyPlot.dll ├── README.md ├── appveyor.yml ├── appveyor └── run_with_env.cmd ├── helper.py ├── libusb-1.0.dll ├── openhw-gui.ui ├── openhwcontrol.iss ├── openhwcontrol ├── __init__.py ├── cooler.py ├── grid.py ├── gui.py ├── helper.py ├── openhwmon.py ├── polling.py ├── settings.py └── ui.py ├── setup-exe.py ├── setup.py ├── ui.exe └── version /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | env/ 12 | build/ 13 | develop-eggs/ 14 | dist/ 15 | downloads/ 16 | eggs/ 17 | .eggs/ 18 | lib/ 19 | lib64/ 20 | parts/ 21 | sdist/ 22 | var/ 23 | *.egg-info/ 24 | .installed.cfg 25 | *.egg 26 | 27 | # PyInstaller 28 | # Usually these files are written by a python script from a template 29 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 30 | *.manifest 31 | *.spec 32 | 33 | # Installer logs 34 | pip-log.txt 35 | pip-delete-this-directory.txt 36 | 37 | # Unit test / coverage reports 38 | htmlcov/ 39 | .tox/ 40 | .coverage 41 | .coverage.* 42 | .cache 43 | nosetests.xml 44 | coverage.xml 45 | *,cover 46 | .hypothesis/ 47 | 48 | # Translations 49 | *.mo 50 | *.pot 51 | 52 | # Django stuff: 53 | *.log 54 | local_settings.py 55 | 56 | # Flask stuff: 57 | instance/ 58 | .webassets-cache 59 | 60 | # Scrapy stuff: 61 | .scrapy 62 | 63 | # Sphinx documentation 64 | docs/_build/ 65 | 66 | # PyBuilder 67 | target/ 68 | 69 | # IPython Notebook 70 | .ipynb_checkpoints 71 | 72 | # pyenv 73 | .python-version 74 | 75 | # celery beat schedule file 76 | celerybeat-schedule 77 | 78 | # dotenv 79 | .env 80 | 81 | # virtualenv 82 | venv/ 83 | ENV/ 84 | 85 | # Spyder project settings 86 | .spyderproject 87 | 88 | # Rope project settings 89 | .ropeproject 90 | 91 | Output/ 92 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include README.md 2 | -------------------------------------------------------------------------------- /OpenHWMonitor/Aga.Controls.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kusti8/OpenHWControl/ed59be4eee343b1615251743c4195aed1f0a58f1/OpenHWMonitor/Aga.Controls.dll -------------------------------------------------------------------------------- /OpenHWMonitor/License.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 6 | 7 | 8 | 9 | 10 | Open Hardware Monitor - License 11 | 49 | 50 | 51 | 52 | 53 |
54 |
55 | 56 |

Open Hardware Monitor License

57 | 58 |

59 | The binaries of the Open Hardware Monitor have been made available by the Open Hardware Monitor Project under the Mozilla Public License 2.0 (MPL). 60 |

61 | 62 |

63 | The source code of the Open Hardware Monitor is available under licenses which are both free and open source. Most of it is available under the Mozilla Public License 2.0 (MPL). 64 |

65 | 66 | 69 | 70 |

71 | The remainder of the software which is not under the Mozilla Public License 2.0 (MPL) is available under one of a variety of other licenses which are given below. 72 |

73 | 74 | 82 | 83 |
84 |
85 | 86 |

Mozilla Public License 2.0

87 |

1. Definitions

88 |
89 |
1.1. “Contributor”
90 |

means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software.

91 |
92 |
1.2. “Contributor Version”
93 |

means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor’s Contribution.

94 |
95 |
1.3. “Contribution”
96 |

means Covered Software of a particular Contributor.

97 |
98 |
1.4. “Covered Software”
99 |

means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof.

100 |
101 |
1.5. “Incompatible With Secondary Licenses”
102 |

means

103 |
    104 |
  1. that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or

  2. 105 |
  3. that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License.

  4. 106 |
107 |
108 |
1.6. “Executable Form”
109 |

means any form of the work other than Source Code Form.

110 |
111 |
1.7. “Larger Work”
112 |

means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software.

113 |
114 |
1.8. “License”
115 |

means this document.

116 |
117 |
1.9. “Licensable”
118 |

means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License.

119 |
120 |
1.10. “Modifications”
121 |

means any of the following:

122 |
    123 |
  1. any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or

  2. 124 |
  3. any new file in Source Code Form that contains any Covered Software.

  4. 125 |
126 |
127 |
1.11. “Patent Claims” of a Contributor
128 |

means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version.

129 |
130 |
1.12. “Secondary License”
131 |

means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses.

132 |
133 |
1.13. “Source Code Form”
134 |

means the form of the work preferred for making modifications.

135 |
136 |
1.14. “You” (or “Your”)
137 |

means an individual or a legal entity exercising rights under this License. For legal entities, “You” includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, “control” means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.

138 |
139 |
140 |

2. License Grants and Conditions

141 |

2.1. Grants

142 |

Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license:

143 |
    144 |
  1. under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and

  2. 145 |
  3. under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version.

  4. 146 |
147 |

2.2. Effective Date

148 |

The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution.

149 |

2.3. Limitations on Grant Scope

150 |

The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor:

151 |
    152 |
  1. for any code that a Contributor has removed from Covered Software; or

  2. 153 |
  3. for infringements caused by: (i) Your and any other third party’s modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or

  4. 154 |
  5. under Patent Claims infringed by Covered Software in the absence of its Contributions.

  6. 155 |
156 |

This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4).

157 |

2.4. Subsequent Licenses

158 |

No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3).

159 |

2.5. Representation

160 |

Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License.

161 |

2.6. Fair Use

162 |

This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents.

163 |

2.7. Conditions

164 |

Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1.

165 |

3. Responsibilities

166 |

3.1. Distribution of Source Form

167 |

All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients’ rights in the Source Code Form.

168 |

3.2. Distribution of Executable Form

169 |

If You distribute Covered Software in Executable Form then:

170 |
    171 |
  1. such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and

  2. 172 |
  3. You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients’ rights in the Source Code Form under this License.

  4. 173 |
174 |

3.3. Distribution of a Larger Work

175 |

You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s).

176 |

3.4. Notices

177 |

You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies.

178 |

3.5. Application of Additional Terms

179 |

You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction.

180 |

4. Inability to Comply Due to Statute or Regulation

181 |

If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.

182 |

5. Termination

183 |

5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice.

184 |

5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate.

185 |

5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination.

186 |

6. Disclaimer of Warranty

187 |

Covered Software is provided under this License on an “as is” basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the Covered Software is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire risk as to the quality and performance of the Covered Software is with You. Should any Covered Software prove defective in any respect, You (not any Contributor) assume the cost of any necessary servicing, repair, or correction. This disclaimer of warranty constitutes an essential part of this License. No use of any Covered Software is authorized under this License except under this disclaimer.

188 |

7. Limitation of Liability

189 |

Under no circumstances and under no legal theory, whether tort (including negligence), contract, or otherwise, shall any Contributor, or anyone who distributes Covered Software as permitted above, be liable to You for any direct, indirect, special, incidental, or consequential damages of any character including, without limitation, damages for lost profits, loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses, even if such party shall have been informed of the possibility of such damages. This limitation of liability shall not apply to liability for death or personal injury resulting from such party’s negligence to the extent applicable law prohibits such limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so this exclusion and limitation may not apply to You.

190 |

8. Litigation

191 |

Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party’s ability to bring cross-claims or counter-claims.

192 |

9. Miscellaneous

193 |

This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor.

194 |

10. Versions of the License

195 |

10.1. New Versions

196 |

Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number.

197 |

10.2. Effect of New Versions

198 |

You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward.

199 |

10.3. Modified Versions

200 |

If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License).

201 |

10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses

202 |

If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached.

203 |

Exhibit A - Source Code Form License Notice

204 |
205 |

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

206 |
207 |

If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.

208 |

You may add additional accurate notices of copyright ownership.

209 |

Exhibit B - “Incompatible With Secondary Licenses” Notice

210 |
211 |

This Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla Public License, v. 2.0.

212 |
213 | 214 |
215 | 216 |

Aga.Controls License

217 |

218 | This license applies to the Aga.Controls assembly (TreeViewAdv component). 219 |

220 |
221 | Copyright (c) 2009, Andrey Gliznetsov (a.gliznetsov@gmail.com)
222 | 
223 | All rights reserved.
224 | 
225 | Redistribution and use in source and binary forms, with or without modification,
226 | are permitted provided that the following conditions are met
227 | 
228 | - Redistributions of source code must retain the above copyright notice, this list
229 | of conditions and the following disclaimer.
230 | - Redistributions in binary form must reproduce the above copyright notice, this
231 | list of conditions and the following disclaimer in the documentation andor other
232 | materials provided with the distribution.
233 | 
234 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
235 | AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
236 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
237 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
238 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
239 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
240 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
241 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
242 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
243 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
244 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
245 | 
246 | 247 |
248 | 249 |

WinRing0 License

250 |

251 | This license applies to the WinRing0 device drivers. 252 |

253 |
254 | Copyright (c) 2007-2009 OpenLibSys.org. All rights reserved.
255 | 
256 | Redistribution and use in source and binary forms, with or without
257 | modification, are permitted provided that the following conditions
258 | are met:
259 | 1. Redistributions of source code must retain the above copyright
260 |    notice, this list of conditions and the following disclaimer.
261 | 2. Redistributions in binary form must reproduce the above copyright
262 |    notice, this list of conditions and the following disclaimer in the
263 |    documentation and/or other materials provided with the distribution.
264 | 
265 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
266 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
267 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
268 | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
269 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
270 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
271 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
272 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
273 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
274 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
275 | 
276 | 277 |
278 | 279 |

jQuery License

280 |

281 | This license applies to the jQuery JavaScript library. 282 |

283 |
284 | Copyright (c) 2012 John Resig, http://jquery.com/
285 | 
286 | Permission is hereby granted, free of charge, to any person obtaining a copy 
287 | of this software and associated documentation files (the "Software"), to deal 
288 | in the Software without restriction, including without limitation the rights 
289 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
290 | copies of the Software, and to permit persons to whom the Software is 
291 | furnished to do so, subject to the following conditions:
292 | 
293 | The above copyright notice and this permission notice shall be included in 
294 | all copies or substantial portions of the Software.
295 | 
296 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
297 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
298 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
299 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
300 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
301 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
302 | THE SOFTWARE.
303 | 
304 | 305 |
306 | 307 |

Knockout License

308 |

309 | This license applies to the Knockout JavaScript library. 310 |

311 |
312 | Copyright (c) 2012 Steven Sanderson, Roy Jacobs
313 | 
314 | Permission is hereby granted, free of charge, to any person obtaining a copy 
315 | of this software and associated documentation files (the "Software"), to deal 
316 | in the Software without restriction, including without limitation the rights 
317 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
318 | copies of the Software, and to permit persons to whom the Software is 
319 | furnished to do so, subject to the following conditions:
320 | 
321 | The above copyright notice and this permission notice shall be included in 
322 | all copies or substantial portions of the Software.
323 | 
324 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
325 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
326 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
327 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
328 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
329 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
330 | THE SOFTWARE.
331 | 
332 | 333 |
334 | 335 |

OxyPlot License

336 |

337 | This license applies to the OxyPlot library. 338 |

339 |
340 | Copyright (c) 2012 Oystein Bjorke
341 | 
342 | Permission is hereby granted, free of charge, to any person obtaining a copy 
343 | of this software and associated documentation files (the "Software"), to deal 
344 | in the Software without restriction, including without limitation the rights 
345 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
346 | copies of the Software, and to permit persons to whom the Software is 
347 | furnished to do so, subject to the following conditions:
348 | 
349 | The above copyright notice and this permission notice shall be included in 
350 | all copies or substantial portions of the Software.
351 | 
352 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
353 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
354 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
355 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
356 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
357 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
358 | THE SOFTWARE.
359 | 
360 | 361 |
362 | 363 |

LINQBridge License

364 |

365 | This license applies to the LINQBridge library. 366 |

367 |
368 | Copyright (c) 2007-2009 Atif Aziz, Joseph Albahari. All rights reserved.
369 | 
370 | Redistribution and use in source and binary forms, with or without 
371 | modification, are permitted provided that the following conditions 
372 | are met:
373 | 
374 | - Redistributions of source code must retain the above copyright notice, this list 
375 | of conditions and the following disclaimer. 
376 | - Redistributions in binary form must reproduce the above copyright notice, this 
377 | list of conditions and the following disclaimer in the documentation and/or other 
378 | materials provided with the distribution. 
379 | - Neither the name of the original authors nor the names of its contributors may 
380 | be used to endorse or promote products derived from this software without specific 
381 | prior written permission. 
382 | 
383 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
384 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
385 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
386 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
387 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
388 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
389 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
390 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 
391 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
392 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
393 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
394 | 
395 | 
396 | 397 |
398 |
399 | 400 | 401 | 402 | -------------------------------------------------------------------------------- /OpenHWMonitor/OpenHardwareMonitor.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /OpenHWMonitor/OpenHardwareMonitor.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kusti8/OpenHWControl/ed59be4eee343b1615251743c4195aed1f0a58f1/OpenHWMonitor/OpenHardwareMonitor.exe -------------------------------------------------------------------------------- /OpenHWMonitor/OpenHardwareMonitor.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /OpenHWMonitor/OpenHardwareMonitorLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kusti8/OpenHWControl/ed59be4eee343b1615251743c4195aed1f0a58f1/OpenHWMonitor/OpenHardwareMonitorLib.dll -------------------------------------------------------------------------------- /OpenHWMonitor/OxyPlot.WindowsForms.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kusti8/OpenHWControl/ed59be4eee343b1615251743c4195aed1f0a58f1/OpenHWMonitor/OxyPlot.WindowsForms.dll -------------------------------------------------------------------------------- /OpenHWMonitor/OxyPlot.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kusti8/OpenHWControl/ed59be4eee343b1615251743c4195aed1f0a58f1/OpenHWMonitor/OxyPlot.dll -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # OpenHWControl 2 | Support me on Patreon:https://www.patreon.com/kusti8 3 | 4 | A cross platform open source tool to control NZXT components easily through software. 5 | Includes support for Hue+, Kraken, and the Grid+! 6 | 7 | ## Install 8 | 9 | ### Windows 10 | 11 | Windows installers are available at the releases page. 12 | 13 | ### Linux/OSX 14 | 15 | Install it using pip: `sudo pip install openhwmonitor` 16 | 17 | ## Usage 18 | Fire up openhwcontrol and you'll be presented with the UI. OpenHWMonitor 19 | must be running if on Windows to use the Grid+ and temperature sensing. 20 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | environment: 2 | global: 3 | # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the 4 | # /E:ON and /V:ON options are not enabled in the batch script intepreter 5 | # See: http://stackoverflow.com/a/13751649/163740 6 | CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd" 7 | 8 | matrix: 9 | - PYTHON: "C:\\Python35-x64" 10 | PYTHON_VERSION: "3.5.0" 11 | PYTHON_ARCH: "64" 12 | 13 | install: 14 | # If there is a newer build queued for the same PR, cancel this one. 15 | # The AppVeyor 'rollout builds' option is supposed to serve the same 16 | # purpose but it is problematic because it tends to cancel builds pushed 17 | # directly to master instead of just PR builds (or the converse). 18 | # credits: JuliaLang developers. 19 | - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod ` 20 | https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | ` 21 | Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` 22 | throw "There are newer queued builds for this pull request, failing early." } 23 | - ECHO "Filesystem root:" 24 | - ps: "ls \"C:/\"" 25 | 26 | - ECHO "Installed SDKs:" 27 | - ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\"" 28 | 29 | 30 | # Prepend newly installed Python to the PATH of this build (this cannot be 31 | # done from inside the powershell script as it would require to restart 32 | # the parent CMD process). 33 | - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" 34 | 35 | # Check that we have the expected version and architecture for Python 36 | - "python --version" 37 | - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" 38 | 39 | # Upgrade to the latest version of pip to avoid it displaying warnings 40 | # about it being out of date. 41 | - "pip install --disable-pip-version-check --user --upgrade pip" 42 | 43 | # Install the build dependencies of the project. If some dependencies contain 44 | # compiled extensions and are not provided as pre-built wheel packages, 45 | # pip will build them from source using the MSVC compiler matching the 46 | # target Python version and architecture 47 | - "%CMD_IN_ENV% pip install cx_freeze pyqt5 pyusb hue_plus pypiwin32 wmi" 48 | - "choco install -y InnoSetup" 49 | 50 | build_script: 51 | # Build the compiled extension 52 | - "%CMD_IN_ENV% python setup-exe.py build" 53 | - set PATH=%PATH%;"C:\\Program Files (x86)\\Inno Setup 5" 54 | - iscc openhwcontrol.iss 55 | 56 | test_script: 57 | 58 | after_test: 59 | 60 | artifacts: 61 | # Archive the generated packages in the ci.appveyor.com build report. 62 | - path: Output\* 63 | -------------------------------------------------------------------------------- /appveyor/run_with_env.cmd: -------------------------------------------------------------------------------- 1 | :: To build extensions for 64 bit Python 3, we need to configure environment 2 | :: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of: 3 | :: MS Windows SDK for Windows 7 and .NET Framework 4 (SDK v7.1) 4 | :: 5 | :: To build extensions for 64 bit Python 2, we need to configure environment 6 | :: variables to use the MSVC 2008 C++ compilers from GRMSDKX_EN_DVD.iso of: 7 | :: MS Windows SDK for Windows 7 and .NET Framework 3.5 (SDK v7.0) 8 | :: 9 | :: 32 bit builds, and 64-bit builds for 3.5 and beyond, do not require specific 10 | :: environment configurations. 11 | :: 12 | :: Note: this script needs to be run with the /E:ON and /V:ON flags for the 13 | :: cmd interpreter, at least for (SDK v7.0) 14 | :: 15 | :: More details at: 16 | :: https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows 17 | :: http://stackoverflow.com/a/13751649/163740 18 | :: 19 | :: Author: Olivier Grisel 20 | :: License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/ 21 | :: 22 | :: Notes about batch files for Python people: 23 | :: 24 | :: Quotes in values are literally part of the values: 25 | :: SET FOO="bar" 26 | :: FOO is now five characters long: " b a r " 27 | :: If you don't want quotes, don't include them on the right-hand side. 28 | :: 29 | :: The CALL lines at the end of this file look redundant, but if you move them 30 | :: outside of the IF clauses, they do not run properly in the SET_SDK_64==Y 31 | :: case, I don't know why. 32 | @ECHO OFF 33 | 34 | SET COMMAND_TO_RUN=%* 35 | SET WIN_SDK_ROOT=C:\Program Files\Microsoft SDKs\Windows 36 | SET WIN_WDK=c:\Program Files (x86)\Windows Kits\10\Include\wdf 37 | 38 | :: Extract the major and minor versions, and allow for the minor version to be 39 | :: more than 9. This requires the version number to have two dots in it. 40 | SET MAJOR_PYTHON_VERSION=%PYTHON_VERSION:~0,1% 41 | IF "%PYTHON_VERSION:~3,1%" == "." ( 42 | SET MINOR_PYTHON_VERSION=%PYTHON_VERSION:~2,1% 43 | ) ELSE ( 44 | SET MINOR_PYTHON_VERSION=%PYTHON_VERSION:~2,2% 45 | ) 46 | 47 | :: Based on the Python version, determine what SDK version to use, and whether 48 | :: to set the SDK for 64-bit. 49 | IF %MAJOR_PYTHON_VERSION% == 2 ( 50 | SET WINDOWS_SDK_VERSION="v7.0" 51 | SET SET_SDK_64=Y 52 | ) ELSE ( 53 | IF %MAJOR_PYTHON_VERSION% == 3 ( 54 | SET WINDOWS_SDK_VERSION="v7.1" 55 | IF %MINOR_PYTHON_VERSION% LEQ 4 ( 56 | SET SET_SDK_64=Y 57 | ) ELSE ( 58 | SET SET_SDK_64=N 59 | IF EXIST "%WIN_WDK%" ( 60 | :: See: https://connect.microsoft.com/VisualStudio/feedback/details/1610302/ 61 | REN "%WIN_WDK%" 0wdf 62 | ) 63 | ) 64 | ) ELSE ( 65 | ECHO Unsupported Python version: "%MAJOR_PYTHON_VERSION%" 66 | EXIT 1 67 | ) 68 | ) 69 | 70 | IF %PYTHON_ARCH% == 64 ( 71 | IF %SET_SDK_64% == Y ( 72 | ECHO Configuring Windows SDK %WINDOWS_SDK_VERSION% for Python %MAJOR_PYTHON_VERSION% on a 64 bit architecture 73 | SET DISTUTILS_USE_SDK=1 74 | SET MSSdk=1 75 | "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Setup\WindowsSdkVer.exe" -q -version:%WINDOWS_SDK_VERSION% 76 | "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Bin\SetEnv.cmd" /x64 /release 77 | ECHO Executing: %COMMAND_TO_RUN% 78 | call %COMMAND_TO_RUN% || EXIT 1 79 | ) ELSE ( 80 | ECHO Using default MSVC build environment for 64 bit architecture 81 | ECHO Executing: %COMMAND_TO_RUN% 82 | call %COMMAND_TO_RUN% || EXIT 1 83 | ) 84 | ) ELSE ( 85 | ECHO Using default MSVC build environment for 32 bit architecture 86 | ECHO Executing: %COMMAND_TO_RUN% 87 | call %COMMAND_TO_RUN% || EXIT 1 88 | ) 89 | -------------------------------------------------------------------------------- /helper.py: -------------------------------------------------------------------------------- 1 | """ 2 | helper.py 3 | --------- 4 | Implements various helper functions, e.g. to display messages using a QT Message box. 5 | """ 6 | 7 | import io 8 | import sys 9 | import traceback 10 | 11 | from PyQt5 import QtCore, QtWidgets, QtGui 12 | 13 | 14 | def excepthook(excType, excValue, tracebackobj): 15 | """Rewritten "excepthook" function, to display a message box with details about the exception. 16 | 17 | @param excType exception type 18 | @param excValue exception value 19 | @param tracebackobj traceback object 20 | """ 21 | separator = '-' * 40 22 | notice = "An unhandled exception has occurred\n" 23 | 24 | tbinfofile = io.StringIO() 25 | traceback.print_tb(tracebackobj, None, tbinfofile) 26 | tbinfofile.seek(0) 27 | tbinfo = tbinfofile.read() 28 | errmsg = '%s: \n%s' % (str(excType), str(excValue)) 29 | sections = [separator, errmsg, separator, tbinfo] 30 | msg = '\n'.join(sections) 31 | 32 | # Create a QMessagebox 33 | error_box = QtWidgets.QMessageBox() 34 | 35 | error_box.setText(str(notice)+str(msg)) 36 | error_box.setWindowTitle("Grid Control - unhandled exception") 37 | error_box.setIcon(QtWidgets.QMessageBox.Critical) 38 | error_box.setStandardButtons(QtWidgets.QMessageBox.Ok) 39 | error_box.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse) 40 | 41 | # Show the window 42 | error_box.exec_() 43 | sys.exit(1) 44 | 45 | def exception_message_qthread(excType, excValue, tracebackobj): 46 | """Display an error message box with the exception details.""" 47 | 48 | separator = '-' * 40 49 | notice = "An exception occurred in the polling thread!\n" 50 | 51 | tbinfofile = io.StringIO() 52 | traceback.print_tb(tracebackobj, None, tbinfofile) 53 | tbinfofile.seek(0) 54 | tbinfo = tbinfofile.read() 55 | errmsg = '%s: \n%s' % (str(excType), str(excValue)) 56 | sections = [notice, separator, errmsg, separator, tbinfo] 57 | msg = '\n'.join(sections) 58 | 59 | return msg 60 | 61 | def show_error(message): 62 | """Display "message" in a "Critical error" message box with 'OK' button.""" 63 | 64 | # Create a QMessagebox 65 | message_box = QtWidgets.QMessageBox() 66 | 67 | message_box.setText(message) 68 | message_box.setWindowTitle("Error") 69 | message_box.setWindowIcon(QtGui.QIcon(QtGui.QPixmap(":/icons/grid.png"))) 70 | message_box.setIcon(QtWidgets.QMessageBox.Critical) 71 | message_box.setStandardButtons(QtWidgets.QMessageBox.Ok) 72 | message_box.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse) 73 | 74 | #Show the window 75 | message_box.exec_() 76 | 77 | def show_notification(message): 78 | """Display "message" in a "Information" message box with 'OK' button.""" 79 | 80 | # Create a QMessagebox 81 | message_box = QtWidgets.QMessageBox() 82 | 83 | message_box.setText(message) 84 | message_box.setWindowTitle("Note") 85 | message_box.setWindowIcon(QtGui.QIcon(QtGui.QPixmap(":/icons/grid.png"))) 86 | message_box.setIcon(QtWidgets.QMessageBox.Information) 87 | message_box.setStandardButtons(QtWidgets.QMessageBox.Ok) 88 | message_box.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse) 89 | 90 | #Show the window 91 | message_box.exec_() -------------------------------------------------------------------------------- /libusb-1.0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kusti8/OpenHWControl/ed59be4eee343b1615251743c4195aed1f0a58f1/libusb-1.0.dll -------------------------------------------------------------------------------- /openhwcontrol.iss: -------------------------------------------------------------------------------- 1 | ; Script generated by the Inno Setup Script Wizard. 2 | ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! 3 | 4 | [Setup] 5 | ; NOTE: The value of AppId uniquely identifies this application. 6 | ; Do not use the same AppId value in installers for other applications. 7 | ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) 8 | AppId={{AFD42520-528B-47E1-9B7B-1D44CD4A7966} 9 | AppName=OpenHWControl 10 | AppVersion=1.0.0 11 | ;AppVerName=OpenHWControl 1.0.0 12 | AppPublisher=Gustav Hansen 13 | DefaultDirName={pf}\OpenHWControl 14 | DisableProgramGroupPage=yes 15 | OutputBaseFilename=openhwcontrol-amd64-setup 16 | Compression=lzma 17 | SolidCompression=yes 18 | ArchitecturesInstallIn64BitMode=x64 19 | 20 | [Languages] 21 | Name: "english"; MessagesFile: "compiler:Default.isl" 22 | 23 | [Tasks] 24 | Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked 25 | 26 | [Files] 27 | Source: "build\exe.win-amd64-3.5\ui.exe"; DestDir: "{app}"; Flags: ignoreversion 28 | Source: "build\exe.win-amd64-3.5\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs 29 | ; NOTE: Don't use "Flags: ignoreversion" on any shared system files 30 | 31 | [Icons] 32 | Name: "{commonprograms}\OpenHWControl"; Filename: "{app}\ui.exe"; WorkingDir: "{app}" 33 | Name: "{commondesktop}\OpenHWControl"; Filename: "{app}\ui.exe"; Tasks: desktopicon; WorkingDir: "{app}" 34 | Name: "{commonprograms}\OpenHardwareMonitor"; Filename: "{app}\OpenHardwareMonitor.exe" 35 | -------------------------------------------------------------------------------- /openhwcontrol/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kusti8/OpenHWControl/ed59be4eee343b1615251743c4195aed1f0a58f1/openhwcontrol/__init__.py -------------------------------------------------------------------------------- /openhwcontrol/cooler.py: -------------------------------------------------------------------------------- 1 | import usb.core 2 | 3 | 4 | class Cooler: 5 | COLOR_MODE_NORMAL = 1 6 | COLOR_MODE_ALTERNATING = 2 7 | COLOR_MODE_BLINKING = 3 8 | COLOR_MODE_OFF = 4 9 | COLOR_MODES = [COLOR_MODE_NORMAL, COLOR_MODE_ALTERNATING, 10 | COLOR_MODE_BLINKING, COLOR_MODE_OFF] 11 | 12 | @classmethod 13 | def _check_color(cls, color): 14 | if len(color) != 3 or not all( 15 | [isinstance(c, int) and c >= 0 and c <= 255 for c in color] 16 | ): 17 | raise ValueError("colors must be tuples of 3 ints " 18 | "between 0 and 255") 19 | 20 | def _validate(self): 21 | if self.speed < 30 or self.speed > 100 or self.speed % 5 != 0: 22 | raise ValueError("speed must be between 30 and 100 " 23 | "and divisible by 5") 24 | self._check_color(self.color) 25 | self._check_color(self.alternate_color) 26 | if self.interval < 1 or self.interval > 255: 27 | raise ValueError("interval must be between 1 and 255") 28 | if self.color_mode not in self.COLOR_MODES: 29 | raise ValueError("color_mode must be one of {}".format( 30 | self.COLOR_MODES 31 | )) 32 | 33 | def __init__(self, vid, pid, **kwargs): 34 | devices = list(usb.core.find(idVendor=vid, idProduct=pid, find_all=True)) 35 | assert devices, "No matching USB devices found" 36 | if len(devices) > 1: 37 | print("Warning: more than one matching device found, using the first one") 38 | self.device = devices[0] 39 | self.device.ctrl_transfer(0x40, 2, 0x0002) 40 | 41 | self.speed = kwargs.pop('speed', 30) 42 | self.color = kwargs.pop('color', (255, 0, 0)) 43 | self.alternate_color = kwargs.pop('alternate_color', (0, 0, 255)) 44 | self.interval = kwargs.pop('interval', 1) 45 | self.color_mode = kwargs.pop('color_mode', self.COLOR_MODE_NORMAL) 46 | 47 | def _start_transaction(self): 48 | self.device.ctrl_transfer(0x40, 2, 0x0001) 49 | 50 | def _send_pump_speed(self, speed): 51 | self.device.write(2, [0x13, speed]) 52 | 53 | def _send_fan_speed(self, speed): 54 | self.device.write(2, [0x12, speed]) 55 | 56 | def _send_color(self, color, alternate_color, interval, mode): 57 | self.device.write(2, [ 58 | 0x10, 59 | color[0], color[1], color[2], 60 | alternate_color[0], alternate_color[1], alternate_color[2], 61 | 0xff, 0x00, 0x00, 0x3c, 62 | interval, interval, 63 | 0x01 if mode != self.COLOR_MODE_OFF else 0x00, 64 | 0x01 if mode == self.COLOR_MODE_ALTERNATING else 0x00, 65 | 0x01 if mode == self.COLOR_MODE_BLINKING else 0x00, 66 | 0x01, 0x00, 0x01 67 | ]) 68 | 69 | def _receive_status(self): 70 | status = self.device.read(0x82, 64) 71 | 72 | fan_speed = 256 * status[0] + status[1] 73 | pump_speed = 256 * status[8] + status[9] 74 | liquid_temperature = status[10] 75 | return {'fan_speed': fan_speed, 76 | 'pump_speed': pump_speed, 77 | 'liquid_temperature': liquid_temperature} 78 | 79 | def update(self): 80 | self._validate() 81 | self._start_transaction() 82 | self._send_pump_speed(self.speed) 83 | self._send_color(self.color, self.alternate_color, 84 | self.interval, self.color_mode) 85 | self._receive_status() 86 | 87 | self._start_transaction() 88 | self._send_fan_speed(self.speed) 89 | return self._receive_status() 90 | -------------------------------------------------------------------------------- /openhwcontrol/grid.py: -------------------------------------------------------------------------------- 1 | """ 2 | grid.py 3 | ------- 4 | Implements serial communication with the Grid+ V2 unit, 5 | e.g. "initalization", "set fan voltage", "read fan voltage", "read fan rpm". 6 | """ 7 | 8 | import sys 9 | import time 10 | 11 | import serial 12 | from serial.tools import list_ports 13 | 14 | from openhwcontrol import helper 15 | 16 | # Time (s) to wait until reading data from Grid after a request (s) 17 | WAIT_GRID = 0.04 18 | 19 | def get_serial_ports(): 20 | """Returns a list of all serial ports found, e.g. 'COM1' in Windows""" 21 | # Grid simulator 22 | # return ['/dev/pts/4'] 23 | return sorted([port.device for port in list_ports.comports()]) 24 | 25 | def setup_serial(ser, port, lock): 26 | """Setup all parameters for the serial communication""" 27 | try: 28 | with lock: 29 | ser.baudrate = 4800 30 | ser.port = port 31 | ser.bytesize = serial.EIGHTBITS 32 | ser.stopbits = serial.STOPBITS_ONE 33 | ser.parity = serial.PARITY_NONE 34 | ser.timeout = 0.1 # Read timeout in seconds 35 | ser.write_timeout = 0.1 # Write timeout in seconds 36 | except Exception as e: 37 | helper.show_error("Problem initializing serial port " + port + ".\n\n" 38 | "Exception:\n" + str(e) + "\n\n" 39 | "The application will now exit.") 40 | sys.exit(0) 41 | 42 | def open_serial(ser, lock): 43 | """Open the serial port""" 44 | try: 45 | with lock: 46 | ser.open() 47 | except Exception as e: 48 | helper.show_error("Could not open serial port " + ser.port + ".\n\n" 49 | "Is another instance of Grid Control running?\n\n" 50 | "Exception:\n" + str(e) + "\n\n" 51 | "The application will now exit.") 52 | sys.exit(0) 53 | 54 | def initialize_grid(ser, lock): 55 | """Initialize the Grid by sending "0xC0", expected response is "0x21" 56 | 57 | Returns: 58 | - True for successful initialization 59 | - False otherwise 60 | """ 61 | 62 | try: 63 | with lock: 64 | # Flush input and output buffers 65 | ser.reset_input_buffer() 66 | ser.reset_output_buffer() 67 | 68 | # Write data to serial port to initialize the Grid 69 | bytes_written = ser.write(serial.to_bytes([0xC0])) 70 | 71 | # Wait before checking response 72 | time.sleep(WAIT_GRID) 73 | 74 | # Read response, one byte = 0x21 is expected for a successful initialization 75 | response = ser.read(size=1) 76 | 77 | # Check if the Grid responded with any data 78 | if response: 79 | # Check for correct response (should be 0x21) 80 | if response[0] == int("0x21", 16): 81 | print("Grid initialized") 82 | return True 83 | 84 | # Incorrect response received from the grid 85 | else: 86 | helper.show_error("Problem initializing the Grid unit.\n\n" 87 | "Response 0x21 expected, got " + hex(ord(response)) + ".\n\n" 88 | "Please check serial port " + ser.port +".\n") 89 | return False 90 | 91 | # In case no response (0 bytes) from the Grid 92 | else: 93 | helper.show_error("Problem initializing the Grid unit.\n\n" 94 | "Response 0x21 expected, no response received.\n\n" 95 | "Please check serial port " + ser.port +".\n") 96 | return False 97 | 98 | except Exception as e: 99 | pass 100 | 101 | 102 | def set_fan(ser, fan, voltage, lock): 103 | """Sets voltage of a specific fan. 104 | Note: 105 | The Grid only supports voltages between 4.0V and 12.0V in 0.5V steps (e.g. 4.0, 7.5. 12.0) 106 | Configuring "0V" stops a fan. 107 | """ 108 | 109 | # Valid voltages and corresponding data (two bytes) 110 | speed_data = {0: [0x00, 0x00], # 0% (Values below 4V is not supported by the Grid, fans will be stopped) 111 | 4.0: [0x04, 0x00], # 33.3% (4.0V) 112 | 4.5: [0x04, 0x50], # 37.5% (4.5V) 113 | 5.0: [0x05, 0x00], # 41.7% (5V) 114 | 5.5: [0x05, 0x50], # 45.8% (5.5V) 115 | 6.0: [0x06, 0x00], # 50.0% (6V) 116 | 6.5: [0x06, 0x50], # 54.2% (6.5V) 117 | 7.0: [0x07, 0x00], # 58.3% (7V) 118 | 7.5: [0x07, 0x50], # 62.5% (7.5V) 119 | 8.0: [0x08, 0x00], # 66.7% (8V) 120 | 8.5: [0x08, 0x50], # 70.1% (8.5V) 121 | 9.0: [0x09, 0x00], # 75.0% (9.0V) 122 | 9.5: [0x09, 0x50], # 79.2% (9.5V) 123 | 10.0: [0x0A, 0x00], # 83.3% (10.0V) 124 | 10.5: [0x0A, 0x50], # 87.5% (10.5V) 125 | 11.0: [0x0B, 0x00], # 91.7% (11.0V) 126 | 11.5: [0x0B, 0x50], # 95.8% (11.5V) 127 | 12.0: [0x0C, 0x00]} # 100.0% (12.0V) 128 | 129 | fan_data = {1: 0x01, # Fan 1 130 | 2: 0x02, # Fan 2 131 | 3: 0x03, # Fan 3 132 | 4: 0x04, # Fan 4 133 | 5: 0x05, # Fan 5 134 | 6: 0x06} # Fan 6 135 | 136 | # Define bytes to be sent to the Grid for configuring a specific fan's voltage 137 | # Format is seven bytes: 138 | # 44 C0 00 00 139 | # 140 | # Example configuring "7.5V" for fan "1": 141 | # 44 01 C0 00 00 07 50 142 | serial_data = [0x44, fan_data[fan], 0xC0, 0x00, 0x00, speed_data[voltage][0], speed_data[voltage][1]] 143 | 144 | try: 145 | with lock: 146 | bytes_written = ser.write(serial.to_bytes(serial_data)) 147 | time.sleep(WAIT_GRID) 148 | 149 | # TODO: Check reponse 150 | # Expected response is one byte 151 | response = ser.read(size=1) 152 | print("Fan " + str(fan) + " updated") 153 | except Exception as e: 154 | helper.show_error("Could not set speed for fan " + str(fan) + ".\n\n" 155 | "Please check settings for serial port " + str(ser.port) + ".\n\n" 156 | "Exception:\n" + str(e) + "\n\n" 157 | "The application will now exit.") 158 | sys.exit(0) 159 | 160 | def read_fan_rpm(ser, lock): 161 | """Reads the current rpm of each fan. 162 | Returns: 163 | - If success: A list with rpm data for each fan 164 | - If failure to read data: An empty list 165 | """ 166 | 167 | # List to hold fan rpm data to be returned 168 | fans = [] 169 | 170 | with lock: 171 | for fan in [0x01, 0x02, 0x03, 0x04, 0x05, 0x06]: 172 | try: 173 | # Define bytes to be sent to the Grid for reading rpm for a specific fan 174 | # Format is two bytes: 175 | # 8A 176 | serial_data = [0x8A, fan] 177 | 178 | ser.reset_output_buffer() 179 | # TODO: Check bytes written 180 | bytes_written = ser.write(serial.to_bytes(serial_data)) 181 | 182 | # Wait before checking response 183 | time.sleep(WAIT_GRID) 184 | 185 | # Expected response is 5 bytes 186 | # Example response: C0 00 00 03 00 = 0x0300 = 768 rpm (two bytes unsigned) 187 | response = ser.read(size=5) 188 | 189 | # Check if the Grid responded with any data 190 | if response: 191 | # Check for correct response, first three bytes should be C0 00 00 192 | if response[0] == int("0xC0", 16) and response[1] == response[2] == int("0x00", 16): 193 | # Convert rpm from 2-bytes unsigned value to decimal 194 | rpm = response[3] * 256 + response[4] 195 | fans.append(rpm) 196 | 197 | # An incorrect response was received, return an empty list 198 | else: 199 | return [] 200 | 201 | # In case no response (0 bytes) received, return an empty list 202 | else: 203 | return [] 204 | 205 | except Exception as e: 206 | helper.show_error("Could not read rpm for fan " + str(fan) + ".\n\n" 207 | "Please check serial port settings.\n\n" 208 | "Exception:\n" + str(e) + "\n\n" 209 | "The application will now exit.") 210 | print(str(e)) 211 | sys.exit(0) 212 | 213 | # Fan 214 | return fans 215 | 216 | def read_fan_voltage(ser, lock): 217 | """Reads the current voltage of each fan. 218 | 219 | Returns: 220 | - If success: a list with voltage data for each fan 221 | - If failure to read data: An empty list 222 | """ 223 | 224 | # List to hold fan voltage data to be returned 225 | fans = [] 226 | 227 | with lock: 228 | for fan in [0x01, 0x02, 0x03, 0x04, 0x05, 0x06]: 229 | try: 230 | # Define bytes to be sent to the Grid for reading voltage for a specific fan 231 | # Format is two bytes, e.g. [0x84, ] 232 | serial_data = [0x84, fan] 233 | 234 | ser.reset_output_buffer() 235 | bytes_written = ser.write(serial.to_bytes(serial_data)) 236 | 237 | # Wait before checking response 238 | time.sleep(WAIT_GRID) 239 | 240 | # Expected response is 5 bytes 241 | # Example response: 00 00 00 0B 01 = 0x0B 0x01 = 11.01 volt 242 | response = ser.read(size=5) 243 | 244 | # Check if the Grid responded with any data 245 | if response: 246 | # Check for correct response (first three bytes should be 0x00) 247 | if response[0] == int("0xC0", 16) and response[1] == response[2] == int("0x00", 16): 248 | # Convert last two bytes to a decimal float value 249 | voltage = float(str(response[3]) + "." + str(response[4])) 250 | # Add the voltage for the current fan to the list 251 | fans.append(voltage) 252 | 253 | # An incorrect response was received 254 | else: 255 | print("Error reading fan voltage, incorrect response") 256 | return [] 257 | 258 | # In case no response (0 bytes) is returned from the Grid 259 | else: 260 | print("Error reading fan voltage, no data returned") 261 | return [] 262 | 263 | except Exception as e: 264 | helper.show_error("Could not read fan voltage.\n\n" 265 | "Please check serial port " + ser.port + ".\n\n" 266 | "Exception:\n" + str(e) + "\n\n" 267 | "The application will now exit.") 268 | print(str(e)) 269 | sys.exit(0) 270 | 271 | return fans 272 | 273 | 274 | def calculate_voltage(percent): 275 | """Convert fan speed in percent (0-100) to nearest valid voltage (4.0V to 12.0V in steps of 0.5V). 276 | Values below 33% will be defined as "0V" (fan will be stopped). 277 | """ 278 | 279 | if percent < 33: 280 | return 0.0 281 | elif percent >= 33 and percent < 36: 282 | return 4.0 283 | elif percent >= 36 and percent < 40: 284 | return 4.5 285 | elif percent >= 40 and percent < 44: 286 | return 5.0 287 | elif percent >= 44 and percent < 48: 288 | return 5.5 289 | elif percent >= 48 and percent < 52: 290 | return 6.0 291 | elif percent >= 52 and percent < 56: 292 | return 6.5 293 | elif percent >= 56 and percent < 60: 294 | return 7.0 295 | elif percent >= 60 and percent < 64: 296 | return 7.5 297 | elif percent >= 64 and percent < 68: 298 | return 8.0 299 | elif percent >= 68 and percent < 72: 300 | return 8.5 301 | elif percent >= 72 and percent < 76: 302 | return 9.0 303 | elif percent >= 76 and percent < 80: 304 | return 9.5 305 | elif percent >= 80 and percent < 84: 306 | return 10.0 307 | elif percent >= 84 and percent < 88: 308 | return 10.5 309 | elif percent >= 88 and percent < 93: 310 | return 11.0 311 | elif percent >= 93 and percent < 98: 312 | return 11.5 313 | else: 314 | return 12.0 315 | -------------------------------------------------------------------------------- /openhwcontrol/helper.py: -------------------------------------------------------------------------------- 1 | """ 2 | helper.py 3 | --------- 4 | Implements various helper functions, e.g. to display messages using a QT Message box. 5 | """ 6 | 7 | import io 8 | import sys 9 | import traceback 10 | 11 | from PyQt5 import QtCore, QtWidgets, QtGui 12 | 13 | 14 | def excepthook(excType, excValue, tracebackobj): 15 | """Rewritten "excepthook" function, to display a message box with details about the exception. 16 | 17 | @param excType exception type 18 | @param excValue exception value 19 | @param tracebackobj traceback object 20 | """ 21 | separator = '-' * 40 22 | notice = "An unhandled exception has occurred\n" 23 | 24 | tbinfofile = io.StringIO() 25 | traceback.print_tb(tracebackobj, None, tbinfofile) 26 | tbinfofile.seek(0) 27 | tbinfo = tbinfofile.read() 28 | errmsg = '%s: \n%s' % (str(excType), str(excValue)) 29 | sections = [separator, errmsg, separator, tbinfo] 30 | msg = '\n'.join(sections) 31 | 32 | # Create a QMessagebox 33 | error_box = QtWidgets.QMessageBox() 34 | 35 | error_box.setText(str(notice)+str(msg)) 36 | error_box.setWindowTitle("Grid Control - unhandled exception") 37 | error_box.setIcon(QtWidgets.QMessageBox.Critical) 38 | error_box.setStandardButtons(QtWidgets.QMessageBox.Ok) 39 | error_box.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse) 40 | 41 | # Show the window 42 | error_box.exec_() 43 | sys.exit(1) 44 | 45 | def exception_message_qthread(excType, excValue, tracebackobj): 46 | """Display an error message box with the exception details.""" 47 | 48 | separator = '-' * 40 49 | notice = "An exception occurred in the polling thread!\n" 50 | 51 | tbinfofile = io.StringIO() 52 | traceback.print_tb(tracebackobj, None, tbinfofile) 53 | tbinfofile.seek(0) 54 | tbinfo = tbinfofile.read() 55 | errmsg = '%s: \n%s' % (str(excType), str(excValue)) 56 | sections = [notice, separator, errmsg, separator, tbinfo] 57 | msg = '\n'.join(sections) 58 | 59 | return msg 60 | 61 | def show_error(message): 62 | """Display "message" in a "Critical error" message box with 'OK' button.""" 63 | 64 | # Create a QMessagebox 65 | message_box = QtWidgets.QMessageBox() 66 | 67 | message_box.setText(message) 68 | message_box.setWindowTitle("Error") 69 | message_box.setWindowIcon(QtGui.QIcon(QtGui.QPixmap(":/icons/grid.png"))) 70 | message_box.setIcon(QtWidgets.QMessageBox.Critical) 71 | message_box.setStandardButtons(QtWidgets.QMessageBox.Ok) 72 | message_box.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse) 73 | 74 | #Show the window 75 | message_box.exec_() 76 | 77 | def show_notification(message): 78 | """Display "message" in a "Information" message box with 'OK' button.""" 79 | 80 | # Create a QMessagebox 81 | message_box = QtWidgets.QMessageBox() 82 | 83 | message_box.setText(message) 84 | message_box.setWindowTitle("Note") 85 | message_box.setWindowIcon(QtGui.QIcon(QtGui.QPixmap(":/icons/grid.png"))) 86 | message_box.setIcon(QtWidgets.QMessageBox.Information) 87 | message_box.setStandardButtons(QtWidgets.QMessageBox.Ok) 88 | message_box.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse) 89 | 90 | #Show the window 91 | message_box.exec_() -------------------------------------------------------------------------------- /openhwcontrol/openhwmon.py: -------------------------------------------------------------------------------- 1 | """ 2 | openhwmon.py 3 | ------------ 4 | Implements communication with OpenHardwareMonitor using WMI. 5 | The module also provides functions for populating the QT Tree Widget with hardware nodes and temperature sensors. 6 | """ 7 | 8 | import sys 9 | import os 10 | from PyQt5 import QtCore, QtWidgets, QtGui 11 | 12 | from openhwcontrol import helper 13 | 14 | 15 | def initialize_hwmon(): 16 | """Create a WMI object and verify that OpenHardwareMonitor is installed.""" 17 | 18 | # Access the OpenHWMon WMI interface 19 | if os.name != 'nt': 20 | return None 21 | helper.show_notification("Linux") 22 | try: 23 | import wmi 24 | hwmon = wmi.WMI(namespace="root\OpenHardwareMonitor") 25 | return hwmon 26 | 27 | # WMI exception (e.g. no namespace "root\OpenHardwareMonitor" indicates OpenHWMon is not installed 28 | except: 29 | return None 30 | 31 | def populate_tree_linux(treeWidget): 32 | import psutil 33 | hardwares = psutil.sensors_temperatures() 34 | 35 | # No sensor data (empty list) indicates OpenHWMon is not running 36 | if not hardwares: 37 | return 38 | 39 | # Add hardware nodes and temperature sensors to the three widget 40 | for key, nodelist in hardwares.items(): 41 | item_list = [] 42 | parent = treeWidget 43 | item = QtWidgets.QTreeWidgetItem(parent) 44 | item.setText(0, key) # First column, name of the node 45 | item.setText(1, key) # Second column, node id 46 | item.setFlags(QtCore.Qt.ItemIsEnabled) # Make hardware nodes "not selectable" in the UI 47 | for index, node in enumerate(nodelist): 48 | parent = item 49 | itema = QtWidgets.QTreeWidgetItem(parent) 50 | if not node.label: 51 | name = key 52 | else: 53 | name = node.label 54 | itema.setText(0, name) # First column, name of the node 55 | itema.setText(1, name) # Second column, node id 56 | itema.setText(2, str(node.current)) # Third column, temperature value 57 | itema.setForeground(0, QtGui.QBrush(QtCore.Qt.blue)) 58 | itema.setForeground(2, QtGui.QBrush(QtCore.Qt.blue)) 59 | 60 | 61 | def populate_tree(hwmon, treeWidget): 62 | """Read sensor data from OpenHardwareMonitor using the available WMI interface, 63 | and populated the tree widget with the hardware nodes and sensors. 64 | 65 | Hardware nodes contains the following data, note that Parent = "" indicates a top node in the tree: 66 | 67 | Example: 68 | instance of Hardware 69 | { 70 | HardwareType = "Mainboard"; 71 | Identifier = "/mainboard"; 72 | InstanceId = "3839"; 73 | Name = "ASUS MAXIMUS V GENE"; 74 | Parent = ""; 75 | ProcessId = "21816a7d-632f-4b9a-808f-0675d8eeca33"; 76 | }; 77 | 78 | Example: 79 | instance of Hardware 80 | { 81 | HardwareType = "SuperIO"; 82 | Identifier = "/lpc/nct6779d"; 83 | InstanceId = "3845"; 84 | Name = "Nuvoton NCT6779D"; 85 | Parent = "/mainboard"; 86 | ProcessId = "21816a7d-632f-4b9a-808f-0675d8eeca33"; 87 | }; 88 | 89 | Sensors nodes contains the following data (including a parent hardware node), example: 90 | 91 | instance of Sensor 92 | { 93 | Identifier = "/lpc/nct6779d/temperature/0"; 94 | Index = 0; 95 | InstanceId = "3898"; 96 | Max = 40.5; 97 | Min = 20; 98 | Name = "CPU Core"; 99 | Parent = "/lpc/nct6779d"; 100 | ProcessId = "21816a7d-632f-4b9a-808f-0675d8eeca33"; 101 | SensorType = "Temperature"; 102 | Value = 30.5; 103 | }; 104 | """ 105 | if os.name != 'nt': 106 | populate_tree_linux(treeWidget) 107 | return 108 | 109 | 110 | # Get a list of hardware nodes 111 | hardwares = hwmon.Hardware() 112 | 113 | # Get a list of temperature sensor nodes (filtered to optimize WMI performance) 114 | sensors = hwmon.Sensor(["Name", "Parent", "Value", "Identifier"], SensorType="Temperature") 115 | 116 | # No sensor data (empty list) indicates OpenHWMon is not running 117 | if not sensors: 118 | return 119 | 120 | # The "hardware_nodes" dictionary will hold all hardware nodes and children 121 | # key = top node identifier 122 | # value = list of all node identifiers (including the top node) 123 | hardware_nodes = {} 124 | 125 | # Add the top hardware nodes to the dictionary 126 | for hardware in hardwares: 127 | # No parent indicates it's a top node 128 | if hardware.Parent == "": 129 | hardware_nodes[hardware.Identifier] = [hardware.Identifier] 130 | 131 | # Add remaining hardware nodes to the dictionary, under the corresponding top node (dictionary key) 132 | for hardware in hardwares: 133 | # If the node has a parent, it's a child node 134 | if hardware.Parent != "": 135 | hardware_nodes[hardware.Parent].append(hardware.Identifier) 136 | 137 | # Add hardware nodes and temperature sensors to the three widget 138 | for key, nodelist in hardware_nodes.items(): 139 | item_list = [] 140 | for index, node in enumerate(nodelist): 141 | # First item in the list is the top node, parent should be the "treeWidget" itself 142 | if index == 0: 143 | parent = treeWidget 144 | item = QtWidgets.QTreeWidgetItem(parent) 145 | item.setText(0, get_hardware_name(nodelist[index], hardwares)) # First column, name of the node 146 | item.setText(1, nodelist[index]) # Second column, node id 147 | item.setFlags(QtCore.Qt.ItemIsEnabled) # Make hardware nodes "not selectable" in the UI 148 | 149 | # Add the item to a list used when adding child nodes 150 | item_list.append(item) 151 | 152 | # Following items in the list are children, parent is the previous item in "item_list" 153 | else: 154 | parent = item_list[index-1] 155 | item = QtWidgets.QTreeWidgetItem(parent) 156 | item.setText(0, get_hardware_name(nodelist[index], hardwares)) # First column, name of the node 157 | item.setText(1, nodelist[index]) # Second column, node id 158 | item.setFlags(QtCore.Qt.ItemIsEnabled) # Make hardware nodes "not selectable" in the UI 159 | item_list.append(item) 160 | 161 | for sensor in sensors: 162 | # If the sensor belongs to the current hardware node, add it as a child node 163 | if sensor.Parent == nodelist[index]: 164 | sensor_parent = item_list[-1] # Last item (QTreeWidgetItem) in the list is the parent 165 | item = QtWidgets.QTreeWidgetItem(sensor_parent) 166 | 167 | item.setText(0, sensor.Name) # First column, name 168 | item.setText(1, sensor.Identifier) # Second column, id 169 | item.setText(2, str(sensor.Value)) # Third column, temperature value 170 | 171 | # Set node name and temperature value to blue 172 | item.setForeground(0, QtGui.QBrush(QtCore.Qt.blue)) 173 | item.setForeground(2, QtGui.QBrush(QtCore.Qt.blue)) 174 | 175 | def get_temperature_sensors(hwmon): 176 | """Return all temperature sensors""" 177 | 178 | # Get a list of temperature sensor nodes (filtered to optimize WMI performance) 179 | if os.name == 'nt': 180 | sensors = hwmon.Sensor(["Name", "Parent", "Value", "Identifier"], SensorType="Temperature") 181 | else: 182 | import psutil 183 | sensors = psutil.sensors_temperatures() 184 | return sensors 185 | 186 | def get_temp(hwmon, id): 187 | """Return the temperature value for the sensor id.""" 188 | 189 | # Get a list of temperature sensor nodes (filtered to optimize WMI performance) 190 | sensors = hwmon.Sensor(["Name", "Parent", "Value", "Identifier"], SensorType="Temperature") 191 | for sensor in sensors: 192 | if sensor.Identifier == id: 193 | return sensor.Value 194 | 195 | def get_sensor_name(hwmon, id): 196 | """Return the name for a specific sensor id.""" 197 | 198 | # Get a list of temperature sensor nodes (filtered to optimize WMI performance) 199 | sensors = hwmon.Sensor(["Name", "Parent", "Value", "Identifier"], SensorType="Temperature") 200 | for sensor in sensors: 201 | if sensor.Identifier == id: 202 | return sensor.Name 203 | 204 | def get_hardware_name(id, hardwares): 205 | """Return the name for a specific node id in the list of hardware nodes.""" 206 | 207 | for hardware in hardwares: 208 | if hardware.Identifier == id: 209 | return hardware.Name 210 | -------------------------------------------------------------------------------- /openhwcontrol/polling.py: -------------------------------------------------------------------------------- 1 | """ 2 | polling.py 3 | ---------- 4 | Implements a QThread for polling the Grid unit for fan rpm and voltage data, 5 | as well as CPU and GPU temperatures from OpenHardwareMonitor. 6 | """ 7 | 8 | import sys 9 | import time 10 | import os 11 | 12 | from PyQt5 import QtCore 13 | 14 | from openhwcontrol import grid 15 | from openhwcontrol import helper 16 | from openhwcontrol import openhwmon 17 | 18 | # Define status icons (available in the resource file built with "pyrcc5" 19 | ICON_RED_LED = ":/icons/led-red-on.png" 20 | ICON_GREEN_LED = ":/icons/green-led-on.png" 21 | 22 | class PollingThread(QtCore.QThread): 23 | """QThread, performs the following: 24 | - Get fan rpm from Grid 25 | - Get fan voltage from Grid 26 | - Get CPU and GPU temperatures from OpenHardwareMonitor""" 27 | 28 | # Signals handling the fan rpm 29 | rpm_signal_fan1 = QtCore.pyqtSignal(str) 30 | rpm_signal_fan2 = QtCore.pyqtSignal(str) 31 | rpm_signal_fan3 = QtCore.pyqtSignal(str) 32 | rpm_signal_fan4 = QtCore.pyqtSignal(str) 33 | rpm_signal_fan5 = QtCore.pyqtSignal(str) 34 | rpm_signal_fan6 = QtCore.pyqtSignal(str) 35 | 36 | # Signals handling the fan voltage 37 | voltage_signal_fan1 = QtCore.pyqtSignal(str) 38 | voltage_signal_fan2 = QtCore.pyqtSignal(str) 39 | voltage_signal_fan3 = QtCore.pyqtSignal(str) 40 | voltage_signal_fan4 = QtCore.pyqtSignal(str) 41 | voltage_signal_fan5 = QtCore.pyqtSignal(str) 42 | voltage_signal_fan6 = QtCore.pyqtSignal(str) 43 | 44 | # Signals handling the pixmap icon (red or green led) indicating the fan status 45 | pixmap_signal_fan1 = QtCore.pyqtSignal(str) 46 | pixmap_signal_fan2 = QtCore.pyqtSignal(str) 47 | pixmap_signal_fan3 = QtCore.pyqtSignal(str) 48 | pixmap_signal_fan4 = QtCore.pyqtSignal(str) 49 | pixmap_signal_fan5 = QtCore.pyqtSignal(str) 50 | pixmap_signal_fan6 = QtCore.pyqtSignal(str) 51 | 52 | # Signals handling CPU and GPU temperatures 53 | cpu_temp_signal = QtCore.pyqtSignal(int) 54 | gpu_temp_signal = QtCore.pyqtSignal(int) 55 | 56 | hwmon_status_signal = QtCore.pyqtSignal(str) 57 | 58 | # Signal to indicate fan speed should be updated 59 | update_signal = QtCore.pyqtSignal() 60 | 61 | # Signal handling exceptions that may occur in the running thread 62 | exception_signal = QtCore.pyqtSignal(str) 63 | 64 | def __init__(self, polling_interval, ser, lock, cpu_sensor_ids, gpu_sensor_ids, cpu_calc, gpu_calc): 65 | """ Constructor for the polling thread.""" 66 | 67 | super().__init__() 68 | 69 | # "keep_running" controls the while loop in the running thread 70 | # Initial value is False as the thread is not started yet 71 | self.keep_running = False 72 | 73 | # Polling interval (ms) 74 | self.polling_interval = polling_interval 75 | 76 | # Serial device 77 | self.ser = ser 78 | 79 | # Lock 80 | self.lock = lock 81 | 82 | # List of CPU and GPU temperature sensors to use 83 | self.cpu_sensor_ids = cpu_sensor_ids 84 | self.gpu_sensor_ids = gpu_sensor_ids 85 | 86 | # Defines if CPU and GPU temperatures should be "Maximum" or "Average" from selected sensors 87 | self.cpu_calc = cpu_calc 88 | self.gpu_calc = gpu_calc 89 | 90 | def __del__(self): 91 | self.wait() 92 | 93 | def stop(self): 94 | """Stop the running thread gracefully.""" 95 | 96 | print("Stopping thread...") 97 | self.keep_running = False 98 | 99 | # Wait for the thread to stop 100 | self.wait() 101 | print("Thread stopped") 102 | 103 | # Uninitialize at thread stop (used for WMI in thread) 104 | if os.name == 'nt': 105 | import pythoncom 106 | pythoncom.CoUninitialize() 107 | 108 | def set_temp_calc(self, cpu_calc, gpu_calc): 109 | """Setter for cpu and gpu calc parameter.""" 110 | 111 | self.cpu_calc = cpu_calc 112 | self.gpu_calc = gpu_calc 113 | 114 | def update_polling_interval(self, new_polling_interval): 115 | """Setter for polling interval value.""" 116 | 117 | self.polling_interval = new_polling_interval 118 | 119 | def update_sensors(self, cpu_sensor_ids, gpu_sensor_ids): 120 | """Setter for CPU and GPU sensor id's.""" 121 | 122 | self.cpu_sensor_ids = cpu_sensor_ids 123 | self.gpu_sensor_ids = gpu_sensor_ids 124 | 125 | def calculate_temp(self, temperature_sensors, type): 126 | """Calculate CPU/GPU temperatures (maximum or average value)""" 127 | 128 | if type == "cpu": 129 | cpu_temps = [] 130 | 131 | # Check if any sensors are configured 132 | if self.cpu_sensor_ids: 133 | for id in self.cpu_sensor_ids: 134 | for sensor in temperature_sensors: 135 | if id == sensor.Identifier: 136 | cpu_temps.append(sensor.Value) 137 | 138 | # Convert to float 139 | cpu_temps_float = [float(i) for i in cpu_temps] 140 | 141 | else: 142 | cpu_temps_float = [0] 143 | 144 | # Check if temperature values are available 145 | if cpu_temps_float: 146 | # Use maximum value 147 | if self.cpu_calc == "Max": 148 | return max(cpu_temps_float) 149 | # Use average value 150 | elif self.cpu_calc == "Avg": 151 | return (sum(cpu_temps_float) / len(cpu_temps_float)) 152 | 153 | # If no temperature values are available, return 0 154 | else: 155 | return 0 156 | 157 | elif type == "gpu": 158 | gpu_temps = [] 159 | 160 | # Check if any sensors are configured 161 | if self.gpu_sensor_ids: 162 | for id in self.gpu_sensor_ids: 163 | for sensor in temperature_sensors: 164 | if id == sensor.Identifier: 165 | gpu_temps.append(sensor.Value) 166 | 167 | # Convert to float 168 | gpu_temps_float = [float(i) for i in gpu_temps] 169 | 170 | else: 171 | gpu_temps_float = [0] 172 | 173 | # Check if temperature values are available 174 | if gpu_temps_float: 175 | # Use maximum value 176 | if self.gpu_calc == "Max": 177 | return max(gpu_temps_float) 178 | # Use average value 179 | elif self.gpu_calc == "Avg": 180 | return (sum(gpu_temps_float) / len(gpu_temps_float)) 181 | 182 | # If no temperature values are available, return 0 183 | else: 184 | return 0 185 | 186 | def calculate_temp_linux(self, temperature_sensors, type): 187 | """Calculate CPU/GPU temperatures (maximum or average value)""" 188 | 189 | if type == "cpu": 190 | cpu_temps = [] 191 | 192 | # Check if any sensors are configured 193 | if self.cpu_sensor_ids: 194 | for id in self.cpu_sensor_ids: 195 | for parent, sensors in temperature_sensors.items(): 196 | for sensor in sensors: 197 | if id == sensor.label or id == parent: 198 | cpu_temps.append(sensor.current) 199 | 200 | # Convert to float 201 | cpu_temps_float = [float(i) for i in cpu_temps] 202 | 203 | else: 204 | cpu_temps_float = [0] 205 | 206 | # Check if temperature values are available 207 | if cpu_temps_float: 208 | # Use maximum value 209 | if self.cpu_calc == "Max": 210 | return max(cpu_temps_float) 211 | # Use average value 212 | elif self.cpu_calc == "Avg": 213 | return (sum(cpu_temps_float) / len(cpu_temps_float)) 214 | 215 | # If no temperature values are available, return 0 216 | else: 217 | return 0 218 | 219 | elif type == "gpu": 220 | gpu_temps = [] 221 | 222 | # Check if any sensors are configured 223 | if self.gpu_sensor_ids: 224 | for id in self.gpu_sensor_ids: 225 | for parent, sensors in temperature_sensors.items(): 226 | for sensor in sensors: 227 | if id == sensor.label or id == parent: 228 | gpu_temps.append(sensor.current) 229 | 230 | 231 | # Convert to float 232 | gpu_temps_float = [float(i) for i in gpu_temps] 233 | 234 | else: 235 | gpu_temps_float = [0] 236 | 237 | # Check if temperature values are available 238 | if gpu_temps_float: 239 | # Use maximum value 240 | if self.gpu_calc == "Max": 241 | return max(gpu_temps_float) 242 | # Use average value 243 | elif self.gpu_calc == "Avg": 244 | return (sum(gpu_temps_float) / len(gpu_temps_float)) 245 | 246 | # If no temperature values are available, return 0 247 | else: 248 | return 0 249 | 250 | def run(self): 251 | """Main thread processing loop: 252 | - Poll the Grid for fan rpm and voltage. 253 | - Poll OpenHardwareMonitor for CPU and GPU temperatures 254 | - Emit signals: 255 | - Fan rpm's 256 | - Fan voltages 257 | - CPU temperature 258 | - GPU temperature 259 | - Update fans 260 | """ 261 | 262 | try: 263 | print("Starting thread...") 264 | if os.name != 'nt': 265 | self.keep_running = True 266 | 267 | # Start the main polling loop 268 | while self.keep_running: 269 | # Get current temperature sensors from OpenHardwareMonitor 270 | temperature_sensors = openhwmon.get_temperature_sensors(None) 271 | 272 | # Calculate CPU and GPU temperatures 273 | current_cpu_temp = self.calculate_temp_linux(temperature_sensors, "cpu") 274 | current_gpu_temp = self.calculate_temp_linux(temperature_sensors, "gpu") 275 | 276 | # Emit temperature signals 277 | self.cpu_temp_signal.emit(current_cpu_temp) 278 | self.gpu_temp_signal.emit(current_gpu_temp) 279 | 280 | # If both CPU and GPU temp are 0, set OpenHardwareMonitor status to "Disconnected" 281 | if current_cpu_temp == current_gpu_temp == 0: 282 | self.hwmon_status_signal.emit('---') 283 | else: 284 | self.hwmon_status_signal.emit('Connected') 285 | 286 | # Read rpm for all fans 287 | fans_rpm = grid.read_fan_rpm(self.ser, self.lock) 288 | 289 | # Check if there is fan rpm data available 290 | if fans_rpm: 291 | # Emit rpm signals with current rpm values 292 | self.rpm_signal_fan1.emit(str(fans_rpm[0])) 293 | self.rpm_signal_fan2.emit(str(fans_rpm[1])) 294 | self.rpm_signal_fan3.emit(str(fans_rpm[2])) 295 | self.rpm_signal_fan4.emit(str(fans_rpm[3])) 296 | self.rpm_signal_fan5.emit(str(fans_rpm[4])) 297 | self.rpm_signal_fan6.emit(str(fans_rpm[5])) 298 | 299 | # If no rpm data is available, emit "---" as value 300 | else: 301 | self.rpm_signal_fan1.emit('---') 302 | self.rpm_signal_fan2.emit('---') 303 | self.rpm_signal_fan3.emit('---') 304 | self.rpm_signal_fan4.emit('---') 305 | self.rpm_signal_fan5.emit('---') 306 | self.rpm_signal_fan6.emit('---') 307 | 308 | # Read voltage for all fans 309 | fans_voltage = grid.read_fan_voltage(self.ser, self.lock) 310 | 311 | # Check if there is fan voltages data available 312 | if fans_voltage: 313 | # Emit voltage signals with current voltages 314 | self.voltage_signal_fan1.emit(str(fans_voltage[0])) 315 | self.voltage_signal_fan2.emit(str(fans_voltage[1])) 316 | self.voltage_signal_fan3.emit(str(fans_voltage[2])) 317 | self.voltage_signal_fan4.emit(str(fans_voltage[3])) 318 | self.voltage_signal_fan5.emit(str(fans_voltage[4])) 319 | self.voltage_signal_fan6.emit(str(fans_voltage[5])) 320 | 321 | # If no voltage data is available, emit "---" as value 322 | else: 323 | self.voltage_signal_fan1.emit('---') 324 | self.voltage_signal_fan2.emit('---') 325 | self.voltage_signal_fan3.emit('---') 326 | self.voltage_signal_fan4.emit('---') 327 | self.voltage_signal_fan5.emit('---') 328 | self.voltage_signal_fan6.emit('---') 329 | 330 | # Update status icons 331 | # Check if rpm and voltage data is available 332 | if fans_rpm and fans_voltage: 333 | # Emit pixmap icon signal (red icon if fan rpm or voltage is 0, otherwise green icon) 334 | self.pixmap_signal_fan1.emit(ICON_RED_LED if fans_rpm[0] == 0 or fans_voltage[0] == 0 else ICON_GREEN_LED) 335 | self.pixmap_signal_fan2.emit(ICON_RED_LED if fans_rpm[1] == 0 or fans_voltage[1] == 0 else ICON_GREEN_LED) 336 | self.pixmap_signal_fan3.emit(ICON_RED_LED if fans_rpm[2] == 0 or fans_voltage[2] == 0 else ICON_GREEN_LED) 337 | self.pixmap_signal_fan4.emit(ICON_RED_LED if fans_rpm[3] == 0 or fans_voltage[3] == 0 else ICON_GREEN_LED) 338 | self.pixmap_signal_fan5.emit(ICON_RED_LED if fans_rpm[4] == 0 or fans_voltage[4] == 0 else ICON_GREEN_LED) 339 | self.pixmap_signal_fan6.emit(ICON_RED_LED if fans_rpm[5] == 0 or fans_voltage[5] == 0 else ICON_GREEN_LED) 340 | 341 | # If no fan rpm or voltage data is available, show the red status icon 342 | else: 343 | self.pixmap_signal_fan1.emit(ICON_RED_LED) 344 | self.pixmap_signal_fan2.emit(ICON_RED_LED) 345 | self.pixmap_signal_fan3.emit(ICON_RED_LED) 346 | self.pixmap_signal_fan4.emit(ICON_RED_LED) 347 | self.pixmap_signal_fan5.emit(ICON_RED_LED) 348 | self.pixmap_signal_fan6.emit(ICON_RED_LED) 349 | 350 | # Emit update signal 351 | self.update_signal.emit() 352 | 353 | #print("End of polling loop, sleeping for " + str(self.polling_interval) + " ms") 354 | 355 | # Sleep for the set polling interval (ms) 356 | time.sleep(self.polling_interval/1000) 357 | else: 358 | 359 | import wmi 360 | import pythoncom 361 | 362 | # CoInitialise() is needed when accessing WMI in a thread 363 | # CoUninitialize() is called in the stop method 364 | pythoncom.CoInitialize() 365 | 366 | # A new WMI object is needed in the thread 367 | hwmon_thread_wmi = wmi.WMI(namespace="root\OpenHardwareMonitor") 368 | 369 | # "keep_running" should be True before starting the while loop 370 | self.keep_running = True 371 | 372 | # Start the main polling loop 373 | while self.keep_running: 374 | # Get current temperature sensors from OpenHardwareMonitor 375 | temperature_sensors = openhwmon.get_temperature_sensors(hwmon_thread_wmi) 376 | 377 | # Calculate CPU and GPU temperatures 378 | current_cpu_temp = self.calculate_temp(temperature_sensors, "cpu") 379 | current_gpu_temp = self.calculate_temp(temperature_sensors, "gpu") 380 | 381 | # Emit temperature signals 382 | self.cpu_temp_signal.emit(current_cpu_temp) 383 | self.gpu_temp_signal.emit(current_gpu_temp) 384 | 385 | # If both CPU and GPU temp are 0, set OpenHardwareMonitor status to "Disconnected" 386 | if current_cpu_temp == current_gpu_temp == 0: 387 | self.hwmon_status_signal.emit('---') 388 | else: 389 | self.hwmon_status_signal.emit('Connected') 390 | 391 | # Read rpm for all fans 392 | fans_rpm = grid.read_fan_rpm(self.ser, self.lock) 393 | 394 | # Check if there is fan rpm data available 395 | if fans_rpm: 396 | # Emit rpm signals with current rpm values 397 | self.rpm_signal_fan1.emit(str(fans_rpm[0])) 398 | self.rpm_signal_fan2.emit(str(fans_rpm[1])) 399 | self.rpm_signal_fan3.emit(str(fans_rpm[2])) 400 | self.rpm_signal_fan4.emit(str(fans_rpm[3])) 401 | self.rpm_signal_fan5.emit(str(fans_rpm[4])) 402 | self.rpm_signal_fan6.emit(str(fans_rpm[5])) 403 | 404 | # If no rpm data is available, emit "---" as value 405 | else: 406 | self.rpm_signal_fan1.emit('---') 407 | self.rpm_signal_fan2.emit('---') 408 | self.rpm_signal_fan3.emit('---') 409 | self.rpm_signal_fan4.emit('---') 410 | self.rpm_signal_fan5.emit('---') 411 | self.rpm_signal_fan6.emit('---') 412 | 413 | # Read voltage for all fans 414 | fans_voltage = grid.read_fan_voltage(self.ser, self.lock) 415 | 416 | # Check if there is fan voltages data available 417 | if fans_voltage: 418 | # Emit voltage signals with current voltages 419 | self.voltage_signal_fan1.emit(str(fans_voltage[0])) 420 | self.voltage_signal_fan2.emit(str(fans_voltage[1])) 421 | self.voltage_signal_fan3.emit(str(fans_voltage[2])) 422 | self.voltage_signal_fan4.emit(str(fans_voltage[3])) 423 | self.voltage_signal_fan5.emit(str(fans_voltage[4])) 424 | self.voltage_signal_fan6.emit(str(fans_voltage[5])) 425 | 426 | # If no voltage data is available, emit "---" as value 427 | else: 428 | self.voltage_signal_fan1.emit('---') 429 | self.voltage_signal_fan2.emit('---') 430 | self.voltage_signal_fan3.emit('---') 431 | self.voltage_signal_fan4.emit('---') 432 | self.voltage_signal_fan5.emit('---') 433 | self.voltage_signal_fan6.emit('---') 434 | 435 | # Update status icons 436 | # Check if rpm and voltage data is available 437 | if fans_rpm and fans_voltage: 438 | # Emit pixmap icon signal (red icon if fan rpm or voltage is 0, otherwise green icon) 439 | self.pixmap_signal_fan1.emit(ICON_RED_LED if fans_rpm[0] == 0 or fans_voltage[0] == 0 else ICON_GREEN_LED) 440 | self.pixmap_signal_fan2.emit(ICON_RED_LED if fans_rpm[1] == 0 or fans_voltage[1] == 0 else ICON_GREEN_LED) 441 | self.pixmap_signal_fan3.emit(ICON_RED_LED if fans_rpm[2] == 0 or fans_voltage[2] == 0 else ICON_GREEN_LED) 442 | self.pixmap_signal_fan4.emit(ICON_RED_LED if fans_rpm[3] == 0 or fans_voltage[3] == 0 else ICON_GREEN_LED) 443 | self.pixmap_signal_fan5.emit(ICON_RED_LED if fans_rpm[4] == 0 or fans_voltage[4] == 0 else ICON_GREEN_LED) 444 | self.pixmap_signal_fan6.emit(ICON_RED_LED if fans_rpm[5] == 0 or fans_voltage[5] == 0 else ICON_GREEN_LED) 445 | 446 | # If no fan rpm or voltage data is available, show the red status icon 447 | else: 448 | self.pixmap_signal_fan1.emit(ICON_RED_LED) 449 | self.pixmap_signal_fan2.emit(ICON_RED_LED) 450 | self.pixmap_signal_fan3.emit(ICON_RED_LED) 451 | self.pixmap_signal_fan4.emit(ICON_RED_LED) 452 | self.pixmap_signal_fan5.emit(ICON_RED_LED) 453 | self.pixmap_signal_fan6.emit(ICON_RED_LED) 454 | 455 | # Emit update signal 456 | self.update_signal.emit() 457 | 458 | #print("End of polling loop, sleeping for " + str(self.polling_interval) + " ms") 459 | 460 | # Sleep for the set polling interval (ms) 461 | time.sleep(self.polling_interval/1000) 462 | 463 | # Emits a signal if an exception occurs in the running thread 464 | # The main application will then show an error message about the problem 465 | # This is needed because a new message box widget cannot be created/displayed in the thread 466 | except Exception as e: 467 | # Stop the thread 468 | self.stop() 469 | print("Thread stopped at exception") 470 | 471 | # Get info about the exception 472 | (type, value, traceback) = sys.exc_info() 473 | 474 | # Generate a detailed error message 475 | msg = helper.exception_message_qthread(type, value, traceback) 476 | 477 | # Emit a signal with the error message to be displayed in a message box in the main UI 478 | self.exception_signal.emit(msg) 479 | -------------------------------------------------------------------------------- /openhwcontrol/settings.py: -------------------------------------------------------------------------------- 1 | """ 2 | settings.py 3 | ----------- 4 | Implements functions for reading and writing UI configuration using a QSettings object. 5 | """ 6 | 7 | from PyQt5 import QtCore, QtWidgets, QtGui 8 | import os 9 | 10 | from openhwcontrol import openhwmon 11 | 12 | 13 | def read_settings(config, ui, hwmon): 14 | """Read configuration from the OS repository (Registry in Windows, ini-file in Linux). 15 | 16 | Uses default values if no settings are found. 17 | "type=" defines the data type. 18 | """ 19 | 20 | # 21 | # "General" tab 22 | # ------------------------ 23 | 24 | # Horizontal slider values (fan percent), default value "35" 25 | ui.horizontalSliderFan1.setValue(config.value("fan1_percent", 35, type=int)) 26 | ui.horizontalSliderFan2.setValue(config.value("fan2_percent", 35, type=int)) 27 | ui.horizontalSliderFan3.setValue(config.value("fan3_percent", 35, type=int)) 28 | ui.horizontalSliderFan4.setValue(config.value("fan4_percent", 35, type=int)) 29 | ui.horizontalSliderFan5.setValue(config.value("fan5_percent", 35, type=int)) 30 | ui.horizontalSliderFan6.setValue(config.value("fan6_percent", 35, type=int)) 31 | 32 | # Radio buttons 33 | ui.radioButtonManual.setChecked(config.value("manual_control", True, type=bool)) 34 | ui.radioButtonAutomatic.setChecked(config.value("automatic_control", False, type=bool)) 35 | 36 | # Serial port combo box value, default "", type=str)) 39 | ui.comboBoxComPorts.setCurrentIndex(index) 40 | if index == -1: 41 | ui.comboBoxComPorts.setCurrentIndex(0) 42 | 43 | # Polling interval combo box value, default "500" (ms) 44 | index = ui.comboBoxPolling.findText(config.value("polling", "500", type=str)) 45 | ui.comboBoxPolling.setCurrentIndex(index) 46 | if index == -1: 47 | ui.comboBoxComPorts.setCurrentIndex(0) 48 | 49 | # 50 | # "Sensor Config" tab 51 | # ------------------------ 52 | 53 | # Get all available temperature sensors 54 | if hwmon: 55 | sensors = openhwmon.get_temperature_sensors(hwmon) 56 | else: 57 | sensors = [] 58 | 59 | # Selected CPU sensors 60 | parent = ui.treeWidgetSelectedCPUSensors 61 | if os.name == 'nt': 62 | for id in config.value("cpu_sensor_ids", type=str): 63 | item = QtWidgets.QTreeWidgetItem(parent) 64 | for sensor in sensors: 65 | if sensor.Identifier == id: 66 | item.setText(0, sensor.Name) 67 | item.setText(1, id) 68 | item.setForeground(0, QtGui.QBrush(QtCore.Qt.blue)) # Text color blue 69 | else: 70 | for id in config.value("cpu_sensor_ids", type=str): 71 | item = QtWidgets.QTreeWidgetItem(parent) 72 | for parenta, nodes in sensors.items(): 73 | for sensor in nodes: 74 | if sensor.label == id: 75 | item.setText(0, sensor.label) 76 | elif parent == id: 77 | item.setText(0, parenta) 78 | item.setText(1, id) 79 | item.setForeground(0, QtGui.QBrush(QtCore.Qt.blue)) # Text color blue 80 | 81 | # Selected GPU sensors 82 | parent = ui.treeWidgetSelectedGPUSensors 83 | if os.name == 'nt': 84 | for id in config.value("gpu_sensor_ids", type=str): 85 | item = QtWidgets.QTreeWidgetItem(parent) 86 | for sensor in sensors: 87 | if sensor.Identifier == id: 88 | item.setText(0, sensor.Name) 89 | item.setText(1, id) 90 | item.setForeground(0, QtGui.QBrush(QtCore.Qt.blue)) # Text color blue 91 | else: 92 | for id in config.value("gpu_sensor_ids", type=str): 93 | item = QtWidgets.QTreeWidgetItem(parent) 94 | for parenta, nodes in sensors.items(): 95 | for sensor in nodes: 96 | if sensor.label == id: 97 | item.setText(0, sensor.label) 98 | elif parent == id: 99 | item.setText(0, parenta) 100 | item.setText(1, id) 101 | item.setForeground(0, QtGui.QBrush(QtCore.Qt.blue)) # Text color blue 102 | 103 | # Radio buttons 104 | ui.radioButtonCPUMax.setChecked(config.value("cpu_use_max", True, type=bool)) 105 | ui.radioButtonCPUAverage.setChecked(config.value("cpu_use_avg", False, type=bool)) 106 | ui.radioButtonGPUMax.setChecked(config.value("gpu_use_max", True, type=bool)) 107 | ui.radioButtonGPUAverage.setChecked(config.value("gpu_use_avg", False, type=bool)) 108 | 109 | # 110 | # "Fan Config" tab 111 | # ------------------------ 112 | 113 | # Radio buttons 114 | ui.radioButtonCPUFan1.setChecked(config.value("cpu_fan_1", True, type=bool)) 115 | ui.radioButtonCPUFan2.setChecked(config.value("cpu_fan_2", True, type=bool)) 116 | ui.radioButtonCPUFan3.setChecked(config.value("cpu_fan_3", True, type=bool)) 117 | ui.radioButtonCPUFan4.setChecked(config.value("cpu_fan_4", True, type=bool)) 118 | ui.radioButtonCPUFan5.setChecked(config.value("cpu_fan_5", True, type=bool)) 119 | ui.radioButtonCPUFan6.setChecked(config.value("cpu_fan_6", True, type=bool)) 120 | 121 | ui.radioButtonGPUFan1.setChecked(config.value("gpu_fan_1", False, type=bool)) 122 | ui.radioButtonGPUFan2.setChecked(config.value("gpu_fan_2", False, type=bool)) 123 | ui.radioButtonGPUFan3.setChecked(config.value("gpu_fan_3", False, type=bool)) 124 | ui.radioButtonGPUFan4.setChecked(config.value("gpu_fan_4", False, type=bool)) 125 | ui.radioButtonGPUFan5.setChecked(config.value("gpu_fan_5", False, type=bool)) 126 | ui.radioButtonGPUFan6.setChecked(config.value("gpu_fan_6", False, type=bool)) 127 | 128 | # Fan speed and temperature data spinbox values 129 | ui.spinBoxMinSpeedFan1.setValue(config.value("min_speed_fan_1", 35, type=int)) 130 | ui.spinBoxMinSpeedFan2.setValue(config.value("min_speed_fan_2", 35, type=int)) 131 | ui.spinBoxMinSpeedFan3.setValue(config.value("min_speed_fan_3", 35, type=int)) 132 | ui.spinBoxMinSpeedFan4.setValue(config.value("min_speed_fan_4", 35, type=int)) 133 | ui.spinBoxMinSpeedFan5.setValue(config.value("min_speed_fan_5", 35, type=int)) 134 | ui.spinBoxMinSpeedFan6.setValue(config.value("min_speed_fan_6", 35, type=int)) 135 | 136 | ui.spinBoxStartIncreaseSpeedFan1.setValue(config.value("start_increase_speed_fan_1", 40, type=int)) 137 | ui.spinBoxStartIncreaseSpeedFan2.setValue(config.value("start_increase_speed_fan_2", 40, type=int)) 138 | ui.spinBoxStartIncreaseSpeedFan3.setValue(config.value("start_increase_speed_fan_3", 40, type=int)) 139 | ui.spinBoxStartIncreaseSpeedFan4.setValue(config.value("start_increase_speed_fan_4", 40, type=int)) 140 | ui.spinBoxStartIncreaseSpeedFan5.setValue(config.value("start_increase_speed_fan_5", 40, type=int)) 141 | ui.spinBoxStartIncreaseSpeedFan6.setValue(config.value("start_increase_speed_fan_6", 40, type=int)) 142 | 143 | ui.spinBoxIntermediateSpeedFan1.setValue(config.value("intermediate_speed_fan_1", 60, type=int)) 144 | ui.spinBoxIntermediateSpeedFan2.setValue(config.value("intermediate_speed_fan_2", 60, type=int)) 145 | ui.spinBoxIntermediateSpeedFan3.setValue(config.value("intermediate_speed_fan_3", 60, type=int)) 146 | ui.spinBoxIntermediateSpeedFan4.setValue(config.value("intermediate_speed_fan_4", 60, type=int)) 147 | ui.spinBoxIntermediateSpeedFan5.setValue(config.value("intermediate_speed_fan_5", 60, type=int)) 148 | ui.spinBoxIntermediateSpeedFan6.setValue(config.value("intermediate_speed_fan_6", 60, type=int)) 149 | 150 | ui.spinBoxIntermediateTempFan1.setValue(config.value("intermediate_temp_fan_1", 60, type=int)) 151 | ui.spinBoxIntermediateTempFan2.setValue(config.value("intermediate_temp_fan_2", 60, type=int)) 152 | ui.spinBoxIntermediateTempFan3.setValue(config.value("intermediate_temp_fan_3", 60, type=int)) 153 | ui.spinBoxIntermediateTempFan4.setValue(config.value("intermediate_temp_fan_4", 60, type=int)) 154 | ui.spinBoxIntermediateTempFan5.setValue(config.value("intermediate_temp_fan_5", 60, type=int)) 155 | ui.spinBoxIntermediateTempFan6.setValue(config.value("intermediate_temp_fan_6", 60, type=int)) 156 | 157 | ui.spinBoxMaxSpeedFan1.setValue(config.value("max_speed_fan_1", 100, type=int)) 158 | ui.spinBoxMaxSpeedFan2.setValue(config.value("max_speed_fan_2", 100, type=int)) 159 | ui.spinBoxMaxSpeedFan3.setValue(config.value("max_speed_fan_3", 100, type=int)) 160 | ui.spinBoxMaxSpeedFan4.setValue(config.value("max_speed_fan_4", 100, type=int)) 161 | ui.spinBoxMaxSpeedFan5.setValue(config.value("max_speed_fan_5", 100, type=int)) 162 | ui.spinBoxMaxSpeedFan6.setValue(config.value("max_speed_fan_6", 100, type=int)) 163 | 164 | ui.spinBoxMaxTempFan1.setValue(config.value("max_temp_fan_1", 75, type=int)) 165 | ui.spinBoxMaxTempFan2.setValue(config.value("max_temp_fan_2", 75, type=int)) 166 | ui.spinBoxMaxTempFan3.setValue(config.value("max_temp_fan_3", 75, type=int)) 167 | ui.spinBoxMaxTempFan4.setValue(config.value("max_temp_fan_4", 75, type=int)) 168 | ui.spinBoxMaxTempFan5.setValue(config.value("max_temp_fan_5", 75, type=int)) 169 | ui.spinBoxMaxTempFan6.setValue(config.value("max_temp_fan_6", 75, type=int)) 170 | 171 | # 172 | # "Rename Fans" tab 173 | # ------------------------ 174 | 175 | # Fan labels, default "Fan 1" ... "Fan 6" 176 | ui.lineEditFan1.setText(config.value("fan1_name", "Fan 1", type=str)) 177 | ui.lineEditFan2.setText(config.value("fan2_name", "Fan 2", type=str)) 178 | ui.lineEditFan3.setText(config.value("fan3_name", "Fan 3", type=str)) 179 | ui.lineEditFan4.setText(config.value("fan4_name", "Fan 4", type=str)) 180 | ui.lineEditFan5.setText(config.value("fan5_name", "Fan 5", type=str)) 181 | ui.lineEditFan6.setText(config.value("fan6_name", "Fan 6", type=str)) 182 | 183 | def save_settings(config, ui): 184 | """Save current UI configuration to the OS repository, called when exiting the main application""" 185 | 186 | # 187 | # "General" tab 188 | # ------------------------ 189 | # Fan slider values 190 | config.setValue("fan1_percent", ui.horizontalSliderFan1.value()) 191 | config.setValue("fan2_percent", ui.horizontalSliderFan2.value()) 192 | config.setValue("fan3_percent", ui.horizontalSliderFan3.value()) 193 | config.setValue("fan4_percent", ui.horizontalSliderFan4.value()) 194 | config.setValue("fan5_percent", ui.horizontalSliderFan5.value()) 195 | config.setValue("fan6_percent", ui.horizontalSliderFan6.value()) 196 | 197 | # Serial port 198 | config.setValue("port", ui.comboBoxComPorts.currentText()) 199 | 200 | # Polling interval 201 | config.setValue("polling", ui.comboBoxPolling.currentText()) 202 | 203 | # Radio buttons 204 | config.setValue("automatic_control", ui.radioButtonAutomatic.isChecked()) 205 | config.setValue("manual_control", ui.radioButtonManual.isChecked()) 206 | 207 | # 208 | # "Sensor Config" tab 209 | # ------------------------ 210 | 211 | # Selected CPU sensors 212 | root = ui.treeWidgetSelectedCPUSensors.invisibleRootItem() 213 | child_count = root.childCount() 214 | cpu_sensor_ids = [] 215 | for i in range(child_count): 216 | item = root.child(i) 217 | cpu_sensor_ids.append(item.text(1)) 218 | config.setValue("cpu_sensor_ids", cpu_sensor_ids) 219 | 220 | # Selected GPU sensors 221 | root = ui.treeWidgetSelectedGPUSensors.invisibleRootItem() 222 | child_count = root.childCount() 223 | gpu_sensor_ids = [] 224 | for i in range(child_count): 225 | item = root.child(i) 226 | gpu_sensor_ids.append(item.text(1)) 227 | config.setValue("gpu_sensor_ids", gpu_sensor_ids) 228 | 229 | # Radio buttons 230 | config.setValue("cpu_use_max", ui.radioButtonCPUMax.isChecked()) 231 | config.setValue("cpu_use_avg", ui.radioButtonCPUAverage.isChecked()) 232 | config.setValue("gpu_use_max", ui.radioButtonGPUMax.isChecked()) 233 | config.setValue("gpu_use_avg", ui.radioButtonGPUAverage.isChecked()) 234 | 235 | # 236 | # "Fan Config" tab 237 | # ------------------------ 238 | 239 | # Radio buttons 240 | config.setValue("cpu_fan_1", ui.radioButtonCPUFan1.isChecked()) 241 | config.setValue("cpu_fan_2", ui.radioButtonCPUFan2.isChecked()) 242 | config.setValue("cpu_fan_3", ui.radioButtonCPUFan3.isChecked()) 243 | config.setValue("cpu_fan_4", ui.radioButtonCPUFan4.isChecked()) 244 | config.setValue("cpu_fan_5", ui.radioButtonCPUFan5.isChecked()) 245 | config.setValue("cpu_fan_6", ui.radioButtonCPUFan6.isChecked()) 246 | 247 | config.setValue("gpu_fan_1", ui.radioButtonGPUFan1.isChecked()) 248 | config.setValue("gpu_fan_2", ui.radioButtonGPUFan2.isChecked()) 249 | config.setValue("gpu_fan_3", ui.radioButtonGPUFan3.isChecked()) 250 | config.setValue("gpu_fan_4", ui.radioButtonGPUFan4.isChecked()) 251 | config.setValue("gpu_fan_5", ui.radioButtonGPUFan5.isChecked()) 252 | config.setValue("gpu_fan_6", ui.radioButtonGPUFan6.isChecked()) 253 | 254 | # Fan and temp data spinbox values 255 | config.setValue("min_speed_fan_1", ui.spinBoxMinSpeedFan1.value()) 256 | config.setValue("min_speed_fan_2", ui.spinBoxMinSpeedFan2.value()) 257 | config.setValue("min_speed_fan_3", ui.spinBoxMinSpeedFan3.value()) 258 | config.setValue("min_speed_fan_4", ui.spinBoxMinSpeedFan4.value()) 259 | config.setValue("min_speed_fan_5", ui.spinBoxMinSpeedFan5.value()) 260 | config.setValue("min_speed_fan_6", ui.spinBoxMinSpeedFan6.value()) 261 | 262 | config.setValue("start_increase_speed_fan_1", ui.spinBoxStartIncreaseSpeedFan1.value()) 263 | config.setValue("start_increase_speed_fan_2", ui.spinBoxStartIncreaseSpeedFan2.value()) 264 | config.setValue("start_increase_speed_fan_3", ui.spinBoxStartIncreaseSpeedFan3.value()) 265 | config.setValue("start_increase_speed_fan_4", ui.spinBoxStartIncreaseSpeedFan4.value()) 266 | config.setValue("start_increase_speed_fan_5", ui.spinBoxStartIncreaseSpeedFan5.value()) 267 | config.setValue("start_increase_speed_fan_6", ui.spinBoxStartIncreaseSpeedFan6.value()) 268 | 269 | config.setValue("intermediate_speed_fan_1", ui.spinBoxIntermediateSpeedFan1.value()) 270 | config.setValue("intermediate_speed_fan_2", ui.spinBoxIntermediateSpeedFan2.value()) 271 | config.setValue("intermediate_speed_fan_3", ui.spinBoxIntermediateSpeedFan3.value()) 272 | config.setValue("intermediate_speed_fan_4", ui.spinBoxIntermediateSpeedFan4.value()) 273 | config.setValue("intermediate_speed_fan_5", ui.spinBoxIntermediateSpeedFan5.value()) 274 | config.setValue("intermediate_speed_fan_6", ui.spinBoxIntermediateSpeedFan6.value()) 275 | 276 | config.setValue("intermediate_temp_fan_1", ui.spinBoxIntermediateTempFan1.value()) 277 | config.setValue("intermediate_temp_fan_2", ui.spinBoxIntermediateTempFan2.value()) 278 | config.setValue("intermediate_temp_fan_3", ui.spinBoxIntermediateTempFan3.value()) 279 | config.setValue("intermediate_temp_fan_4", ui.spinBoxIntermediateTempFan4.value()) 280 | config.setValue("intermediate_temp_fan_5", ui.spinBoxIntermediateTempFan5.value()) 281 | config.setValue("intermediate_temp_fan_6", ui.spinBoxIntermediateTempFan6.value()) 282 | 283 | config.setValue("max_speed_fan_1", ui.spinBoxMaxSpeedFan1.value()) 284 | config.setValue("max_speed_fan_2", ui.spinBoxMaxSpeedFan2.value()) 285 | config.setValue("max_speed_fan_3", ui.spinBoxMaxSpeedFan3.value()) 286 | config.setValue("max_speed_fan_4", ui.spinBoxMaxSpeedFan4.value()) 287 | config.setValue("max_speed_fan_5", ui.spinBoxMaxSpeedFan5.value()) 288 | config.setValue("max_speed_fan_6", ui.spinBoxMaxSpeedFan6.value()) 289 | 290 | config.setValue("max_temp_fan_1", ui.spinBoxMaxTempFan1.value()) 291 | config.setValue("max_temp_fan_2", ui.spinBoxMaxTempFan2.value()) 292 | config.setValue("max_temp_fan_3", ui.spinBoxMaxTempFan3.value()) 293 | config.setValue("max_temp_fan_4", ui.spinBoxMaxTempFan4.value()) 294 | config.setValue("max_temp_fan_5", ui.spinBoxMaxTempFan5.value()) 295 | config.setValue("max_temp_fan_6", ui.spinBoxMaxTempFan6.value()) 296 | 297 | # 298 | # "Rename Fans" tab 299 | # ------------------------ 300 | 301 | # Fan labels 302 | config.setValue("fan1_name", ui.lineEditFan1.text()) 303 | config.setValue("fan2_name", ui.lineEditFan2.text()) 304 | config.setValue("fan3_name", ui.lineEditFan3.text()) 305 | config.setValue("fan4_name", ui.lineEditFan4.text()) 306 | config.setValue("fan5_name", ui.lineEditFan5.text()) 307 | config.setValue("fan6_name", ui.lineEditFan6.text()) 308 | -------------------------------------------------------------------------------- /setup-exe.py: -------------------------------------------------------------------------------- 1 | import sys 2 | from cx_Freeze import setup, Executable 3 | 4 | shortcut_table = [ 5 | ("DesktopShortcut", # Shortcut 6 | "DesktopFolder", # Directory_ 7 | "OpenHWControl", # Name 8 | "TARGETDIR", # Component_ 9 | "[TARGETDIR]playlist.exe",# Target 10 | None, # Arguments 11 | None, # Description 12 | None, # Hotkey 13 | None, # Icon 14 | None, # IconIndex 15 | None, # ShowCmd 16 | 'TARGETDIR' # WkDir 17 | ) 18 | ] 19 | 20 | build_exe_options = {"include_files": ["libusb-1.0.dll", "OpenHWMonitor/Aga.Controls.dll", "OpenHWMonitor/OpenHardwareMonitor.config", "OpenHWMonitor/OpenHardwareMonitor.exe", "OpenHWMonitor/OpenHardwareMonitor.exe.config", "OpenHWMonitor/OpenHardwareMonitorLib.dll", "OpenHWMonitor/OxyPlot.dll", "OpenHWMonitor/OxyPlot.WindowsForms.dll", "OpenHWMonitor/License.html"]} 21 | 22 | setup(name='openhwcontrol', 23 | version='1.0.0', 24 | description='A cross platform open source tool to control NZXT components easily through software', 25 | classifiers=[ 26 | 'Development Status :: 5 - Production/Stable', 27 | 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 28 | 'Programming Language :: Python :: 3 :: Only' 29 | ], 30 | url='http://github.com/kusti8/openhwcontrol', 31 | author='Gustav Hansen', 32 | author_email='kusti8@gmail.com', 33 | license='GPL3', 34 | packages=['openhwcontrol'], 35 | executables = [Executable("openhwcontrol/ui.py", base = "Win32GUI", shortcutName="OpenHWControl", shortcutDir="DesktopFolder")], 36 | install_requires=[ 37 | 'hue_plus', 38 | 'pyusb' 39 | ], 40 | keywords = 'nzxt hue hue-plus hue_plus hue+ openhwcontrol kraken', 41 | include_package_data=True, 42 | zip_safe=False, 43 | options={'build_exe': build_exe_options}) 44 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | from setuptools import setup 2 | 3 | setup(name='openhwcontrol', 4 | version='1.0.0', 5 | description='A cross platform open source tool to control NZXT components easily through software', 6 | classifiers=[ 7 | 'Development Status :: 5 - Production/Stable', 8 | 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', 9 | 'Programming Language :: Python :: 3 :: Only' 10 | ], 11 | url='http://github.com/kusti8/openhwcontrol', 12 | author='Gustav Hansen', 13 | author_email='kusti8@gmail.com', 14 | license='GPL3', 15 | packages=['openhwcontrol'], 16 | entry_points={ 17 | 'gui_scripts': [ 18 | 'openhwcontrol = openhwcontrol.ui:main' 19 | ] 20 | }, 21 | install_requires=[ 22 | 'hue_plus', 23 | 'pyusb', 24 | ], 25 | keywords = 'nzxt hue hue-plus hue_plus hue+ openhwcontrol kraken', 26 | include_package_data=True, 27 | zip_safe=False) 28 | -------------------------------------------------------------------------------- /ui.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kusti8/OpenHWControl/ed59be4eee343b1615251743c4195aed1f0a58f1/ui.exe -------------------------------------------------------------------------------- /version: -------------------------------------------------------------------------------- 1 | 1.0.0 2 | --------------------------------------------------------------------------------