-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a915610
Showing
14 changed files
with
1,011 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
custom: ['https://www.paypal.com/donate/?hosted_button_id=QF2MBMQZP4V2J'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 Carlos Cuezva | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# Node-Red: Sync Teslamate with Telegram and ABRP | ||
|
||
![GitHub release (latest by date)](https://img.shields.io/github/v/release/CarlosCuezva/Sync-Teslamate-with-Telegram-and-ABRP) | ||
![GitHub Repo stars](https://img.shields.io/github/stars/CarlosCuezva/Sync-Teslamate-with-Telegram-and-ABRP) | ||
![GitHub](https://img.shields.io/github/license/CarlosCuezva/Sync-Teslamate-with-Telegram-and-ABRP) | ||
[![](https://img.shields.io/badge/Donate-PayPal-ff69b4.svg)](https://www.paypal.com/donate?hosted_button_id=QF2MBMQZP4V2J) | ||
|
||
![Resumen general](screenshots/capture_1.jpeg) | ||
|
||
--- | ||
|
||
## Instalación | ||
|
||
Para el correcto funcionamiento del Flow tienes que tener los siguientes módulos instalados. | ||
|
||
```bash | ||
node-red-contrib-telegrambot | ||
``` | ||
|
||
### ¿Cómo instalo el módulo requerido? | ||
|
||
Dentro de Node-Red pincha sobre la hamburguesa situada arriba a la derecha, en el menú que se te despliega, selecciona `Manage Palette`. | ||
|
||
Se abrirá una nueva pantalla, en ella seleccionamos la opción `Palette` en el menú de la izquierda sino está seleccionada ya y a continuación en el menú superior seleccionamos `Install`. | ||
|
||
Ahora en el cuadro de búsqueda, introducir el nombre del módulo necesario. Hay que fijarse bien porque aparecerán varios resultados. | ||
|
||
![](./screenshots/1.png) | ||
|
||
Una vez instalado el módulo nos pedirá reiniciar completamente Node-Red. | ||
|
||
### Importar el Flow | ||
|
||
Dentro de Node-Red pincha sobre la hamburguesa situada arriba a la derecha, en el menú que se te despliega, selecciona `Import`. | ||
|
||
![](screenshots/2.png) | ||
|
||
Se abrirá una nueva pantalla, en ella seleccionamos la opción `select a file to import`, ahora tendremos que buscar el archivo `tesla.json` que se encuentra dentro del directorio "flows". Tras esto pinchamos sobre `Import`. | ||
|
||
Una vez importado, tendrás que proceder a configurar MQTT, Telegram y ABRP. | ||
|
||
### Configurar nodo de MQTT | ||
|
||
Dentro de Node-Red pinchamos en el icono con forma de rueda dentada. Al pincharlo se nos despliega un listado de nodos, tenemos que hacer doble clic sobre el que se llama `mosquitto`. | ||
|
||
![](screenshots/3.png) | ||
|
||
En la nueva ventana que se nos abre, tenemos que ajustar los valores `Server` y `Port` correspondientes a nuestro servidor MQTT. Por defecto, el puerto es el 1883. | ||
|
||
![](screenshots/4.png) | ||
|
||
Una vez configurados, pulsamos sobre **Update**. | ||
|
||
### Configurar nodo de Telegram | ||
|
||
Dentro de Node-Red pinchamos en el icono con forma de rueda dentada. Al pincharlo se nos despliega un listado de nodos, tenemos que hacer doble clic sobre el que se llama `pmb_tesla_bot`. | ||
|
||
![](screenshots/5.png) | ||
|
||
En la nueva ventana que se nos abre, tenemos que ajustar el valor del campo `Token`. | ||
|
||
![](screenshots/6.png) | ||
|
||
Una vez configurados, pulsamos sobre **Update**. | ||
|
||
### Configurar ABRP y Telegram | ||
|
||
Por último queda configurar la conexión con ABRP y el chatID de Telegram para una mayor seguridad. | ||
|
||
Dentro del flow propiamente dicho, buscamos la función llamada `variables` en el apartado `MQTT to Telegram`. | ||
|
||
![Alt text](screenshots/7.png) | ||
|
||
Haciendo doble clic sobre él se nos abrirá una nueva ventana de texto. Ahora deberémos cambiar los valores de las variables `telegram_chatId`, `abrp_user_token` y `abrp_car_model`. La variable `abrp_api_key` se puede quedar con el valor que tiene. | ||
|
||
![](screenshots/8.png) | ||
|
||
## ¿Me invitas a un café? | ||
|
||
Si te gusta mi trabajo y quieres apoyarme, puedes invitarme a un café ☕️, ¡te lo agradeceré mucho! | ||
|
||
Tu apoyo es importante para seguir mejorando este tipo de contenidos. | ||
|
||
¡Gracias! | ||
|
||
[![](https://img.shields.io/badge/Donate-PayPal-ff69b4.svg)](https://www.paypal.com/donate?hosted_button_id=QF2MBMQZP4V2J) | ||
|
||
## Créditos | ||
|
||
- Autor: Carlos Cuezva | ||
|
||
## Licencia | ||
|
||
Distribuido bajo [licencia MIT](./LICENSE) |
Oops, something went wrong.