Subject: Connection Issue with My Blynk Project

Hello everyone,

I hope you’re doing well. I’m currently facing an issue with my Blynk project on Raspberry Pi, and I’d like to seek your assistance in resolving it.

My Python program is running correctly on my Raspberry Pi and indicates that it’s sending data and connected to Blynk. However, the status of my project remains offline in the Blynk application.

I’ve checked the internet connectivity on the Raspberry Pi, as well as the connection settings in my Python code. I’ve also restarted the Raspberry Pi, but the issue persists.

Do you have any suggestions on what I could check or try to resolve this issue and bring my project online?

Thank you in advance for your valuable assistance and advice!

You’ve not shared it, so everything is very hypothetical at this stage.

How are you determine this? What info are you seeing in your serial monitor and in Blynk?

Are you using the Blynk Python library (if so which version?) or the HTTP(S) API to send the data to Blynk?

It’s difficult to suggest anything without having some real info/data.

Pete.

I’m trying with this simple code:

[Unformatted code removed by moderator]

@abir Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Copy and paste these if you can’t find the correct symbol on your keyboard.

When you post serial output it’s also best if you copy/paste the text and use triple backticks with that too, instead of posting screenshots.

Pete.

import Adafruit_DHT
BLYNK_AUTH = ‘Votre_token_d'authentification’
blynk = blynklib.Blynk(BLYNK_AUTH)
DHT_SENSOR = Adafruit_DHT.DHT11
DHT_PIN = 4
@blynk.handle_event(‘read V0’)
def read_temp_humidity(pin):
humidity, temperature = Adafruit_DHT.read_retry(DHT_SENSOR, DHT_PIN)
if humidity is not None and temperature is not None:
blynk.virtual_write(0, temperature)
blynk.virtual_write(1, humidity)
while True:
blynk.run()```
in the monitor:
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ for Python v0.2.6
Temperature: 1.0°C | Humidity: 2.0%

It would have been nice if you’d actually edited your previous post instead of reposting and making me go in and clean-up your mess.

You’re using the wrong library. You should read this…

Pete.