An open API service indexing awesome lists of open source software.

https://github.com/ovoshatchery/ovos-phal-plugin-email-commands

control mycroft by email
https://github.com/ovoshatchery/ovos-phal-plugin-email-commands

Last synced: about 1 year ago
JSON representation

control mycroft by email

Awesome Lists containing this project

README

          

# Email Commands Skill

Control Mycroft by email

## About

Allows you to send commands to mycroft by email, inspired by [this blog post](https://medium.com/@thesanjeetc/want-to-control-something-with-siri-heres-how-bae98aceb586)

![](./gui.gif)


# Skill configuration

I did not use mycroft home backend for skill settings, it is irresponsible
to get your email credentials in there. Instead you need to edit mycroft.conf

This is a security measure, i will not change this behaviour

Add the following section to your [mycroft.conf](https://mycroft-ai.gitbook.io/docs/using-mycroft-ai/customizations/mycroft-conf)
```json

"email": {
"mail": "",
"password": "",
"address":"imap.gmail.com",
"port":993,
"folder":"inbox",
"time_between_checks":30,
"include_read": false,
"whitelist": ["thisemail@isallowed.com", "email@thatcansend.commands"]
}
```

only mail, password and whitelist are required, other parameters use the
defaults for gmail, if using a different provider you might need to change address and port

time_between_checks is in seconds, it is the time to sleep between checking
for new emails, the "lag" between a command and its execution

whitelist is a list of emails allowed to send commands to mycroft, if the
sender is not in this list then the emails will be ignored

some uses cases, like using siri Notes, will mark emails as read, setting
"include_read" to true will process those emails, note that this will
execute ALL old emails on first run, it is strongly recommended that you
only set this flag if using a newly created folder

# Email configuration

You might need to change some settings in your email provider, for gmail you need to

- enable less secure apps https://myaccount.google.com/lesssecureapps
- enable imap https://mail.google.com/mail/u/1/?tab=mm#settings/fwdandpop

# Platform support

- :heavy_check_mark: - tested and confirmed working
- :x: - incompatible/non-functional
- :question: - untested
- :construction: - partial support

| platform | status | tag | version | last tested |
|:---------------:|:----------:|:-----:|:-------:|:-----------:|
| [Chatterbox](https://hellochatterbox.com) | :question: | dev | | never |
| [HolmesV](https://github.com/HelloChatterbox/HolmesV) | :question: | dev | | never |
| [LocalHive](https://github.com/JarbasHiveMind/LocalHive) | :question: | dev | | never |
| [Mycroft Mark1](https://github.com/MycroftAI/enclosure-mark1) | :question: | dev | | never |
| [Mycroft Mark2](https://github.com/MycroftAI/hardware-mycroft-mark-II) | :question: | dev | | never |
| [NeonGecko](https://neon.ai) | :question: | dev | | never |
| [OVOS](https://github.com/OpenVoiceOS) | :question: | dev | | never |
| [Picroft](https://github.com/MycroftAI/enclosure-picroft) | :question: | dev | | never |
| [Plasma Bigscreen](https://plasma-bigscreen.org/) | :question: | dev | | never |

- `tag` - link to github release / branch / commit
- `version` - link to release/commit of platform repo where this was tested

## Credits
- JarbasAl

## Category
**Configuration**

## Tags
#configuration