@Dmitriy, I think I didn’t explain myself well enough. I didn’t mean to use a DHT11/22 sensor with Pi. What I wanted was to show the temperature of raspberry pi itself on the Blynk app.
Also I was thinking of having 2 buttons on the Blynk app to remotely restart or shutdown the Pi using Blynk App but not sure how to achieve this.
@Dmitriy I suspect @ram1505 is interested in the Pi’s temperature, not the temperature around the Pi.
Pi has it’s own temperatures sensors so it can be done.
I’m still working on the restart/ shutdown via Blynk App. Added the node path node app.js to rc.local and the temp shows up on Blynk each time Pi boots up.
Managed to figure out how to reboot and shutdown RPI from Blynk.
var blynk = new blynkLib.Blynk(AUTH);
var v1= new blynk.VirtualPin(1);
var v2= new blynk.VirtualPin(2);
v1.on('write', function(){
child = exec("sudo halt", function (error, stdout, stderr) {
});});
v2.on('write',function(){
child = exec("sudo reboot", function (error, stdout, stderr) {
});});
that’s Great can you share the Full code and dash Board Setup.
what happens after restart , did you set Blynk to Run after boot so you can again able to monitor and interact with it?
hello @ram1505 i saw your project and i would like to integrate it into my project too. using your sketch tells me that I need the following installed files: require (‘util’) and require (‘child_process’) .exc: how can i download them? do you have the installation link for you? Thank you for the reply