× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

file Temperatura CPU

More
10 years 6 months ago #2108 by meteosismi
Temperatura CPU was created by meteosismi
Buongiorno, quale è il parametro nel file meteo.txt che porta la temperatura della CPU?

Please Log in to join the conversation.

More
10 years 6 months ago #2109 by tony
Replied by tony on topic Temperatura CPU
La Temp CPU non viene loggata. Potrebbe essere una idea aggiungerla. Hai dei dettagli su come si ottiene ??

Please Log in to join the conversation.

More
10 years 6 months ago #2110 by alegrechi
Replied by alegrechi on topic Temperatura CPU
Dovrebbe essere semplicemente

cat /sys/class/thermal/thermal_zone0/temp

Please Log in to join the conversation.

More
10 years 6 months ago #2111 by tony
Replied by tony on topic Temperatura CPU
Bene Ale,
Aggiungerla non fa certo male. !!

Please Log in to join the conversation.

More
10 years 6 months ago #2113 by Roberto Vaccaro
Replied by Roberto Vaccaro on topic Temperatura CPU
Scusa Tony senza volere ho cancellato il tuo msg.

Volevo solo aggiungere che il valore visualizzato con quel comando rende un numero di 6 cifre che va diviso x 1000 e si ha la temperatura della CPU espressa in °C

Si può anche verificare col comando diretto
vcgencmd measure_temp

Please Log in to join the conversation.

More
10 years 6 months ago #2115 by tony
Replied by tony on topic Temperatura CPU
Fatto .. versione 95
The following user(s) said Thank You: meteosismi

Please Log in to join the conversation.

More
10 years 6 months ago #2116 by alegrechi
Replied by alegrechi on topic Temperatura CPU
Hai aggiunto un nuovo parametro in meteo.txt?

Please Log in to join the conversation.

More
10 years 6 months ago #2118 by meteosismi
Replied by meteosismi on topic Temperatura CPU
Caspita velocissimo, grazie. Mi scuso se non ho seguito poi le risposte perchè sono stato un pò impegnato al lavoro, ed in effetti avevo letto di quella stringa sul forum raspberry.
Grazie Toni.
Antonio.

Please Log in to join the conversation.

More
10 years 5 months ago #2125 by mastru
Replied by mastru on topic Temperatura CPU
Mi scuso per la lunga assenza dal Forum, ma il lavoro mi ha tenuto lontano...
Ho visto il nuovo parametro TempCPU e mi è subito nata la curiosità di sapere quale sia la temperatura di esercizio corretta della CPU se opera in un ambiente alla temperatura di di circa 23 gradi.
Nel mio caso la temperatura segnalata è 58.7°C che stando a quanto si legge sui forum è la temperatura del Raspberry in overclock... E' normale?

Please Log in to join the conversation.

More
10 years 5 months ago #2126 by meteosismi
Replied by meteosismi on topic Temperatura CPU
A me a 24° ambiente la temperatura della CPU è 50.8°. Ho sulla CPU il dissipatore.
Antonio.

Please Log in to join the conversation.

More
10 years 5 months ago #2127 by tony
Replied by tony on topic Temperatura CPU
stazione in valle Modello A - "TempCPU": 26.1
Stazione in montagna Modello B - "TempCPU": 35.8,

Esternamente rispettivamente 8 e 10 gradi

Please Log in to join the conversation.

More
10 years 5 months ago #2133 by alegrechi
Replied by alegrechi on topic Temperatura CPU
Mi sembra di aver letto che la CPU non ha problemi fino a 80°C, dopo il rasp va in protezione e si spegne...

E' fatto apposta per andare senza raffreddamento, altrimenti ce l'avrebbero messo!
Io questa estate non ho avuto alcun problema con 40 gradi fuori (dentro la scatola stagna, sotto il sole, si superavano i 50... non ricordo la tempCPU).
Mi rimane solo da testarla col prossimo freddo invernale, mi preoccupa di più! :)

Please Log in to join the conversation.

  • Centauri
  • Centauri's Avatar
  • Visitor
  • Visitor
10 years 5 months ago - 10 years 5 months ago #2148 by Centauri
Replied by Centauri on topic Temperatura CPU
Visto che Tony ha aggiunto nel file meteo.txt il valore delle lettura della CPU allego il file swpi_dashboard_lcd.html con la lettura di tale valore.
E' l'ultimo della lista.

