Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import raumfeld
  2.  
  3. devices = raumfeld.discover()
  4. if len(devices) > 0:
  5. speaker = devices[0]
  6. speaker.mute = False # unmute
  7. speaker.volume = 60 # set volume
  8. speaker.play()
  9. else:
  10. print('No devices found.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement