dakl / tv-backlight

source code for my http-controlled tv-backlight

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tv-backlight

Build Status

Particle-controlled tv-backlight with http-endpoints.

Compilation and deployment (flashing the mcu) is handled by travis-ci.

How?

Like this:

# Color from hue (degrees)
curl https://api.particle.io/v1/devices/$TVBACKLIGHT_DEVICE_ID/hue -d access_token=$PARTICLE_ACCESS_TOKEN -d args=0

# set saturation to 70%
curl https://api.particle.io/v1/devices/$TVBACKLIGHT_DEVICE_ID/saturation -d access_token=$PARTICLE_ACCESS_TOKEN -d args=70

# 100% brightness
curl https://api.particle.io/v1/devices/$TVBACKLIGHT_DEVICE_ID/brightness -d access_token=$PARTICLE_ACCESS_TOKEN -d args=100

# color from RGB
curl https://api.particle.io/v1/devices/$TVBACKLIGHT_DEVICE_ID/color -d access_token=$PARTICLE_ACCESS_TOKEN -d args=128,128,128

# turn it off
curl https://api.particle.io/v1/devices/$TVBACKLIGHT_DEVICE_ID/state -d access_token=$PARTICLE_ACCESS_TOKEN -d args=0

About

source code for my http-controlled tv-backlight


Languages

Language:C++ 96.0%Language:Shell 2.3%Language:Makefile 1.6%