Closed sarkonovich closed 8 years ago
@sarkonovich I can send a PR for https://github.com/jpeffer/docker-alexa-hue that executes a curl
command in order to get the new user and replace it in hue_switch.rb
. How does it sound to you?
Mariano,
That sounds good. Just to be clear (don't know that much about curl), I assume the request will return the new user, but it won't write that value in the hue_switch.rb file, right?
The thing is, I'm going to have to rewrite the authentication part of hue_switch.rb soon anyway to fix this. But using curl to generate/return a new user is much easier than the workaround up there now.
Maybe it would make sense to just include the curl request as the workaround for now? What do you think?
Steve
On Mon, May 2, 2016 at 2:15 PM, Mariano Gonzalez notifications@github.com wrote:
@sarkonovich https://github.com/sarkonovich I can send a PR for https://github.com/jpeffer/docker-alexa-hue that executes a curl command in order to get the new user and replace it in hue_switch.rb. How does it sound to you?
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/sarkonovich/Alexa-Hue/issues/10#issuecomment-216366674
Updated routine for creating new users.
Not sure if this is helpful or not, but I'm getting the following error when trying to get a new user:
@eschizoid Thanks. I've just fixed the issue, so there is no need for this work around. (The issue you're showing is that you need to press the link button on the bridge before sending the POST command.)
I've just updated the Docker image to the newest version of Alexa-Hue.
Note that the Docker image is now pulled from sarkonovich/docker-alexa-hue. Pull down the new image and everything should work.
@sarkonovich Great news!
@sarkonovich I'm building a docker image for ARM architectures (basically for Pi's) and I'm reusing all the work done by wernight/ngrok
and jpeffer/docker-alexa-hue
. I should be done testing it today or tomorrow. Perhaps a pull request updating the README.md
file in case people wants to use this whith their Pi's what you think?
Here are the repos I've created so far:
https://hub.docker.com/r/eschizoid/docker-ngrok-armhf https://hub.docker.com/r/eschizoid/docker-alexa-hue-armhf
Unfortunately I don't have a way to prove the image works because the automated build feature on the official Docker Hub only runs the normal x86_64 architectures.
I'd be happy to update the Readme if you get this working! I looked into this very briefly, but it seemed easier just to install Ruby. But the more ways to do this the better!
Have you looked into hypriot for automated docker builds in ARM?
Also, note: until jpeffer puts updates his build, his image won't work. You'll need to get the most recent image from sarkonovich/docker-alexa-hue
Steve
On Tue, May 3, 2016 at 7:49 AM, Mariano Gonzalez notifications@github.com wrote:
@sarkonovich https://github.com/sarkonovich I'm building a docker image for ARM architectures (basically for Pi's) and I'm reusing all the work done by wernight/ngrok and jpeffer/docker-alexa-hue. I should be done testing it today or tomorrow. Perhaps a pull request updating the README.md file in case people wants to use this whith their Pi's what you think?
Here are the repos I've created so far:
https://hub.docker.com/r/eschizoid/docker-ngrok-armhf https://hub.docker.com/r/eschizoid/docker-alexa-hue-armhf/
Unfortunately I don't have a way to prove the image works because the automated build feature on the official Docker Hub only runs the normal x86_64 architectures.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/sarkonovich/Alexa-Hue/issues/10#issuecomment-216552870
Have you looked into hypriot for automated docker builds in ARM? http://blog.hypriot.com/
Yes, unfortunately I gave up because their distro is kinda unstable. For instance, the wifi module for the Raspbery Pi 3 does not work with that distro.
Also, note: until jpeffer puts updates his build, his image won't work. You'll need to get the most recent image from sarkonovich/docker-alexa-hue
Completely aware of it 😉 I'm no relying on his image at all you can see this here:
https://github.com/eschizoid/docker-rvm/blob/master/Dockerfile https://github.com/eschizoid/docker-alexa-hue/blob/master/Dockerfile https://github.com/eschizoid/docker-ngrok/blob/master/Dockerfile
@sarkonovich Images for Raspberry-pi working properly!
In the latest upgrade to the Hue bridge, the ability for an app to set a username for an authorized user has been deprecated. All usernames now must be generated on the bridge. Alexa-Hue worked by creating a new user ("1234567890"). Since this is no longer allowed, the skill cannot gracefully link to the bridge.
So, for now we need to hardcode in a username that is generated on the bridge.
Here's (unfortunately) what you have to do.