Git Product home page Git Product logo

Comments (16)

sumnerboy12 avatar sumnerboy12 commented on August 13, 2024

Good spot - currently not possible. Happy to accept a pull request if you are keen to add it in? I don't have any authentication setup on my XBMC instances so never came across this issue.

from mqttwarn.

jfarcher avatar jfarcher commented on August 13, 2024

Just submitted a pull request for the service part of this, now to figure out changing the details sent from the ini file.

from mqttwarn.

sumnerboy12 avatar sumnerboy12 commented on August 13, 2024

Yep - probably best to change the XBMC target from a simple string (just the IP address) to a list - containing the IP address, and optionally a username and password. See the pushover.py service for an example of this.

from mqttwarn.

jfarcher avatar jfarcher commented on August 13, 2024

I've figured that one out now too and is all part of the pull request... seems to work OK.

from mqttwarn.

sumnerboy12 avatar sumnerboy12 commented on August 13, 2024

Nice one Jon. I assume it still works if there is no username/password supplied in the target? Also, could you update the README for the XBMC section. Much appreciated - thanks for this!

from mqttwarn.

jfarcher avatar jfarcher commented on August 13, 2024

Yes I checked that bit especially, with you saying that you had no auth enabled. Already updated the README too :)
Happy to help!!

from mqttwarn.

sumnerboy12 avatar sumnerboy12 commented on August 13, 2024

Great stuff - thanks very much!

from mqttwarn.

sumnerboy12 avatar sumnerboy12 commented on August 13, 2024

Merged #50

from mqttwarn.

jpmens avatar jpmens commented on August 13, 2024

Gents, thanks for this, but:

Looking at the README snippet and at the code, this is bound to fail if no auth token passed in from the target definition:

xbmchost, xbmcusername, xbmcpassword  = item.addrs

(not enough "things" in item.addrs)

@sumnerboy12 Have you actually tested your bedroom_no_auth example? :-)

Solutions: 1. change xbmc.py to try/catch either case, or 2. make dummy auth params mandatory

from mqttwarn.

sumnerboy12 avatar sumnerboy12 commented on August 13, 2024

No, but I did specifically ask if it worked with no auth parameters and was
told it did, before accepting the pull request.

from mqttwarn.

jpmens avatar jpmens commented on August 13, 2024

Well, as you've probably guessed by now, it won't:

>>> addrs = [ '111111' ]
>>> xbmchost, xbmcusername, xbmcpassword  = addrs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: need more than 1 value to unpack

Don't worry: I'll fix it.

from mqttwarn.

sumnerboy12 avatar sumnerboy12 commented on August 13, 2024

I am on it now. Leave it with me, my mistake.
On 28/03/2014 8:40 pm, "JP Mens" [email protected] wrote:

Well, as you've probably guessed by now, it won't:

addrs = [ '111111' ]
xbmchost, xbmcusername, xbmcpassword = addrs
Traceback (most recent call last):
File "", line 1, in
ValueError: need more than 1 value to unpack

Don't worry: I'll fix it.

Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-38895051
.

from mqttwarn.

sumnerboy12 avatar sumnerboy12 commented on August 13, 2024

Unfortunately your fix still didn't work JP. I have just push a fix which I can confirm does work with no authentication. Apologies for letting this thru the cracks! f4075c1

from mqttwarn.

jpmens avatar jpmens commented on August 13, 2024

Please remove functions.py which you've comitted (erroneously?)

from mqttwarn.

sumnerboy12 avatar sumnerboy12 commented on August 13, 2024

Done. I am not having a good day.

from mqttwarn.

jfarcher avatar jfarcher commented on August 13, 2024

Apologies if this didn't work, it was late here and I thought I checked without passing correctly..

from mqttwarn.

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.