miércoles, 7 de julio de 2021

Convertir El Xiaomi HUB Gateway DGNWG05LM (Media Markt) en OpenWRT+Zigbee2mqtt

 El HUB es el mismo que a fecha de hoy viene en el KIT que Vende Media Markt:

1452506 Kit de seguridad doméstico - Xiaomi Mi Smart, Sensores de puerta y ventana, Inalámbrico, Control Hub

Con unas pocas soldaduras y un conversor TTL USB entramos, le abrimos el SSH y ya todo va mucho mas rapido...

https://openlumi.github.io/




Una alternativa magnifica para los que no podemos montar un receptor Zigbee sobre la propia Raspberry por trabajar sobre estancias remotas vía LAN-VPN.

Y luego enlazamos con OpenHab o Domoticz 

En breve os cuento estabilidad vs Gateway V2 (chinese version) y el Plugin propio de Domoticz que tengo montado hace años...


sábado, 1 de mayo de 2021

IVR para llamadas de control a trabajadores solitarios en base a calendario - Lone Worker Control by Phone Call (+ Margen Random) (MIDDLEWARE) -> IMAN SEGURIDAD

Tras el ya conocido sistema IVR de control mixto de Inicio y fines de Jornada + Control de inactividad que os presente en versión LLAMADA recibida (Para un rápido despliegue sin necesidad de instalar nada ni de necesidad de Smartphones):

 

https://inphower.blogspot.com/2017/01/ivr-para-controlar-servicios-de.html

 

Y en versión APP (También se desarrolló una versión vía WEB con Geo posicionamiento para no tener que instalar nada en Smartphone):

 

https://inphower.blogspot.com/2017/01/app-android-para-controlar-servicios-de.html

 

Hoy con un año de retraso, ( más que verificado porque esta implementado y funcionado sin problemas) os presento una versión LLAMADA SALIENTE (por lo tanto también de despliegue muy rápido)  más orientada únicamente al control de personas en solitario (No excluyente para temas de control laboral) , en este caso solo con llamadas para controlar que hay alguien respondiendo al teléfono y por lo tanto está en buenas condiciones y se encuentra en el lugar donde este el teléfono instalado (de ser un fijo) o móvil si controlamos personas que realizan rondas (de ser un móvil que se designa al servicio y no sale de las instalaciones).

 

El desarrollo se basa en una adaptación de un software libre de calendarios de acciones para adaptarlo a la generacion de llamadas a realizar automatizadas acordado con el cliente, esta llamada se genera en base al calendario con un margen de aleatoriedad también acordado, el robot realiza un total de X intentos de llamada y si la misma no es respondida genera una ausencia de respuesta que se representa en una alarma para que el operador actué según la operativa establecida. Toda la parte de automatismo de llamada es externa al software de CRA Manitou pero la parte de registro de las acciones del automatismo y/o la usencia de respuesta ya se gestiona como una señal más en Manitou.

 

Un video del resultado final vale más que mil palabras:




Y algunas imágenes de los controles y registros:





Tengo otro proyecto para el control de accesos a centros de coworking via IVR para la gestión de control de accesos y armados de los centros fuera de horario, si tengo tiempo para parame a publicarlo os lo enseñare en breve.

Saludos!

domingo, 24 de enero de 2021

UPS for RASPBERRY

I will show you another improvement with a UPS for RASPBERRY with control of power parameters by Domoticz (Voltage, Current, Power and % of battery) that will allow us to have power in case of power failure and that can also power the USB HDD of the  previous article

I notice that there are several types of UPS, after testing a pair finally the one that is giving an optimal performance is:

https://www.waveshare.com/wiki/UPS_HAT

You can also control the electronic parameters of it and have the information passing it through scripts to Domoticz.


Finally, just add that there is another battery powered model for Raspberry that also incorporates RTC (Clock):

https://wiki.52pi.com/index.php/UPS_(With_RTC_%26_Coulometer)_For_Raspberry_Pi_SKU:_EP-0118

The drawback is that I only see usefulness for working with Raspberry in mobility projects since once the batteries are charged to 100% and the power supply is stable for a few hours, it cuts the battery charge and therefore the power supply to the Raspberry so it is not feasible for installations where we want to use said batteries as a UPS system for cases of sporadic power outages. Even so, there is the possibility of cutting the load daily for 5 minutes to force the circuit to never cut off the power supply and therefore the power to the Raspberry.


