User Tools

Site Tools


eko

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eko [2025/09/30 14:14] joseeko [2025/09/30 14:39] (current) – [Gráfica del bot] jose
Line 5: Line 5:
   c22133011a5b   influxdb                      "/entrypoint.sh infl…"   22 minutes ago   Up 21 minutes   0.0.0.0:8087->8086/tcp                     influxdb_covid   c22133011a5b   influxdb                      "/entrypoint.sh infl…"   22 minutes ago   Up 21 minutes   0.0.0.0:8087->8086/tcp                     influxdb_covid
      
-Y grafana:+Y grafana que está en el docker compose /dades/web/eko que también corre el renderer:
   https://grafanaeko.lobo99.info   https://grafanaeko.lobo99.info
   http://192.168.1.200:3003/   http://192.168.1.200:3003/
  
-  e3c738e6a26f   grafana/grafana:latest        "/run.sh"                2 years ago      Up 36 minutes   0.0.0.0:3003->3000/tcp                     grafana_eko+  e96b6de86ee2   grafana/grafana:latest                  "/run.sh"                4 minutes ago       Up minutes       0.0.0.0:3003->3000/tcp                     grafana_eko 
 +  3268140b2810   grafana/grafana-image-renderer:latest   "dumb-init -- node b…"   4 minutes ago       Up 3 minutes       0.0.0.0:32769->8081/tcp                    eko-renderer-1 
 +  7cf5c461ad4d   influxdb                                "/entrypoint.sh infl…"   4 minutes ago       Up 3 minutes       0.0.0.0:8187->8086/tcp                     influxdb_eko
  
  
 +
 +====== Gráfica del bot ======
 +En el cron ejecuta esto que saca del docker de renderer la imagen y la graba en disco:
 +  * * * * * cd /home/ruth/eko/bot/ && ./check_internet.sh
 +  * 
 +El bot envia la gráfica que la guarda en /dades/web/htdocs/apitelegram.lobo99.info/grafica/
 +
 +Fichero de bot:
 +  /dades/web/htdocs/apitelegram.lobo99.info/bot.php
 +
 +Parte del bot que envía la gráfica:
 +<code>
 +    case "/grafica":
 +        $fichero = scandir('/var/www/html/grafica');
 +        $grafica=$fichero[2];
 +        $imagen = 'https://apitelegram.lobo99.info/grafica/'.$grafica;
 +#       $sendto =API_URL."sendmessage?chat_id=".$chatID."&text=".$imagen;
 +#       file_get_contents($sendto);
 +        $sendto =API_URL."sendphoto?chat_id=".$chatID."&photo=".$imagen;
 +        file_get_contents($sendto);
 +        break;
 +</code>
eko.1759241646.txt.gz · Last modified: by jose