Blynk on my iPhone offline issue

Hi my name is Phil

I am really new to all this and really enjoy learning but could use some help.

I set up my raspberry pi to click a relay to open my garage door. Then I added the feature of using Blynk to do this from my iphone.

However it stopped working now and tells me it’s offline!

This is harsh I don’t know what happened or where to begin to fix it. How’s it work so well for 2 weeks and then out of nowhere just mess up?

I have read some similar issues that suggested for me to see what version I am using and if it was v5 to roll it back to v 4. I have no clue how to confirm my version or how to roll it back?

Another option I found was to stop my Blynk service and restart my Blynk service. I don’t know how to do this either to try and see if this will fix my issues.

Can you please lend a hand? I am really sorry for being such a noob.

Thanks
Phil

Hello. Do you use local server?

Hi

No I use the cloud

I think you need to start from hardware side. Try to add some debug, output to see what is going on on hardware side.

I am not sure how to debug or what that means. I can’t believe it’s a hardware issue because I can locally log into my raspberry pi and open my script in python and run it and the garage door opens and closes as it should.

If there was an issue with hardware I would imagine the door wouldn’t work at all correct?

Thanks

Not necessarily faulty hardware issue… but bad code running on the hardware, perhaps no error capturing (does Python use that, like JS does?), power brownouts, etc.

FYI, Blynk Python is in Alpha stage… thus it’s stability might be your issue?

Hi Gunner

Sorry I don’t know what you mean when you ask me if python uses no capture like js?

I really am very brand new and need a lot of hand holding to get started with troubleshooting.

Here is my code. I don’t see anything wrong with it but I don’t know how to read it all that great either.

!/usr/bin/python
import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BCM)

# init list with pin numbers

pinList = [2,]

# loop through pins and set mode and state to 'low'

for i in pinList: 
    GPIO.setup(i, GPIO.OUT) 
    GPIO.output(i, GPIO.HIGH)

# time to sleep between operations in the main loop

SleepTimeL = 1

# main loop

try:
  GPIO.output(2, GPIO.LOW)
  print "ONE"
  time.sleep(SleepTimeL); 
  GPIO.cleanup()
  print "Good bye!"

# End program cleanly with keyboard
except KeyboardInterrupt:
  print "  Quit"

  # Reset GPIO settings
  GPIO.cleanup()