![]() |
Reading SMS from the terminal? - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139) +---- Thread: Reading SMS from the terminal? (/showthread.php?tid=15107) |
Reading SMS from the terminal? - SocialNetworkingWasAMistake - 10-16-2021 It's annoying to have to find my phone just so I can get the code so I can login to a given site. I've got SSH enabled, is there a way for me to view texts or at least notifications from there? RE: Reading SMS from the terminal? - lacriz - 10-16-2021 I am pretty sure somebody posted the location of the text files that chatty displays (cannot find it right now). Something like a .var/chatty/... directory? You should be able to find out which files the chatty process loads, e.g. using 'ps'. Hope this helps lacriz RE: Reading SMS from the terminal? - SocialNetworkingWasAMistake - 10-16-2021 (10-16-2021, 08:12 AM)lacriz Wrote: I am pretty sure somebody posted the location of the text files that chatty displays (cannot find it right now). Something like a .var/chatty/... directory? Looking at lsof it looks like the file I'm looking for is /home/mobian/.purple/chatty/db/chatty-history.db so I guess I need to figure out some way to read an sqlite db from the terminal Edit: came up with this and threw it into my .zshrc, works great Code: alias txts="sqlite3 ~/.purple/chatty/db/chatty-history.db -box \"select datetime(messages.time, 'unixepoch') AS time, threads.alias AS contact, replace(messages.body, char(10), ' ¶ ') AS message from messages join threads on messages.thread_id=threads.id order by time desc;\" | less -S" RE: Reading SMS from the terminal? - zetabeta - 10-17-2021 you already got key issue but "wayvnc" could be useful as well. "xtigervncviewer" could be viewer program. https://danct12.github.io/VNC-on-PinePhone/ https://www.kirsle.net/vnc-server-for-pinephone RE: Reading SMS from the terminal? - ragreenburg - 10-18-2021 The README for Chatty specifically says how you can use Chatty over SSH. I personally haven't tried it but please do and let me know how it goes! https://source.puri.sm/Librem5/chatty RE: Reading SMS from the terminal? - SocialNetworkingWasAMistake - 10-18-2021 (10-18-2021, 12:41 PM)ragreenburg Wrote: The README for Chatty specifically says how you can use Chatty over SSH. I personally haven't tried it but please do and let me know how it goes!That's pretty cool. It works aside from the fact I can't drag the window around unless I right click the handle and select 'move' RE: Reading SMS from the terminal? - ragreenburg - 10-19-2021 (10-18-2021, 03:11 PM)SocialNetworkingWasAMistake Wrote:(10-18-2021, 12:41 PM)ragreenburg Wrote: The README for Chatty specifically says how you can use Chatty over SSH. I personally haven't tried it but please do and let me know how it goes!That's pretty cool. It works aside from the fact I can't drag the window around unless I right click the handle and select 'move' Nice, better than nothing! My work network blocks SSHing so I haven't tried using it yet. Glad to know it works though! |