#sailfishos-push log for Monday, 2014-08-04

locusfhi13:21
tbrlo13:21
tbrI've found a way to service MQTT PING messages properly in python13:22
tbrhttps://gist.github.com/dm8tbr/b36c6afca8904d15027a13:23
locusfok13:25
locusfhavent tried paho yet13:25
tbrit's mostly compatible13:25
tbrwith the old (deprecated) python bindings13:25
tbrI plugged in an IPHB wakeup every 10s to make sure keepalives are serviced with at most 10s delay13:26
tbrand exactly that seems to happen and the server is happy13:26
tbrfor style points I should probably trim the keepalive timer by those 10s13:27
tbror maybe stretch it to 30s wakeup intervals and extend the general keepalive interval to something longer13:30
tbrls14:17
tbrok, I've pushed out a cleaned up version14:17
tbrbeware, you'll have to edit mqtt_topic_base to match the right user name14:18
tbrI also need to package up paho...14:20
tbrwith the iphb patch14:21
tbrwhich works lovely for me, I now get instant notifications, even if the device "sleeps"14:23
kimmolioo14:36
tbrI also found the ubuntu-touch repositories, will need to look at what they did and if I can learn something from that15:04
tbrthey decided against MQTT for weird reasons15:05
kimmolii did read g+15:42
locusfwhats on g+?15:45
locusfoh tbrs post15:47
tbryeah15:48
tbrI hoped to get something going, but they don't use their mailing list, at all.15:48
locusftbr: is paho packaged or should I just install from sources?16:01
locusftbr: already dl'd sources and python installed16:03
tbrlocusf: I currently have it from sources16:03
tbrpackaging is on my list16:03
tbrI should upload my 'fork' though16:04
tbras it has the iphb patches16:04
locusftbr: ok16:06
tbrgit remote remove origin; git remote add origin https://github.com/dm8tbr/org.eclipse.paho.mqtt.python.git16:10
tbrand maybe some other incantation16:10
locusfiphb needs to be installed?16:11
tbrI'd be very surprised if it isn't :)16:11
tbras it's part of the platform16:11
tbrI needed to set: git branch --set-upstream-to=origin/master master16:14
locusfhmm I don't receive even test notifications now even though I have changed topic16:15
locusfany changes needed to the perl side?16:15
tbrmight be something gone wrong :/16:20
locusfmqtt_notify_topic = sailfish/locusf/irssi/notifications16:21
tbrah, no16:22
tbrsailfish/locusf/16:22
locusfoh really?16:22
tbrwait16:22
tbron the irssi side you're correct16:23
tbrand that should not change16:23
locusf/set mqtt_notify_topic sailfish/locusf/irssi ?16:23
tbrif you're not getting anything, then I screwed up the jolla side code16:23
tbrirssi is fine16:23
tbrI won't change anything there16:23
tbrhave you set "mqtt_topic_base" to sailfish/locusf/?16:24
tbrin the python script16:24
locusfnope, its already set as "sailfish/"+mqtt_user16:24
tbryeah, that won't work for you16:25
tbras your user is locusf_read16:25
locusfoh ok16:25
tbrsorry, the user/client structure is a bit in flux as I'm trying different things to figure out a good approach for the platform notifications16:26
tbrmy device currently has an account name == imei and a client id sailfish_$IMEI16:27
tbras I'm considering the IMEI as the unique device identifier16:27
locusfhmm my irssi froze for a long time just now for just testing16:29
tbrthat happens if mosqitto_pub stalls :/16:29
tbrcan you please set your timeout to 210s? your client goes amock and reconnects all the time16:30
tbrah no timeout is right16:30
tbrit's something else16:30
locusfsorry, leading / missing16:31
tbrlocusf: yeah, that looks good16:32
tbryour publish from irssi looks wrong though: 1407169924: Received PUBLISH from irssi_30783 (d0, q2, r0, m1, 'sailfish/locusf/irssi', ... (62 bytes))16:32
tbrshould add /notifications16:32
locusfadded now16:33
tbrlocusf: testing :)16:33
locusfworked16:33
tbr\o/16:33
locusfcame to my wrist too, this is hi-tech :)16:33
tbrI used to have that on the N950 :D16:34
tbrcurrently no metawatch client for sailfish :(16:34
tbrIt's pretty awesome as you never have to do more than glance at your wrist to see if it's anything important on IRC16:35
locusfindeed, thanks for this :)16:35
tbrmy pleasure16:35
tbrshould put this on top of my jobsearch resume: has designed a irssi push notification system for the jolla16:36
tbrI'm sure that will get me a job, instantly. ;)16:36
locusfheheheh :)16:37
tbralthough I applied for two ARM ltd. jobs in Oulu where they would probably appreciate "IoT protocol understanding and familiarity"16:37
tbrI've so far only seen _one_ client reconnect, and during that also my ssh connection to the jolla was reset. So it was probably some connman thing.16:45
tbras far as irssi goes, this is now probably feature complete16:46
tbrunless so far I was never in full sleep and full sleep somehow also resets TCP connections. :-/16:47
tbrhrm, my jolla seems to drop off the network and when it wakes up it's not connected and doesn't reconnect. although it sort of shows that it's connected.18:09
tbrI think it's IPv6 related18:10
tbrtime to force an ipv6 connection to the push server18:11
tbrmeh connman problems18:39
tbronly ipv6 local network connection18:39
kimmoliconnman rulez19:15
tbrwell, network-damager seems to have it's own share of problems with this network...19:16
locusfyou got ipv6 local network?19:16
tbrwas fun when I made it crash _twice_ in a day and both were critical bugs with rush fix19:17
tbryes, RA based19:17
tbrbackhaul is sadly a tunnel, as sonera sucks donkey testicles and still doesn't offer IPv619:17
locusfhmm a lot of hilights from twitter reconnect, causing irssi to deadlock19:28
locusfbitlbee + twitter19:28
tbroh, you probably ran into the in-flight limit :(19:41
tbrif you want to avoid those deadlocks, the easiest for now is to set QoS to 019:41
tbrthe problem is that mosquitto_pub doesn't return immediately but stalls if r=2 and it can't get the message ACKd19:42
tbrI was also considering to try running it as "nohup mosquitto_pub ..." but am a bit afraid to build a security hole where someone could run arbitrary shell code through hilights19:43
tbrI wish the MQTT for perl wasn't such a load of crap19:44
tbrbtw: to get you guys a bit worked up: AFAICT you can put binary data in MQTT messages AND they can be quite big too19:51
locusfokay :/19:58
kimmolitbr i was just wondering about binary data20:31
tbrmessage size is a server side setting20:33
kimmolihmm ok. just wondering to send 128x64 mono bitmap created on server, and display it on toholed20:33
tbrthat shouldn't be a problem20:34
kimmolithat is just about 100 bytes20:34
kimmoliwe noticed few days ago that imagemagick is dropped the basic bitmap header out20:34
tbrcurrently I don't have one set, so it might be 256M limit ;)20:35
kimmoliok.20:35
kimmolii use that BITMAPINFOHEADER in toholed /yes i made my own parser/. imagemagick now dofeault to V4, and allos to use V2 and V3 but not BITMAPINFOHEADER anymore. at least i didnt find a way (workaround DIB + add header manually)20:38
tbrwell if you have same size/parameters every time you can just have raw bitmap and prepend the header yourself20:39
tbrbtw: when mentioning binary capabilities I was thinking of the epaper toh, pushing things to that would be cool too.20:40
kimmoliyep20:41
kimmolinow i use shareui plugin https://github.com/kimmoli/toheink-shareui to convert image to dithered mono, and fuse https://github.com/kimmoli/epd-eink-jolla / xpd repar stuff to send it to TOH20:43
kimmoliimage thing. nothing else done yet.20:43
kimmolihave to try the partial update still20:43
kimmoliam i missing some keys from my keyboard or wut?20:44
tbreither my debian install starts to suck or the keyboard on my thinkpad is wearing out. I also have missed keys etc recently.20:45
kimmolior i have just used to qtcreator autocomplete :)20:49
kimmolibut now gn20:49

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!