Cyberscooty Wiki's mr heater "Raspberry 9 - shaping the pilot page
It's not perfect but I did it quickly in 1 or 2 hours Added some information from Raspberry mr heater General case and controls php Run a system command mr heater from a php page
$ Nom_de_votre_variable mr heater = shell_exec ('commande_système'); Print ("the result of the command is: $ nom_de_votre_variable"); Examples Adding the machine name <? Php $ hostname = shell_exec ('hostname'); Print ("System: $ hostname"); ?> Adding mr heater uptime <? Php $ uptime = shell_exec ('uptime'); Print ("Uptime: $ uptime"); ?> Adding Raspberry system temperature is another command (/ opt / vc / bin / vcgencmd measure_temp) but performing rights issue since the php page prevents me from using it (we have been able to modify the rights but as this have involved a safety down, I decided to use another command) The cat / sys / class / spa / thermal_zone0 / temp indicates a temperature milligrade so I improvised to display a much more readable temperature "cutting" Variable two <? php $ temperaturesysteme = shell_exec ('cat / sys / class / spa / thermal_zone0 / temp'); $ Tempentier = substr ($ temperaturesysteme, 0.2); $ Tempvirgule = substr ($ temperaturesysteme, 2.2); Print ("Temperature System Raspberry: $ tempentier $ tempvirgule C."); ?> Adding the timestamp of the photo using the EXIF data of the image - you must first install exiv2 with sudo apt-get install exiv2 <? Php $ timestamp = shell_exec ('exiv2 / var / www / img? /cam.jpg | grep timestamp '); $ Anneephoto = substr ($ timestamp, 18.4); $ Moisphoto = substr mr heater ($ timestamp, 23.2); $ Coming upCalendarDaily = substr ($ timestamp, 26.2); $ Heurephoto = substr ($ timestamp, 28); Print ("Picture coming upCalendarDaily $ $ $ moisphoto anneephoto to $ heurephoto"); ?> Tags: php - raspberry - web
That is to say that you can share and freely adapt Articles The only constraint is to quote the author (Cyberscooty) and you do not have the right to use the content to make commercial use.
35 queries. 2.283 seconds.
It's not perfect but I did it quickly in 1 or 2 hours Added some information from Raspberry mr heater General case and controls php Run a system command mr heater from a php page
$ Nom_de_votre_variable mr heater = shell_exec ('commande_système'); Print ("the result of the command is: $ nom_de_votre_variable"); Examples Adding the machine name <? Php $ hostname = shell_exec ('hostname'); Print ("System: $ hostname"); ?> Adding mr heater uptime <? Php $ uptime = shell_exec ('uptime'); Print ("Uptime: $ uptime"); ?> Adding Raspberry system temperature is another command (/ opt / vc / bin / vcgencmd measure_temp) but performing rights issue since the php page prevents me from using it (we have been able to modify the rights but as this have involved a safety down, I decided to use another command) The cat / sys / class / spa / thermal_zone0 / temp indicates a temperature milligrade so I improvised to display a much more readable temperature "cutting" Variable two <? php $ temperaturesysteme = shell_exec ('cat / sys / class / spa / thermal_zone0 / temp'); $ Tempentier = substr ($ temperaturesysteme, 0.2); $ Tempvirgule = substr ($ temperaturesysteme, 2.2); Print ("Temperature System Raspberry: $ tempentier $ tempvirgule C."); ?> Adding the timestamp of the photo using the EXIF data of the image - you must first install exiv2 with sudo apt-get install exiv2 <? Php $ timestamp = shell_exec ('exiv2 / var / www / img? /cam.jpg | grep timestamp '); $ Anneephoto = substr ($ timestamp, 18.4); $ Moisphoto = substr mr heater ($ timestamp, 23.2); $ Coming upCalendarDaily = substr ($ timestamp, 26.2); $ Heurephoto = substr ($ timestamp, 28); Print ("Picture coming upCalendarDaily $ $ $ moisphoto anneephoto to $ heurephoto"); ?> Tags: php - raspberry - web
That is to say that you can share and freely adapt Articles The only constraint is to quote the author (Cyberscooty) and you do not have the right to use the content to make commercial use.
35 queries. 2.283 seconds.