ChanServ changed the topic of #picolisp to: PicoLisp language | Channel Log: https://irclog.whitequark.org/picolisp/ | Picolisp latest found at http://www.software-lab.de/down.html | check also http://www.picolisp.com for more information
orivej has quit [Ping timeout: 248 seconds]
orivej has joined #picolisp
aw- has joined #picolisp
f8l has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 268 seconds]
f8l has joined #picolisp
orivej has joined #picolisp
aw- has quit [Ping timeout: 248 seconds]
aw- has joined #picolisp
anjaa_ has joined #picolisp
anjaa has quit [*.net *.split]
orivej has quit [Ping timeout: 248 seconds]
<mario-goulart> Regenaxer: I seem to remember you have something in picolisp to interface with whatsapp. If my recollection is correct, would you have any pointers for me?
<Regenaxer> hmm, I called that python package in Debian, but it was extremely instable, so I don't use it any more
<Regenaxer> I used it here in this irc client as a special "channel"
<mario-goulart> Ah, ok.
<Regenaxer> Let me dig in old versions
<mario-goulart> Is the python thing yowsup?
<Regenaxer> yes! This was it
<Regenaxer> it is a mess
<Regenaxer> very buggy, and a very strange cli
<mario-goulart> IIRC, the cli is just a "demo".
<Regenaxer> I see
<Regenaxer> I did things like (when (setq *Wap (
<Regenaxer> oops
<Regenaxer> (pipe (exec "yowsup-cli" "demos" "-l" (car *Wazap) "-y"))
<Regenaxer> As an idea: https://pastebin.com/ftQhwjKK
<Regenaxer> But probably the API changed meanwhile
<Regenaxer> The last version I used it was Dec 2015
<cess11> Probably quite hard to keep up with a WA-lib, since it needs to store messages locally and whatnot.
<cess11> Unless there's a curl:able API I would probably look at more free Signal implementations.
<Regenaxer> I think yowsup does not store messages, but WhatsApp itself changes frequently I believe
<Regenaxer> The point is existing whatsapp groups and contacts
<cess11> Yes, part of the 'tech startup' profile, not having a finished and commercially viable product.
<cess11> Instead they sap venture capital.
<cess11> I think it needs to at least handle messages somehow, isn't it end-to-end-encrypted message bodies?
<Regenaxer> yep
<Regenaxer> yowsup also handles documents like images etc.
<Regenaxer> Worked somehow
<Regenaxer> but crashed all the time
<Regenaxer> I never used another API that was such frustrating
<Regenaxer> The
<Regenaxer> cli is not really scriptable, uses a strange command system
<Regenaxer> I rewrote parts of the Python lib to make it callable somehow
<Regenaxer> The project seems to be abandoned anyway: https://github.com/tgalal/yowsup/issues/2079
<Regenaxer> Another problem I encountered was a mess of Python dependencies which was almost unmanageable. I ended up with a inconsistent Python installation
<Regenaxer> I'm still really annoyed when I think how much time I wasted on yowsup
<Regenaxer> bbl
<cess11> Sounds awful.
<cess11> Had similar experience with a PHP Slack client.
<cess11> twidge is pretty good though.
anjaa_ is now known as anjaa
<Regenaxer> yes, twidge *was* good ... unfortunately it seems to be missing from Debian Buster :(
<Regenaxer> To pil GUI users: With 18.2.2 'psh' allows to connect to an existing GUI session (not just to a new session from the top level server process)
orivej has joined #picolisp
<mario-goulart> Thanks Regenaxer!
<Regenaxer> :)
orivej has quit [Ping timeout: 256 seconds]
<cess11> Oh, nice.
<Regenaxer> I missed that feature all the time, but thought it is difficult to achieve
<Regenaxer> but in fact it was trivial, just pass the session id
<Regenaxer> < (pack "!psh?" (pw) "&" (in '("tty") (line T)))
<Regenaxer> ---
<Regenaxer> > (pack (opt) "!psh?" (pw) "&" (in '("tty") (line T)))
<Regenaxer> To make it practically usable, each session now prints the port and session ID to stderr (normally its logfile)
<Regenaxer> Looks like this:
<Regenaxer> 16027 = 52919 71851413775859261~
<Regenaxer> So I just copy/paste it to the command line:
<Regenaxer> $ psh 52919 71851413775859261~
<Regenaxer> 16027 in the beginning of the log line is the PID
aw- has quit [Quit: Leaving.]
<cess11> Great!
orivej has joined #picolisp
orivej has quit [Ping timeout: 256 seconds]
f8l has quit [Remote host closed the connection]
f8l has joined #picolisp
f8l has quit [Remote host closed the connection]
f8l has joined #picolisp
orivej has joined #picolisp
<rick42> hello!
<rick42> sorry for be away so long
<rick42> i hope everyone is doing well