Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

popen device outputs floats bigger than 1- 0 range #13

Open
pauluzs opened this issue Feb 7, 2016 · 0 comments
Open

popen device outputs floats bigger than 1- 0 range #13

pauluzs opened this issue Feb 7, 2016 · 0 comments

Comments

@pauluzs
Copy link

pauluzs commented Feb 7, 2016

When using popen device with command "tee /dev/MYFIFO" or dd bs=1 of=/dev/MYFIFO
The output for 255 color values is 1.000015 instead of 1

Fist created a named pipe:
root@vuduo:# mkfifo /dev/MYFIFO
Then show the output
root@vuduo:
# cat /dev/MYFIFO

Used moodlamp > static color to test this although 1.000015 values also appear in dynamic mode

Used Config File

[global]
interface 127.0.0.1
port 19333

[device]
name ambilight1
output tee /dev/MYFIFO
type popen
interval 20000
channels 18
debug off

[color]
name red
rgb 0000FF
gamma 0.91
adjust 1.0
blacklevel 0.0

[color]
name green
rgb 00FF00
gamma 0.86
adjust 0.96
blacklevel 0.0

[color]
name blue
rgb FF0000
gamma 0.95
adjust 0.80
blacklevel 0.0

[light]
position left
name 100
color red ambilight1 1
color green ambilight1 2
color blue ambilight1 3
hscan 0 33.33
vscan 0 0

position left
name 200
color red ambilight1 4
color green ambilight1 5
color blue ambilight1 6
hscan 33.33 66.67
vscan 0 0

position left
name 300
color red ambilight1 7
color green ambilight1 8
color blue ambilight1 9
hscan 66.67 100.0
vscan 0 0

position right
name 400
color red ambilight1 10
color green ambilight1 11
color blue ambilight1 12
hscan 100.0 100
vscan 0 33.33

position right
name 500
color red ambilight1 13
color green ambilight1 14
color blue ambilight1 15
hscan 100.0 100
vscan 33.33 66.67

position right
name 600
color red ambilight1 16
color green ambilight1 17
color blue ambilight1 18
hscan 100.0 100
vscan 66.67 100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant