daniel1111 / huelibent Goto Github PK
View Code? Open in Web Editor NEWA library to control Hue entertainment areas from C with an audio visualiser as an example
License: BSD 2-Clause "Simplified" License
A library to control Hue entertainment areas from C with an audio visualiser as an example
License: BSD 2-Clause "Simplified" License
Getting this error while trying to compile!
[ 6%] Building C object CMakeFiles/HueEnt.dir/src/hue_rest.c.o /root/HueLibEnt/src/hue_rest.c: In function ‘free_whitelist’: /root/HueLibEnt/src/hue_rest.c:83:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (uint i=0; i < ctx->whitelist_count; i++) ^ /root/HueLibEnt/src/hue_rest.c:83:3: note: use option -std=c99 or -std=gnu99 to compile your code /root/HueLibEnt/src/hue_rest.c: In function ‘parse_entertainment_groups_json’: /root/HueLibEnt/src/hue_rest.c:657:7: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int n = 0; n < json_object_array_length(obj_param) && n < MAX_LIGHTS_PER_AREA; n++) ^ make[2]: *** [CMakeFiles/HueEnt.dir/src/hue_rest.c.o] Error 1 make[1]: *** [CMakeFiles/HueEnt.dir/all] Error 2 make: *** [all] Error 2
Hi daniel1111,
I found your great project and remembered that I once had the same issue on coupling squeezelite with hue.
So I worked on LMS-to-Hue (https://github.com/chincheta0815/LMS-to-Hue/tree/master/helper/LMS-to-Hue)
That thing discovers the Bridge, shows it as a LMS player, gets the music stream and is supposed to analyze it and flash the lights.
So far the idea. Until now that thing simply has issues with the correct stream output:
But maybe you like the project. If you have any hints on how to get the audio stream and the analysis correctly I would also be happy.
BTW: I had to add minor functions to libHueEnt as I needed the apiversion. Maybe some headers (and functions) should be named more "liebhueent" specific (debug.h --> hue_debug.h, dtls.h --> hue_dtls.h) or so...
Do you want me to send as a pull request?
Best regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.