cli icon indicating copy to clipboard operation
cli copied to clipboard

`treehouses message hangouts sendto`

Open warthog16 opened this issue 5 years ago • 2 comments

fixes #1755 To test message hangouts sendto: First login to your Hangouts account in the /cli directory, ./cli.sh message hangouts login follow the instructions to login the page to get the oauth cookies from will have 'one moment please' and a loading sign you will need to already have a conversation invite sent and have an open conversation on Google Hangouts to send a message to a user, make sure anyone you are sending to is already in your Google Hangouts conversations press ctrl-e to exit the Hangups interface on your terminal then find the log file for hangups on your device in your cache: from your home directory, cd /root/.cache/hangups/log and vim hangups.log, then search for conversation_id and find the id for the conversation you want to send a message to by checking other information about the conversation like the fallback name of the user to send a message to that conversation, use ./cli.sh message hangouts sendto <conv-id> <message> in the cli directory

warthog16 avatar Aug 06 '20 00:08 warthog16

root@treehouses:/home/pi/cli# ./cli.sh message hangouts sendto "UgwS01qKZO8wB4rBiGd4AaABAQ" "test"
Cloning into '/root/cli/templates/hangups'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 4138 (delta 4), reused 11 (delta 3), pack-reused 4122
Receiving objects: 100% (4138/4138), 2.18 MiB | 4.07 MiB/s, done.
Resolving deltas: 100% (2886/2886), done.
root@treehouses:/home/pi/cli#

Works good for me

fankaiyuan avatar Aug 06 '20 03:08 fankaiyuan

Error message

python3: can't open file '/root/cli/templates/hangups/examples/send_message.py': [Errno 2] No such file or directory
Thanks for the message!
root@treehouses:~/cli# cd /root/cli/templates/hangups/examples
-bash: cd: /root/cli/templates/hangups/examples: No such file or directory
root@treehouses:~/cli# cd
root@treehouses:~# cd /root/cli/templates/hangups/examples
-bash: cd: /root/cli/templates/hangups/examples: No such file or directory
root@treehouses:~# cd /root/cli/templates
root@treehouses:~/cli/templates# ls
blocker  bluetooth  gpio-button.py  gpio-button.service  hosts  network  rc.local  reboot-needed.sh

sarahrams avatar Aug 12 '20 23:08 sarahrams