Edit: non riesco ad allegarlo, lo metto come codice.
<!DOCTYPE html>
<html manifest="demo.manifest"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>Sint Wind PI Dashboard</title>
	<script type="text/javascript" src="js/jquery-1.3.2.min.js"  ></script>
	<script type="text/javascript" src="lastUpdate.js"></script>
	<style>
	
	.insidegauge {
	display: none;
	}
	.bucket {
	margin-left: 35px;
	margin-right: 35px;
	}
	</style>
	

</head>
<body onload="init()" >

  <div style="width: 200px"> 
            
            
            <div style="float:left">
		 <canvas id="canvasLed1" width="50" height="50"></canvas>
			</div>
	
		<div style="float:right">
			 <canvas id="canvasSingle12" style=" margin-bottom: -5px; " width="150" height="30"></canvas>
		</div>
				<div style="float:right">
			 <canvas id="canvasSingle1" width="150" height="30"></canvas>
		</div>

		<div >
		<canvas id="canvasSingle2" width="200px" height="50px"></canvas>
		</div>
		<div >
		<canvas id="canvasSingle4" width="200px" height="50px"></canvas>
		</div>
		<div >
		<canvas id="canvasSingle3" width="200px" height="50px"></canvas>
		</div>
		<div >
		<canvas id="canvasSingle5" width="200px" height="50px"></canvas>
		</div>
		<div >
		<canvas id="canvasSingle13" width="200px" height="50px"></canvas>
		</div>		
		<div >
		<canvas id="canvasSingle6" width="200px" height="50px"></canvas>
		</div>
		<div style="float:left">
		<canvas id="canvasSingle7" width="120px" height="50px"></canvas>
		</div>
		<div style="float:right">
		<canvas  id="canvasSingle8" width="80px" height="50px"></canvas>
		</div>
		<div >
		<canvas id="canvasSingle9" width="200px" height="50px"></canvas>
		</div>
		<div >
		<canvas id="canvasSingle10" width="200px" height="50px"></canvas>
		</div>
		<div >
		<canvas id="canvasSingle11" width="200px" height="50px"></canvas>
		</div>
		<div >
		<canvas id="canvasSingle14" width="200px" height="50px"></canvas>
		</div>
		<div >
		<canvas id="canvasSingle15" width="200px" height="50px"></canvas>
		</div>
		


</div>



<script>
    var scroll = false;

    var single1;
    var single2;
    var single3;
    var single4;
    var single5;
    var single6;
    var single7;
    var single8;
    var single9;
    var single10;
    var single11;
    var single12;
    var single13;
    var single14;

    var led1;
    
   
    



