Giter Club home page Giter Club logo

Comments (11)

zim514 avatar zim514 commented on July 19, 2024

Hi

You can manually edit the settings.xml in userdata/addon_data/script.service.hue but also need to manually create a user on the bridge for it to work...

I'm working on allowing manual IP entry as a fallback in the current discovery flow to solve both this and #172, it should be in the next available version.

from script.service.hue.

zim514 avatar zim514 commented on July 19, 2024

Please try this version https://github.com/zim514/script.service.hue/releases/tag/v1.2-dev1

from script.service.hue.

rgnjwrgjlnrb avatar rgnjwrgjlnrb commented on July 19, 2024

thanks. after seeing #147 (only one ambilight color with this add-on) i'll try to get the add-on script.kodi.hue.ambilight working first before i try this one. for those having the same problem, if you want to configure it manually it is very easy to create a user on the hue bridge with curl:

$ curl -d '{"devicetype":"$DEVICE-NAME"}' -H "Content-Type: application/json" -X POST 'http://$BRIDGE-IP/api'
response:
[{"error":{"type":101,"address":"","description":"link button not pressed"}}]

now press the button on the hue bridge and repeat:

$ curl -d '{"devicetype":"$DEVICE-NAME"}' -H "Content-Type: application/json" -X POST 'http://$BRIDGE-IP/api' ; echo
response:
[{"success":{"username":"XXXXXXXXXXXXXXXXXX"}}]

$DEVICE-NAME can be any any string, for example "Kodi"
$BRIDGE-IP is the IP of the hue bridge, for example 192.168.0.9
XXXXXXXXXXXXXXXXXXX is the username/key you have created (alphanumeric string)

from script.service.hue.

kodiuser12345 avatar kodiuser12345 commented on July 19, 2024

I have the same problem, I can't enter the IP manually, I tried the last version from https://github.com/zim514/script.service.hue/releases/tag/v1.12.14 and I also tried https://github.com/zim514/script.service.hue/releases/tag/v1.2-dev1. There is no way to enter the IP like with other programs, just an error it can't find the bridge.

If I look the setting file ./.kodi/addons/script.service.hue/resources/settings.xml there is setting id="bridgeIP" and setting id="bridgeUser" but I don't understand the syntax to put the IP and hue user/key there. Should I put these with the and tags and should I remove anything from the section? It is really painful to make this work!

from script.service.hue.

zim514 avatar zim514 commented on July 19, 2024

Could you please provide debug logs?

from script.service.hue.

kodiuser12345 avatar kodiuser12345 commented on July 19, 2024

Has manual entry of bridge IP been implemented? If not, how could debug logs be useful at all? I only see I can't enter the IP, maybe I'm doing something wrong and maybe it's not implemented yet. But I don't get any errors that could make reading logs be useful. I just want to clarify before uploading them...

from script.service.hue.

zim514 avatar zim514 commented on July 19, 2024

Yep, if you select 'Discover bridge' but it doesn't find one, it should prompt you to enter an IP manually and then continue the connection flow. If you're not getting the prompt, logs will help me figure out why

from script.service.hue.

kodiuser12345 avatar kodiuser12345 commented on July 19, 2024

Thanks for the clarification! Logs attached (username replaced with $user), it complains about a missing module called PIL, maybe that is the reason

hue-logs.txt

from script.service.hue.

zim514 avatar zim514 commented on July 19, 2024

Probably. PIL is included with Kodi, you may have to reinstall Kodi to fix the problem. What OS are you running Kodi on?

from script.service.hue.

kodiuser12345 avatar kodiuser12345 commented on July 19, 2024

I use Linux, Kodi comes in a package. If I remove and add it again I'll end up with the same files. There is an optional package with Kodi binary add-ons, but I have no idea if PIL is included with the Kodi package or not or how to check. Is there a file I should be looking for? Maybe it was compiled without PIL. I actually have no idea what PIL is..

from script.service.hue.

zim514 avatar zim514 commented on July 19, 2024

PIL is the Python Imaging Library / Pillow python package. It comes bundled with Kodi so I'm not sure why it wouldn't be included in your install. It may be part of the binary add-ons but I'm not sure. I think you can also try 'pip install Pillow' from the command line to install it manually. It's a problem with the Kodi installation rather than the Hue add-on so I'm sure how to fix it. You may have better luck asking on https://forum.kodi.tv/

from script.service.hue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.