Skip to content

Commit

Permalink
Shellcheck and markdown lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adamoutler committed Aug 9, 2023
1 parent 675835d commit df3d274
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion argonOne/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ until false; do

set +e

if [ $previousFanLevel != $fanLevel ]; then
if [ "${previousFanLevel}" != "${fanLevel}" ]; then
#based on current position, and quiet mode, we can set the name and percentage of fanspeed.
case $fanLevel in
1)
Expand Down
4 changes: 2 additions & 2 deletions argonOneClassic/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ until false; do

fanPercent=$((value_a*value+value_b))
set +e
if [ $previousFanPercent != $fanPercent ]; then
actionLinear "${fanPercent}" "${cpuTemp}" "${CorF}"
if [ "${previousFanPercent}" != "${fanPercent}" ]; then
actionLinear "${fanPercent}" "${cpuTemp}" "${CorF}"
test $? -ne 0 && fanPercent=previousFanPercent
previousFanPercent=$fanPercent
fi
Expand Down
8 changes: 5 additions & 3 deletions argonOneLinear/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ fanPercent=$((value_a*value+value_b))

## Support

First, look in the Logs tab of the Addon's page in HA to see if i2c was set up properly, or for any other errors.
First, look in the Logs tab of the Addon's page in HA to see if i2c was set up properly, or for any other

Check failure on line 34 in argonOneLinear/README.md

View workflow job for this annotation

GitHub Actions / MarkdownLint

Line length
errors.

Also, enable the "Log current temperature every 30 seconds" setting and look in the logs to see what the speed is. The fan is noisy and you
might not be able to hear different speeds, but logging will verify any changes.
Also, enable the "Log current temperature every 30 seconds" setting and look in the logs to see what the

Check failure on line 37 in argonOneLinear/README.md

View workflow job for this annotation

GitHub Actions / MarkdownLint

Line length
speed is. The fan is noisy and you might not be able to hear different speeds, but logging will verify

Check failure on line 38 in argonOneLinear/README.md

View workflow job for this annotation

GitHub Actions / MarkdownLint

Line length
any changes.

Need support? Click [here](https://community.home-assistant.io/t/argon-one-active-cooling-addon/262598/8).
Try to be detailed about your feedback.
Expand Down
2 changes: 1 addition & 1 deletion argonOneLinear/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ until false; do

fanPercent=$((value_a*value+value_b))
set +e
if [ $previousFanPercent != $fanPercent ]; then
if [ "${previousFanPercent}" != "${fanPercent}" ]; then
actionLinear "${fanPercent}" "${cpuTemp}" "${CorF}"
test $? -ne 0 && fanPercent=previousFanPercent
previousFanPercent=$fanPercent
Expand Down

0 comments on commit df3d274

Please sign in to comment.