function UpdateGauge(){
	  //alert("Updating");
      $.getJSON(
         'meteo.txt',
         function(data){


					//single1.setValue(data.last_measure_time);
					single1.setValue(lastUpdate(data.last_measure_time));
					single2.setValue(data.temp_out);
					single3.setValue(data.hum_out);
					single4.setValue(data.temp_apparent);
					single5.setValue(data.dew_point);
					single6.setValue(data.wind_ave);
					single7.setValue(data.wind_dir);
					single8.setValue(data.wind_dir_code);
					single9.setValue(data.wind_gust);
					single10.setValue(data.wind_chill);
					single11.setValue(data.rain_rate_1h);
					single12.setValue("Ultima misura:");
					single13.setValue(data.rel_pressure);
					single14.setValue(data.cloud_base_altitude);
					single15.setValue(data.TempCPU);
			//alert("Updated");
         }
      );
      
      
      
      
      
   }	
	
 
 function lastUpdate(updatedata) {   
//funzione che calcola la differenza dall'ultimo aggiornamento dei dati da last_measure_time
//ottieni ora corrente
var myDate = new Date();
var year = myDate.getFullYear();
var month = myDate.getMonth();
if(month <= 9)
    month = '0'+(month+1);
var day= myDate.getDate();
if(day <= 9)
    day = '0'+day;
    var hour= myDate.getHours();
if(hour<= 9)
    hour = '0'+hour;
var minutes= myDate.getMinutes();
if(minutes<= 9)
    minutes = '0'+minutes;
var seconds= myDate.getSeconds();
if(seconds<= 9)
    seconds = '0'+seconds;
//var prettyDate = day +'/'+ month +'/'+ year +'-'+ hour +':'+ minutes +':'+ seconds;
//scrivi ora corrente
//document.write(prettyDate);


//converto ultimo aggiornamento in data

//var str="[02/04/2013-17:20:17]";
var str=updatedata;
var n=str.slice(1,20);

var n=n.split("-");
var daysplit=n[0].split("/");
var datesplit=n[1].split(":");

var day1=daysplit[0];
var month1=daysplit[1];
var year1=daysplit[2];


var hour1=datesplit[0];
var minutes1=datesplit[1];
var seconds1=datesplit[2];

//calcola la differenza

var date1 = new Date(year1, month1, day1,  hour1, minutes1, seconds1); // ora di lettura
var date2 = new Date(year, month, day, hour, minutes, seconds); // ora attuale
if (date2 < date1) {
    date2.setDate(date2.getDate() + 1);
}
var diff = date2 - date1;

var msec = diff;
var hh = Math.floor(msec / 1000 / 60 / 60);
msec -= hh * 1000 * 60 * 60;
var mm = Math.floor(msec / 1000 / 60);
msec -= mm * 1000 * 60;
var ss = Math.floor(msec / 1000);
msec -= ss * 1000;

//scrivi il risultato
var result ="";
//result += "ultima misura: ";
if(hh != 0) {
	result += hh;
	result += "h, ";
	}
	
if(mm != 0) {
	result +=  mm;
	result +=  "m e ";
	}
result += ss;
result += "s fa";

return result;

  }  
    
    
    
    
    
    

    function init() {


	
        // Initialzing gauge
		
		
		var sections = [steelseries.Section(0, 20, 'rgba(0, 0, 220, 0.3)'),
						steelseries.Section(20, 40, 'rgba(0, 220, 0, 0.3)'),
						steelseries.Section(40, 50, 'rgba(220, 220, 0, 0.3)'),
						steelseries.Section(50, 100, 'rgba(255, 0, 0, 0.3)')],
			// Define one area
			areas = [steelseries.Section(75, 100, 'rgba(220, 0, 0, 0.3)')],
			// Define value gradient for bargraph
			valGrad = new steelseries.gradientWrapper(  0,
														100,
														[ 0, 0.33, 0.66, 0.85, 1],
														[ new steelseries.rgbaColor(0, 0, 200, 1),
														  new steelseries.rgbaColor(0, 200, 0, 1),
														  new steelseries.rgbaColor(200, 200, 0, 1),
														  new steelseries.rgbaColor(200, 0, 0, 1),
														  new steelseries.rgbaColor(200, 0, 0, 1) ]);

		var sectionsPressute = [steelseries.Section(0, 800, 'rgba(0, 0, 220, 0.3)'),
								steelseries.Section(800, 850, 'rgba(0, 220, 0, 0.3)'),
								steelseries.Section(850, 900, 'rgba(220, 220, 0, 0.3)'),
								steelseries.Section(900, 1200, 'rgba(255, 0, 0, 0.3)')],
            // Define one area
            areas = [steelseries.Section(75, 100, 'rgba(220, 0, 0, 0.3)')],
            // Define value gradient for bargraph
            valGrad = new steelseries.gradientWrapper(  0,
                                                        100,
                                                        [ 0, 0.33, 0.66, 0.85, 1],
                                                        [ new steelseries.rgbaColor(0, 0, 200, 1),
                                                          new steelseries.rgbaColor(0, 200, 0, 1),
                                                          new steelseries.rgbaColor(200, 200, 0, 1),
                                                          new steelseries.rgbaColor(200, 0, 0, 1),
                                                          new steelseries.rgbaColor(200, 0, 0, 1) ]);													  
														  
	    
	    single12 = new steelseries.DisplaySingle('canvasSingle12', {
                            width: 150,
                            height: 25,
                             headerString: "Ultima misura",
                            headerStringVisible: false,
                            //value: "<Auto-scrolling: true>",
                            valuesNumeric: false
                            });	
	    
	    
	     single1 = new steelseries.DisplaySingle('canvasSingle1', {
                            width: 150,
                            height: 25,
                             headerString: "Ultima misura",
                            headerStringVisible: false,
                            //value: "<Auto-scrolling: true>",
                            valuesNumeric: false
                            });													  
		
               single2 = new steelseries.DisplaySingle('canvasSingle2', {
                            width: 200,
                            height: 50,
                            unitString: "°C",
                            unitStringVisible: true,
                            lcdDecimals: 1,
                            headerString: "Temperatura",
                            headerStringVisible: true
                            });
                            
                single3 = new steelseries.DisplaySingle('canvasSingle3', {
                            width: 200,
                            height: 50,
                            unitString: "%",
                            unitStringVisible: true,
                            lcdDecimals: 0,
                            headerString: "Umidità",
                            headerStringVisible: true
                            });
               single4 = new steelseries.DisplaySingle('canvasSingle4', {
                            width: 200,
                            height: 50,
                            unitString: "°C",
                            unitStringVisible: true,
                            lcdDecimals: 1,
                            headerString: "Temperatura percepita",
                            headerStringVisible: true
                            });
            single5 = new steelseries.DisplaySingle('canvasSingle5', {
                            width: 200,
                            height: 50,
                            unitString: "°C",
                            unitStringVisible: true,
                            lcdDecimals: 1,
                            headerString: "Dew Point",
                            headerStringVisible: true
                            });
            single6 = new steelseries.DisplaySingle('canvasSingle6', {
                            width: 200,
                            height: 50,
                            unitString: "km/h",
                            unitStringVisible: true,
                            lcdDecimals: 2,
                            headerString: "Vento",
                            headerStringVisible: true
                            });              
            single7 = new steelseries.DisplaySingle('canvasSingle7', {
                            width: 120,
                            height: 50,
                            unitString: "°",
                            unitStringVisible: true,
                            lcdDecimals: 0,
                            headerString: "Direzione Vento",
                            headerStringVisible: true
                            });
                            
            single8 = new steelseries.DisplaySingle('canvasSingle8', {
                            width: 80,
                            height: 50,
                            unitString: "",
                            unitStringVisible: false,
                            lcdDecimals: 0,
                            headerString: "Direzione Vento",
                            headerStringVisible: false,
                            valuesNumeric: false
                            });                              
            single9 = new steelseries.DisplaySingle('canvasSingle9', {
                            width: 200,
                            height: 50,
                            unitString: "km/h",
                            unitStringVisible: true,
                            lcdDecimals: 2,
                            headerString: "Raffica",
                            headerStringVisible: true
                            });   
                            
        single10 = new steelseries.DisplaySingle('canvasSingle10', {
                            width: 200,
                            height: 50,
                            unitString: "°C",
                            unitStringVisible: true,
                            lcdDecimals: 1,
                            headerString: "Wind Chill",
                            headerStringVisible: true
                            });
        single11 = new steelseries.DisplaySingle('canvasSingle11', {
                            width: 200,
                            height: 50,
                            unitString: "mm",
                            unitStringVisible: true,
                            lcdDecimals: 1,
                            headerString: "Pioggia ultima ora",
                            headerStringVisible: true
                            });
        single13 = new steelseries.DisplaySingle('canvasSingle13', {
                            width: 200,
                            height: 50,
                            unitString: "hPa",
                            unitStringVisible: true,
                            lcdDecimals: 1,
                            headerString: "Pressione relativa",
                            headerStringVisible: true
                            });
		single14 = new steelseries.DisplaySingle('canvasSingle14', {
                            width: 200,
                            height: 50,
                            unitString: "m",
                            unitStringVisible: true,
                            lcdDecimals: 1,
                            headerString: "Altezza nuvole",
                            headerStringVisible: true
                            });
		single15 = new steelseries.DisplaySingle('canvasSingle15', {
                            width: 200,
                            height: 50,
                            unitString: "°C",
                            unitStringVisible: true,
                            lcdDecimals: 1,
                            headerString: "TempCPU",
                            headerStringVisible: true
                            });							
                 led1 = new steelseries.Led('canvasLed1', {
                            width: 54,
                            height: 54
                            });    
                            
       
		
		UpdateGauge();
		setInterval(function(){UpdateGauge()},1000);
        led1.blink(true);
		
		
		
		
		
		
	}


</script>



<script src="js/tween-min.js"></script>
<script src="js/steelseries-min.js"></script>
</body></html>

Se non funziona, dipende dal server sul quale gira modificate questa riga:
.getJSON(
         'meteo.txt',

in:
.getJSON(
         './meteo.txt',
Last edit: 10 years 5 months ago by Centauri.

Please Log in to join the conversation.

More
9 years 3 months ago - 9 years 2 months ago #4924 by TeoBW
Replied by TeoBW on topic Temperatura CPU
Ottima modifica!!
appena carica su matteonava.altervista.org/swpi/dashboard_lcd.html, ma non capisco come mai non i riporta i testi prima dei valori...avete idee?

Matteo

Edit:
ho spostato tutto sul mio sito, il problema delle scritte persiste.
Ora si trova:
www.studionava.eu/meteo/dashboard_lcd.html

Grazie per eventuali suggerimenti, Matteo
Last edit: 9 years 2 months ago by TeoBW. Reason: specifiche

Please Log in to join the conversation.

Time to create page: 1.283 seconds