User Tools

Site Tools


projects:neopixel-bandwidth-room-light

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
projects:neopixel-bandwidth-room-light [2017-10-15 10:57]
trinitor [Programm]
projects:neopixel-bandwidth-room-light [2017-10-27 18:08]
trinitor
Line 1: Line 1:
 ====== NeoPixel Bandwidth Room Light ====== ====== NeoPixel Bandwidth Room Light ======
 +
 +{{:projects:neopixel_bandwidth_room_light.gif?direct|}}
  
 ===== Overview ===== ===== Overview =====
Line 308: Line 310:
  
      if [ "$OUT2" -gt "$OUT" ] || [ "$IN2" -gt "$IN" ] ; then      if [ "$OUT2" -gt "$OUT" ] || [ "$IN2" -gt "$IN" ] ; then
 +       clear
        if [ "$TIME2" == "$TIME" ]; then        if [ "$TIME2" == "$TIME" ]; then
          TIME=1          TIME=1
Line 322: Line 325:
        echo Inbound %: $INPUTPERCENT"%"        echo Inbound %: $INPUTPERCENT"%"
        echo Outbound %: $OUTPUTPERCENT"%"        echo Outbound %: $OUTPUTPERCENT"%"
-       RED=$(echo "$MAXBRIGHTNESS*$OUTPUTPERCENT/100" | bc) +       RED=$(echo "($MAXBRIGHTNESS*$OUTPUTPERCENT/100)+1" | bc) 
-       GREEN=$(echo "$MAXBRIGHTNESS*$INPUTPERCENT/100" | bc)+       GREEN=$(echo "($MAXBRIGHTNESS*$INPUTPERCENT/100)+1" | bc)
        echo "{red:$RED,green:$GREEN}"        echo "{red:$RED,green:$GREEN}"
        echo "{red:$RED,green:$GREEN}" | nc -w 0 -u $NEOPIXELIP $NEOPIXELPORT        echo "{red:$RED,green:$GREEN}" | nc -w 0 -u $NEOPIXELIP $NEOPIXELPORT
projects/neopixel-bandwidth-room-light.txt · Last modified: 2017-12-23 11:49 by trinitor