https://www.youtube.com/watch?v=SA00KE-7wHw&lc=UgxgZZvnrr_mTLmBy2R4AaABAg.960_c0UlAaj9IkCREuRLnI&feature=em-comments

domingo, 17 de enero de 2021

RaspberryPi + Domoticz + USB HDD to Solve SD life expectancy

After 5 years using Domoticz on a Raspberry in different homes, I have found that the SD cards with this type of server end up being corrupted, to avoid this problematic is common the generation of backups from time to time so when comes the day it stops working we can clone the SD from the image that we extracted in the last backup. 

As a solution to this problem we have the use of an HDD either mechanical or SSD, many of these have dropped in price then I have considered that it was a good improvement to the system,

Down I am attaching a link with which you can clone the SD to a HDD connected by USB, plus some points to keep in mind:



- The HDD must be externally powered so that when the Raspberry boots the HDD is already on to start the boot sequence, there are SATA cables with external power supply or USB HUBS with this feature as well.

- You must activate the option in the Raspberry to boot from USB and this is done by recording an SD for that matter.

https://www.makeuseof.com/tag/make-raspberry-pi-3-boot-usb/

In a next article I will show you another improvement with a UPS for RASPBERRY with control of power parameters by Domoticz (Voltage, Current, Power and % of battery) that will allow us to have power in case of power failure and that can also power the USB HDD as well.


P.D. - Maybe if after all the Raspberry not boot with the new HDD te next step is  to verify  PARTUUID for the root partition is correct in /boot/cmdline.txt and /etc/fstab and correct or disable UUID.

domingo, 3 de enero de 2021

Apple Watch option with Roller Skating after EOF of Endomondo? - Welcome again Sport Tracker !!

 After a couple of weeks looking for a Iphone App with the option to select the Skating / Roller Sport option I remebered a old App thaht i was using years ago with Nokia, and yes is still Alive and has the App for the Apple Watch with the complete list of Sports showed on the Iphone App also showed on the Apple Watch (This is rare but a lot of Sport Iphone apps don`t show all options of the diferrents sports on the Apple Watch)

Old Sport Tracker screen on Symbian Nokia Phones:



And the App is still alive after a lot of years and updated (Iphone/Watch Version..)








sábado, 22 de agosto de 2020

Control Consumo Router 4G Huawei con Domoticz

 Hoy os traigo los Script para lanzar a Domoticz los consumo de Datos de un HUAWEI, en mi caso es el HUAWEI 4G Router 3 Pro B535-235 , un router con magnificas calificaciones en varios Foros (Y por el momento también para mi..) , ideal ademas si tienes que hacer uso de antenas externas para mejorar la cobertura en zonas rurales.

Adelantar que para sistemas Windows hay Software de control y Gestion interesantes como:

https://routeur4g.fr/discussions/discussion/67/lteinspecteur-logiciel-de-surveillance-des-routeurs-4g-huawei

https://ltehmonitor.github.io/

Pero si queremos dejarlo todo integrado en la misma RaspBerry junto a Domoticz esta es la via...

Antes de todo tendremos que instalar la API de Huawei.

https://pypi.org/project/huawei-lte-api/

Una vez disponemos de la API ya es lanzar consultas y formatear los datos e inyectarlos a Domoticz, yo tengo 2 Scripts, uno de consumo Total y otro de Consumo de la Ultima hora (para notificaciones de exceso de trafico mediante Domoticz).

El Contador de Consumo Total se resetea según la programación que hayais hecho al rotuer via la APP de Huawei, yo lo tengo puesto al dia "1" del mes.

sábado, 9 de mayo de 2020

Mis primeros contactos con equipos Informaticos


Mi primer ordenador un MSX con unidad lectora de Casettes y un monitor COLOR, magnificas horas de Juegos y muchas mas de Programación en BASIC.




Y le siguió mi primer  PC un Amstrad con CPU 8086  y 512Kb de RAM con MSDOS y unidad de Diskette de 5 1/4 y para TOP un Disco Duro en Tarjeta de 20 Megas!:



Twitter Inphower