Temperature RecorderΒΆ

In this project, you can see the current temperature and the temperature change line graph from Blynk.

Note

Before starting this project, we recommend that you complete Get Start with Blynk. The following will give you a clear understanding of Blynk.

1. Wiring

../../_images/wiring_blynk_temp.png

2. Create Widget and Datastream

  1. Click on the menu icon in the upper right corner and select edit dashboard.

    ../../_images/sp220913_180231.png
  2. Add a Gauge widget and a Chart widget to the Dashboard.

    ../../_images/sp220914_175437.png
  3. Create a Datastream for the Gauge widget (I used V5). It will be used to display the temperature. Set DATA TYPE to Double, DECIMALS to #. # (two valid decimal places).

    ../../_images/sp220914_182300.png
  4. Add the V5 Datastream you just created to the Chart widget.

    ../../_images/sp220914_183039.png
  5. When finished, click Save And Apply at the top right.

    ../../_images/sp220913_182300.png

3. Run the Code

  1. Edit the code

cd /home/pi/blynk-raspberrypi-python
sudo nano blynk_temp.py
  1. Find the line below and past your BLYNK_AUTH_TOKEN.

BLYNK_AUTH = 'YourAuthToken'
  1. Run the code.

sudo python3 blynk_temp.py
  1. Go to Blynk. Now you can view the temperature and temperature change line graph on the Dashboard.

    ../../_images/sp220915_101137.png