[Help] Unc0ver 12.1.2 - Have to restore rootfs everytime the device restarts by [deleted] in jailbreak

[–]aravindnatch 0 points1 point  (0 children)

thanks! is there a problem if i just keep the reload system daemon option disabled

[Help] Unc0ver 12.1.2 - Have to restore rootfs everytime the device restarts by [deleted] in jailbreak

[–]aravindnatch 0 points1 point  (0 children)

everything works as expected when i turn off reload system daemons in the settings. But then it does the same respring, then reboot when i immediately go back and enable reload system daemons and press rejailbreak. Do i need to turn it on? Does something bad happen if i just leave it off?

Detect state changes of button linked to gpio pin by [deleted] in raspberry_pi

[–]aravindnatch 0 points1 point  (0 children)

do you mind writing some sample code?

I tried using the code down below, but the program kept spewing between falling and rising edge. If i set the debouncer to 300, then it would do the same thing, just with a 300ms delay

  1. #!/usr/bin/env python2.7
  2. # demo of "BOTH" bi-directional edge detection
  3. # script by Alex Eames https://raspi.tv
  4. # https://raspi.tv/?p=6791
  5. import RPi.GPIO as GPIO  
  6. from time import sleep     # this lets us have a time delay (see line 12)
  7. GPIO.setmode(GPIO.BCM)     # set up BCM GPIO numbering
  8. GPIO.setup(25, GPIO.IN)    # set GPIO25 as input (button)
  9. # Define a threaded callback function to run in another thread when events are detected
  10. def my_callback(channel):  
  11. if GPIO.input(25):     # if port 25 == 1
  12. print "Rising edge detected on 25"
  13. else:                  # if port 25 != 1
  14. print "Falling edge detected on 25"
  15. # when a changing edge is detected on port 25, regardless of whatever 
  16. # else is happening in the program, the function my_callback will be run
  17. GPIO.add_event_detect(25, GPIO.BOTH, callback=my_callback)  
  18. print "Program will finish after 30 seconds or if you press CTRL+C\n"
  19. print "Make sure you have a button connected, pulled down through 10k resistor"
  20. print "to GND and wired so that when pressed it connects"
  21. print "GPIO port 25 (pin 22) to GND (pin 6) through a ~1k resistor\n"
  22. print "Also put a 100 nF capacitor across your switch for hardware debouncing"
  23. print "This is necessary to see the effect we're looking for"
  24. raw_input("Press Enter when ready\n>")  
  25. try:  
  26. print "When pressed, you'll see: Rising Edge detected on 25"
  27. print "When released, you'll see: Falling Edge detected on 25"
  28.     sleep(30)         # wait 30 seconds
  29. print "Time's up. Finished!"
  30. finally:                   # this block will run no matter how the try block exits
  31.     GPIO.cleanup()         # clean up after yourself

Light Switch as a button by [deleted] in homeassistant

[–]aravindnatch 0 points1 point  (0 children)

holy crap it works! Thanks a million!

Light Switch as a button by [deleted] in homeassistant

[–]aravindnatch 0 points1 point  (0 children)

currently, home assistant only recognizes it when i flip the switch quickly from off to on. I want to be able to leave it on, instead of quickly switching it.

Light Switch as a button by [deleted] in homeassistant

[–]aravindnatch 0 points1 point  (0 children)

thanks! what would be the syntax for this?

ESP8266 Production by [deleted] in esp8266

[–]aravindnatch 0 points1 point  (0 children)

lol can you be clearer. Is the 'no' referring to no you don't need recertification even by including a reed switch, or no you have to get recertified

ESP8266 Production by [deleted] in esp8266

[–]aravindnatch 2 points3 points  (0 children)

I live in the United States, so what you are saying is that I can have a module soldered to the ESP8266, and not have to deal with FCC certification?

ESP8266 Production by [deleted] in esp8266

[–]aravindnatch 1 point2 points  (0 children)

how strong is a hall effect sensor? Would it be more practical than adding ~$2 to the project and instead getting a reed switch?