*** kimmoli has quit IRC | 07:28 | |
*** kimmoli has joined #sailfishos-push | 07:28 | |
kimmoli | ah, time to harness mqtt to irssi notifications. | 07:54 |
---|---|---|
tbr | :> | 08:02 |
*** lbt_away has joined #sailfishos-push | 08:03 | |
*** lbt_away has joined #sailfishos-push | 08:03 | |
*** Stskeepz has joined #sailfishos-push | 08:05 | |
*** lbt_ has quit IRC | 08:10 | |
*** Stskeeps has quit IRC | 08:10 | |
kimmoli | tbr: help | 08:28 |
kimmoli | i tried to subscribe from cli and send from another. nothing goes through | 08:29 |
tbr | kimmoli: you have reached the push notification helpdesk, how may we be of disservice? | 08:29 |
tbr | that's usually an ACL problem | 08:29 |
kimmoli | familiar TLA | 08:30 |
tbr | which means that either you wrote where you shouldn't or you tried to read from where you shouldn't | 08:30 |
tbr | both will fail silently | 08:30 |
kimmoli | -t sailfish/kimmoli/# | 08:31 |
kimmoli | user is my _read user, it authenticats ok | 08:31 |
kimmoli | i publish to sailfish/kimmoli/test | 08:31 |
tbr | user kimmoli_read | 08:32 |
tbr | topic read sailfish/kimmoli/# | 08:32 |
tbr | so that's the ACL for that user | 08:32 |
kimmoli | fuuu.. | 08:32 |
tbr | pebkac? | 08:32 |
kimmoli | i didn't fix my memos... it still says the saifish | 08:32 |
tbr | :D | 08:32 |
* kimmoli HUP helpdesk | 08:33 | |
tbr | at least I didn't need to dig into things and strace the server... | 08:33 |
tbr | yes, I did that once due to an acl problem and I should have known better | 08:34 |
kimmoli | now i edited my test-commands | 08:35 |
kimmoli | so hopefully no need to debug saifish anymore | 08:35 |
kimmoli | tbr: Test: | 08:45 |
kimmoli | moo! | 08:45 |
tbr | kimmoli: meeee | 08:45 |
tbr | you can also use /mqtt-test | 08:46 |
kimmoli | that i used, it said moo! | 08:46 |
tbr | yes | 08:46 |
tbr | looks good then | 08:46 |
kimmoli | after i installed mosquitto-clients to my server :) | 08:46 |
tbr | btw: I would recommend to keep QoS at 0 on the server side | 08:46 |
tbr | else sometimes the mqtt sender tool will block and lock up irssi | 08:47 |
kimmoli | ah ok | 08:47 |
tbr | could be worked around with nohup or such | 08:47 |
kimmoli | y. now first testing to hook this to windows and notifu | 08:48 |
tbr | if you send notifications that are not from irssi, keep in mind that the code expects one new-line in the message | 08:50 |
tbr | it will split that into the two notification parts | 08:51 |
kimmoli | the example for jolla? | 08:55 |
tbr | yes | 09:02 |
kimmoli | kimmoli: test | 09:08 |
kimmoli | ah öh | 09:09 |
kimmoli | subscribe topic has user, and i have _read there. | 09:09 |
kimmoli | tbr: http://pastebin.com/0UtGteSx | 09:15 |
tbr | that looks interesting | 09:17 |
tbr | are you using my patched lib paho? | 09:17 |
tbr | or upstream? | 09:18 |
kimmoli | öö | 09:18 |
tbr | probably upstream, as mine had sailfish patches | 09:18 |
kimmoli | not you patched one. | 09:18 |
tbr | maybe they changed something then | 09:19 |
tbr | I suspect they changed payload to a byte object | 09:20 |
tbr | which makes sense as it can contain arbitrary binary data | 09:20 |
tbr | at least AFAIU | 09:20 |
kimmoli | ah. | 09:20 |
kimmoli | have you exposed your patched pahu? | 09:20 |
tbr | yes, on github | 09:21 |
kimmoli | aa, fount | 09:21 |
tbr | you could just roll back to the checkout from before I patched it | 09:21 |
*** lbt_away is now known as lbt | 09:25 | |
kimmoli | this is now on windows | 09:26 |
kimmoli | and aug 1 is the last here. | 09:27 |
kimmoli | 300fcbd | 09:27 |
tbr | yes | 09:29 |
tbr | maybe it's a difference with windows? | 09:29 |
tbr | or you are using python 3.x | 09:30 |
kimmoli | 3.2.3 | 09:31 |
tbr | might be that then | 09:31 |
tbr | _could_ be as easy as putting an explicit string conversion there | 09:31 |
kimmoli | y. learning python :p | 09:32 |
kimmoli | str() did it | 09:33 |
tbr | yay | 09:34 |
tbr | you had an example already on that line ;) | 09:34 |
kimmoli | äh. | 10:06 |
kimmoli | kimmoli: koe | 10:06 |
kimmoli | äh | 10:06 |
kimmoli | tbr: https://app.younited.com/?shareObject=07fdb1d8-e3fa-3634-9c73-9f693f0a7a92 | 10:09 |
tbr | nice | 10:18 |
tbr | should probably do that for my linux too. there it should be only minimal changes as it uses dbus xdesktop notifications too | 10:19 |
kimmoli | grr.. | 10:22 |
kimmoli | to get äöå working replaced str() with .decode('utf-8') | 10:23 |
kimmoli | the \n worked fine wit notifu, now it gets converted somehow and i see only first line | 10:23 |
kimmoli | but i'll split it | 10:25 |
kimmoli | grr ype str doesn't support the buffer API | 10:27 |
kimmoli | ok, can someone mention me for testing that too? | 10:33 |
tbr | kimmoli: bla | 10:48 |
kimmoli | \o | 10:49 |
kimmoli | here windows version QH http://pastebin.com/8TRv4v3S | 10:49 |
tbr | interesting you had to explicitly set utf-8 as python uses utf-8 by default | 10:49 |
kimmoli | windows? | 10:49 |
kimmoli | just with str() -> https://app.younited.com/?shareObject=a81b167b-afb3-4856-41f8-20dd9cd97a35 | 10:50 |
kimmoli | btw, shouldn't this be >> ?? | 10:52 |
kimmoli | https://github.com/dm8tbr/irssi-mqtt-sailfish/blame/master/README.md#L16 | 10:52 |
tbr | possibly windows, yeah | 10:52 |
tbr | yes, you're right | 10:53 |
kimmoli | then that jolla thingie | 10:54 |
tbr | pushed the readme fixup | 10:56 |
kimmoli | didn't had time to mention the command formatting looks-bad | 10:59 |
kimmoli | tbr: windows@home + jolla done | 11:06 |
tbr | :) | 11:07 |
tbr | this gnome-shell keeps annoying me. I think I need to switch back to 'awesome' again | 11:08 |
kimmoli | urf windows@office had python 2.x | 11:38 |
kimmoli | it kept publishing to receiver_state topic | 11:39 |
tbr | the receiver state should be iffed anyway, it's only needed if there is a will | 11:43 |
kimmoli | ok | 11:45 |
kimmoli | works now | 11:52 |
kimmoli | copying the x-nemo-...conf to correct place, and it plings now | 11:52 |
tbr | :) | 12:03 |
tbr | ah, yes, did I cover that in the readme? | 12:03 |
kimmoli | nope | 12:04 |
tbr | if not then I should fix this | 12:04 |
tbr | dammit, will fix. thanks | 12:04 |
kimmoli | add the formatting to echos | 12:04 |
kimmoli | started script in screen on jolla seems to work fine | 12:07 |
tbr | formatting? | 12:08 |
kimmoli | they show oneliner To set up: echo #myusername# > ~/.mqtt_auth echo #password# >> ~/.mqtt_auth | 12:09 |
tbr | oh, right | 12:09 |
kimmoli | nitpicking | 12:10 |
kimmoli | adding import winsound ; winsound.MessageBeep() to get audible beebs on desktop | 12:20 |
kimmoli | then ubuntu@bedroom. i think i use windows script and just notify-send | 12:22 |
tbr | why? just use the jolla script, it is almost right | 12:22 |
kimmoli | okay, will try | 12:23 |
tbr | the x-maemo stuff probably just needs slight adjustment | 12:24 |
kimmoli | hmm.. seems not logged in over ssh for a while Last login: Sat Jan 26 22:42:49 2013 from raspberrypi | 12:28 |
kimmoli | pöh. without any changes,.got a messagebox with ok,cancel | 12:38 |
*** kimmoli has quit IRC | 12:43 | |
tbr | :) | 12:43 |
*** kimmoli has joined #sailfishos-push | 13:04 | |
kimmoli | oo, survived togling from wifi to 3g | 14:17 |
kimmoli | but not the notification i expected https://app.younited.com/?shareObject=eef06017-86a1-7124-b877-96859aba93bf | 14:21 |
tbr | yes, it will survive | 14:32 |
kimmoli | if i use notify-send, it shows it as notification in topright corner | 14:44 |
kimmoli | not a messagebox. | 14:44 |
tbr | yeah, you can get the same if you edit the dbus message | 14:46 |
kimmoli | just clean it up was solution for ubuntu.. http://pastebin.com/9cg04C67 | 21:22 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!