Python Forum
How would I use Watchdog to get triggered when DVD is inserted?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How would I use Watchdog to get triggered when DVD is inserted?
#12
I think you can't use the Watchdog to observe media Changes.
Polling the directory the whole time is ineffective and if a CD is in your drive, it will always spin up during polling. This can be very annoying.

You have to use the win32 subsystem and a guy made already the work: https://abdus.dev/posts/python-monitor-usb/
Daring_T likes this post
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
RE: How would I use Watchdog to get triggered when DVD is inserted? - by DeaD_EyE - Aug-17-2021, 08:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  watchdog on_modified CAD79 3 398 Apr-24-2024, 06:23 PM
Last Post: deanhystad
  [SOLVED] [BeautifulSoup] Why does it turn inserted string's brackets into </>? Winfried 0 1,587 Sep-03-2022, 11:21 PM
Last Post: Winfried
  Error when using Watchdog and Qt to keep open a Queue before and after sending first pyhill00 0 1,653 Oct-28-2021, 09:10 AM
Last Post: pyhill00
  Halting if command if gpio triggered event triggered knoxvilles_joker 7 3,358 Jun-21-2021, 01:27 AM
Last Post: knoxvilles_joker
  How to make input come after input if certain line inserted and if not runs OtherCode Adrian_L 6 3,390 Apr-04-2021, 06:10 PM
Last Post: Adrian_L
  Picture changing triggered by GPIO q_nerk 2 2,649 Dec-14-2020, 03:32 PM
Last Post: DeaD_EyE
  lxml - etree/lxml need help storing variable for most inserted element goeb 0 2,595 Apr-01-2019, 03:09 AM
Last Post: goeb

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020