Files
IoTManager/doc/2.txt
Dmitry Borisenko 2e8ea582d2 reverting version
2020-09-02 22:34:49 +03:00

85 lines
6.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# В этой инструкции будет описано как с esp отправлять email и push
# Часть 1. Привязать email и pushbullet к сайту pushingbox
### 1. Необходимо перейти на сайт: [pushingbox](https://www.pushingbox.com/)
### 2. Войти с помощью google
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_1.png)
### 3. Перейти в мои сервисы и добавить новый сервис
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_2.png)
### 4. Нас интересуют два сервиса email и pushbullet
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_4%2B.png)
### 5. Выбираем сначало сервис для отправки email. В окно `Name of your email configuration` - вводим слово "email". В окно `Email address` - вводим ваш email адрес. жмем submit
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_5.png)
manager_modules_firmware/blob/master/push_instruction/Screenshot_6.png)
### 6.1 Привязываем pushbullet. Переходим на сайт [pushbullet.com](https://www.pushbullet.com/)
### 6.2 Входим с гуглом или фейсбуком
### 6.3 Идем в настройки
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_7.png)
### 6.4 Создаем токен
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_8.png)
### 6.5 Идем опять в сервисы и теперь выбираем сервис pushbullet [pushingbox.com/services](https://www.pushingbox.com/services.php) нажимаем add service
### Берем токен, и вставляем его в окно Access token.
### Окно Device token (optional) оставляем пустым.
### В окно Name of your Pushbullet configuration пишем слово "push".
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_6.png)
### 7. Теперь наш email и pushbullet привязаны к pushingbox. Далее можно скачать приложение pushbullet на телефон и войти с гуглом или фейсбуком сответственно с пунктом 6.3 этой инструкции
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_9.png)
# Часть 2. Создание сценариев отправки email
### 8.1. Сценарий для отправки email. Заходим в My Scenarios:
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_10.png)
### 8.2 Пишем слово email (это имя сценария отправки email) жмем add:
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_12.png)
### 8.3 Нажимаем add an action
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_14.png)
### 8.4 Выбираем наш email который мы зарегестрировали ранее и нажимаем Add an action with this service
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_11.png)
### 8.5 Делаем все как на скриншоте и жмем submit
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_15.png)
### 8.6 Возвращаемся на мои сценарии
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_17.png)
### 8.7 Вставляем токен в веб интерфейс esp
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_18.png)
# Часть 3. Создание сценариев отправки push
### 9.1. Сценарий для отправки push. Заходим в My Scenarios:
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_10.png)
### 9.2 Пишем слово push (это имя сценария отправки email) жмем add:
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_19.png)
### 9.3 Нажимаем add an action
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_20.png)
### 9.4 Выбираем наш pushbullet который мы зарегестрировали ранее и нажимаем Add an action with this service
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_11.png)
### 9.5 Делаем все как на скриншоте и жмем submit
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_15.png)
### 9.6 Возвращаемся на мои сценарии
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_21.png)
### 9.7 Вставляем токен в веб интерфейс esp
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_18.png)
# Часть 4. Итог
При создании такой конфигурации как на картинке:
`button 1 na Отправить#push Push 0 1`
`button1 = 1`
`push внимание кнопка#нажата`
`end`
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_22.png)
Если мы введем токен для email то будут приходить email
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_17.png)
Если для push то будут приходить push в pushbullet
![](https://github.com/IoTManagerProject/Wiki/tree/master/pictures/push_instruction/Screenshot_21.png)
Способ описанный в данной инструкции более сложный в настройке но зато очень надежный.