Comments (16)
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.
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.
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.
I've figured that one out now too and is all part of the pull request... seems to work OK.
from mqttwarn.
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.
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.
Great stuff - thanks very much!
from mqttwarn.
Merged #50
from mqttwarn.
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.
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.
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.
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 unpackDon't worry: I'll fix it.
Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-38895051
.
from mqttwarn.
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.
Please remove functions.py which you've comitted (erroneously?)
from mqttwarn.
Done. I am not having a good day.
from mqttwarn.
Apologies if this didn't work, it was late here and I thought I checked without passing correctly..
from mqttwarn.
Related Issues (20)
- Remove `gss` service plugin in favor of `gss2`? HOT 3
- mqttwarn 0.34.0 sdist size change HOT 1
- mqttwarn nine years ago HOT 6
- Absorb mqttshark? HOT 5
- Documentation on Image-based installation is wrong HOT 3
- [Nextcloud] Verify thoroughness of implementation over Apprise
- [ntfy] Bug with notification messages longer than 76 characters HOT 5
- Improve ntfy documentation on authorization and/or add authorization header HOT 4
- Docker issue with pushbullet (mqttwarn-full) HOT 8
- [ntfy] Error if message contains newline character `\n` HOT 14
- [pushover] unable to decode base64 encoded image
- Nightly to latest docker build - what is the trigger for this? HOT 5
- Object of type bytes is not JSON serializable HOT 5
- Use `dynamic-imports` for loading Python code at runtime
- Pull effective recipient from message payload HOT 3
- Messages directed only to the first target when a format function is defined HOT 2
- TLS issues with mosquitto-2.0.18 HOT 6
- mqttwarn does not like py39-paho-mqtt-2.0.0 HOT 12
- ntfy title results in ''=?utf-8?q?' prefix? HOT 1
- Republish part of json to influxdb or mqtt HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mqttwarn.