You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed all described from you blog but things are not working.
I do see there is another version of the powermeter on GitHub.... Though there is no install instruction included
Any help would be appreciated.
This is the output of the webpage (when app is installed according your blog). It is just plain text (php is working though):
Another question... I don't understand the formula exactly in your page
I am using another meter with grafana.... would like to do the same with the powermeasure tool you wrote in python.
Though dunno how to calculate current power consumption....
Can you bring me up to speed ?
Hi !
I installed all described from you blog but things are not working.
I do see there is another version of the powermeter on GitHub.... Though there is no install instruction included
Any help would be appreciated.
This is the output of the webpage (when app is installed according your blog). It is just plain text (php is working though):
"; $watt[] = (($row['watt']*$intervalmultiply)/1000); $dates[] = $row['date'].""; } echo "Minutes Hours Days Months
"; echo "Usage right now: ".round($watt[0],2)." kWh ".round((($watt[0])*2.1),2)." Kr/h.
"; // Standard inclusions include("pChart/pData.class"); include("pChart/pChart.class"); // Dataset definition $DataSet = new pData; $DataSet->AddPoint($watt); $DataSet->AddSerie(); $DataSet->SetSerieName("kWh","Serie1"); //$DataSet->addPoint($dates,"Labels"); //$DataSet->setSerieDescription("Labels",$dates); //$DataSet->setAbscissa("Labels"); // Initialise the graph $Test = new pChart(800,400); $Test->setFontProperties("Fonts/tahoma.ttf",10); $Test->setGraphArea(60,30,680,200); $Test->drawGraphArea(252,252,252); $Test->drawScale($DataSet->GetData(),$DataSet->GetDataDescription(),SCALE_NORMAL,150,150,150,TRUE,0,2); $Test->drawGrid(4,TRUE,230,230,230,255); // Draw the line graph $Test->drawLineGraph($DataSet->GetData(),$DataSet->GetDataDescription()); $Test->drawPlotGraph($DataSet->GetData(),$DataSet->GetDataDescription(),3,2,255,255,255); // Finish the graph $Test->setFontProperties("Fonts/tahoma.ttf",8); $Test->drawLegend(45,35,$DataSet->GetDataDescription(),255,255,255); $Test->setFontProperties("Fonts/tahoma.ttf",10); $Test->drawTitle(80,22,"kWh usage at home",50,50,50,585); $Test->Render("chart.png"); echo "
"; foreach ($watt as $key => $value){ echo $dates[$key]." - ".round($value,2)." kWh ".round(((($value)*2.1)/$intervalmultiply),2)." kr.
"; } mysql_close($link); ?>
The text was updated successfully, but these errors were encountered: