User Tools

Site Tools


raspberry

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
Next revisionBoth sides next revision
raspberry [2022/01/07 15:35] – [Habilitar wifi] joseraspberry [2022/01/14 22:11] – [Script] jose
Line 86: Line 86:
 | 0x50005 | actualmente under voltage | | 0x50005 | actualmente under voltage |
  
 +===== Script =====
 +
 +<code>
 +#!/bin/bash
 +
 +fecha=`date +\%Y\%m\%d_\%H\%M\%S`
 +voltios=`vcgencmd measure_volts`
 +test="`vcgencmd get_throttled`"
 +case $test in 
 + throttled=0x50005) estado="Under Voltage";; 
 + throttled=0x50000) estado="Ha habido under voltage";; 
 + throttled=0x0) estado="OK";; 
 + *) estado=$test;;
 +esac
 +
 +echo $fecha" "$voltios" "$estado >> /home/pi/uptime
 +</code>
  
 ====== Pantallas TFT ====== ====== Pantallas TFT ======
raspberry.txt · Last modified: 2022/01/29 15:54 by jose