xoseperez / espurna

Home automation firmware for ESP8266-based devices
http://tinkerman.cat
GNU General Public License v3.0
3k stars 638 forks source link

Arilux_AL-LC0X udp - Hyperion support #232

Closed xoseperez closed 6 years ago

xoseperez commented 7 years ago

Originally reported by: iLLiac4 (Bitbucket: iLLiac4, GitHub: iLLiac4)


Hi. Would it be possilbe to add for arilux controller udp possibilities to send packets to hyperion ambilight? https://hyperion-project.org/wiki/UDP-Device Working solution is here but it would be nicer to have an option already on arilux for 5050 in espurna.

https://github.com/SciLor/ESP8266_Hyperion_LED-Controller

TNX

xoseperez commented 6 years ago

Duplicate of #345.

xoseperez commented 7 years ago

Added support for Arilux AL-LC06 to dev branch with 9111bad thanks to Martijn Kruissen. Will release it soon.

xoseperez commented 7 years ago

Original comment by iLLiac4 (Bitbucket: iLLiac4, GitHub: iLLiac4):


This is the config file for arilux pins:

#!arduino

/*------------------------------------------------*/
/*Configuration type*/

#define CONFIG_ENABLE_WEBCONFIG 1

//Replaces all values in the webconfig with the ConfigStatic.h values when CONFIG_ENABLE_WEBCONFIG is enabled
#define CONFIG_OVERWRITE_WEBCONFIG 1

/*------------------------------------------------*/
/*Logging level*/

#define LOGLEVEL LOG_LEVEL_INFOS
//#define LOGLEVEL LOG_LEVEL_DEBUG
//#define LOGLEVEL LOG_LEVEL_VERBOSE

/*------------------------------------------------*/
/*Main static configuration*/
//This cannot be changed via web inteface

//#define CONFIG_LED_SPI_CHIPSET WS2801 //Comment out for clockless
//#define CONFIG_LED_CLOCKLESS_CHIPSET WS2812B //Comment in for clockless
//#define FASTLED_ALLOW_INTERRUPTS 0 //Comment in if clockless stripe (ex. WS2812B) is flickering
#define CONFIG_LED_PWM 1 //Comment in if PWM Stripe

//#define CONFIG_LED_DATAPIN 13 //Comment out for PWM
//#define CONFIG_LED_CLOCKPIN 5 //Comment out for clockless / PWM
#define CONFIG_LED_PWM_RED 3 //Comment in for PWM
#define CONFIG_LED_PWM_GREEN 0 //Comment in for PWM
#define CONFIG_LED_PWM_BLUE 2 //Comment in for PWM

//Pin order, see FastLED doc. NodeMCU should work with FASTLED_ESP8266_RAW_PIN_ORDER

#define FASTLED_ESP8266_RAW_PIN_ORDER
//#define FASTLED_ESP8266_NODEMCU_PIN_ORDER
//#define FASTLED_ESP8266_D1_PIN_ORDER

#define CONFIG_LED_COLOR_ORDER RGB
#define CONFIG_LED_COUNT 1

//OFF, HYPERION_UDP, STATIC_COLOR, RAINBOW, FIRE2012
#define CONFIG_LED_STANDARD_MODE OFF
#define CONFIG_LED_HYPERION_AUTOSWITCH true 
#define CONFIG_LED_STANDARD_MODE_TIMEOUT_MS 5000 

/*------------------------------------------------*/
/*Main configuration*/
//You can leave it empty and override it via the web interface on port 80
#define CONFIG_WIFI_SSID "SSID"
#define CONFIG_WIFI_PASSWORD "password"

//#define CONFIG_WIFI_STATIC_IP 1
//const byte CONFIG_WIFI_IP[] = {192, 168, 0, 100};
//const byte CONFIG_WIFI_SUBNET[] = {255, 255, 255, 0};
//const byte CONFIG_WIFI_DNS[] = {192, 168, 0, 1};

#define CONFIG_WIFI_HOSTNAME "ESP8266"

#define CONFIG_PORT_JSON_SERVER 19444
#define CONFIG_PORT_UDP_LED 19446