In this project, you can see the temperature from Blynk and turn on the fan remotely.
Before starting this project, we recommend that you complete Get Start with Blynk. The following will give you a clear understanding of Blynk.
2. Create Widget and Datastream
Click on the menu icon in the upper right corner and select edit dashboard.
Add a Switch widget and a Label widget to the Dashboard.
Create a Datastream (I used V3) for the Switch widget. It will be used to turn on the Motor.
Create a Datastream for the Label widget(I used V0). It will be used to display the temperature. Set DATA TYPE to String.
When finished, click Save And Apply at the top right.
3. Run the Code
Edit the code
sudo nano blynk_motor.py
Find the line below and past your
BLYNK_AUTH = 'YourAuthToken'
Run the code.
sudo python3 blynk_motor.py
Go to Blynk, on the Dashboard you can check the temperature via Label widget; you can turn on/off the fan via Switch widget.