@ricq you have to convert the xml to the json format.
i have now build a python script which provides the data from my sensors.
or you build a php script…
@ricq you have to convert the xml to the json format.
i have now build a python script which provides the data from my sensors.
or you build a php script…
Hy i solved the issue with jumping values.
you are deleting the y axis values in the file mmm-chart.js
but not the label dataarray.
i added the line:
this.chartData.labels = [];
at #296 and now i have fixed the jumping value issue
i also added the suggestedMin/Max parameter and to change the line chart to a stepped line chart
( image url)
I have the issue that the graph is jumping back to the beginning.
Has anyone else this issue?
@zazzo hm strange your data looks code…
hy i didnot turn off the hdmi,
i will turn off the lcd with the gpio’s
screen is turning on normal but electron browser is showing a black screen (mous appears at moving)
@cdelaorden said in Electron CPU usage:
the full kms driver isnt compatib
hy now i use the fake kms driver, everything is working fine and realy fast.
but i have the problem that the mirror will go to a black screen after some hours.
only a pm2 restart mm helps in this case -.-
Hy
my mirror works fine for some hours.
suddenly a black screen with the mous appears.
the way to solve is, to restart the mm (pm2 restart mm)
as workaround i tried chromium, which is also working fine for some hours, but then it will lose the conneciton and i have to reload the page.
is there a solution for my issues?
i prefer to use the electron to view the mirror not chromium
Hy i also have troubles with the real time chart.
it shows the chart only for 0,5s and then it will disapear?
do you ever had this issue?
and is it possible to ad more ticks on the x-axis?
if i display temp data from a day, it will only show two ticks
Hy it was quite hard to get the dht22 values showing up with your chart.
finally i got the php script working to fetch mysql data to your json format:
//your code here
//open connection to mysql db
$connection = mysqli_connect("localhost","logger","password","temperatures") or die("Err$
//fetch table rows from mysql db
$sql = "select * from temperaturedata";
$result = mysqli_query($connection, $sql) or die("Error in Selecting " . mysqli_erro$
//create an array
$emparray = array();
$position=0;
while($row =mysqli_fetch_assoc($result))
{
$emparray[$position][] = $row['dateandtime'];
$emparray[$position][] = $row['temperature'];
$emparray[$position][] = $row['humidity'];
$position++;
}
echo json_encode($emparray);
//close the db connection
mysqli_close($connection);
the Problem is, i thought about the Project Building my prototype mirror, with plexiglas an mirror foil to a final mirror and i saw, that i have not enough time to do that. and it is to much Money, that the mirror is lying in the Corner…
Dear @Goldjunge_Chriz
please put me also down from the list.
thanks you for everything and great luck with your new webshop, maybe i will put my order in the nexts month there.