Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloKowalczyk committed Jun 11, 2019
0 parents commit b778b09
Show file tree
Hide file tree
Showing 20 changed files with 3,001 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
charset = utf-8
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
/vendor
.phpunit.result.cache
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [v0.1.0] - 2019-06-11

### Added

- `watch` command
- `help` command
- `list` command


[Unreleased]: https://github.com/PabloKowalczyk/nvfc/compare/v0.1.0...HEAD
[v0.1.0]: https://github.com/PabloKowalczyk/nvfc/releases/tag/v0.1.0
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## NVFC - NVidiaFanController

Written in PHP, fan speed controller for Nvidia graphic cards.

### Requirements

- PHP 7.2+
- Linux OS
- `nvidia-setting` binary, from Nvidia Linux drivers

### Installation

```bash
composer global require pablok/nvfc
```

### Example usage

```bash
nvfc watch --start-fan=25 --start-temp=30 --end-temp=90 --end-fan=100 --interval=5
```
10 changes: 10 additions & 0 deletions bin/nvfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env php
<?php

use Symfony\Component\Console\Application;

require \dirname(__DIR__) . '/vendor/autoload.php';

$application = new Application();
$application->add(new \NvFanController\UserInterface\WatchCommand());
$application->run();
28 changes: 28 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"require": {
"php": "^7.2",
"symfony/process": "^4.2",
"symfony/console": "^4.2",
"react/event-loop": "^1.1",
"react/child-process": "^0.6.1",
"react/stream": "^1.1"
},
"require-dev": {
"roave/security-advisories": "dev-master",
"symfony/var-dumper": "^4.2",
"phpunit/phpunit": "^8.2"
},
"autoload": {
"psr-4": {
"NvFanController\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"NvFanController\\Tests\\": "tests"
}
},
"bin": [
"bin/nvfc"
]
}
Loading

0 comments on commit b778b09

Please sign in to comment.