SHARE
TWEET

Raspi-ISS1

a guest Feb 14th, 2020 83 in 23 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from emphem import readtle
  2. from picamera import PiCamera
  3. from time import sleep
  4.  
  5. name = "ISS (ZARYA)"
  6. line1 = "1 25544U 98067A   18356.58700427  .00000680  00000-0  17564-4 0  9997"
  7. line2 = "2 25544  51.6379 159.8223 0004659 171.1463 304.0053 15.54085692147811"
  8.  
  9. iss = readtle(name, line1, line2)
  10. iss.compute()
  11. print(iss.sublat, iss.sublong)
  12.  
  13. camera = PiCamera()
  14. camera.resolution = (2592, 1944)  # max resolution
  15. camera.annotate_size = 60
  16. camera.annotate_foreground = Color('White')
  17. camera.annotate_background = Color('Black')
  18. camera.annotate_text = " " + name + " "
  19.  
  20. # Zatim vyzkousime, jestli funguje ten text v obrazku, pozdeji to pridame do smycky... Zatim comment
  21. """
  22. for i in range(3*116): # cyklus probehne 3x116 = 348
  23.    camera.capture('image{:3d}'.format(i))  # take a picture every minute for 3 hours
  24.    sleep(31)
  25. """
  26.  
  27. # Nerozumim tomu, proc se tato cast opakuje... Zatim comment
  28. """
  29. iss = readtle(name, line1, line2)
  30. iss.compute()
  31. print(iss.sublat, iss.sublong)
  32.  
  33. for i in range(3*116):
  34.    camera.capture('image{:3d}'.format())  # take a picture every minute for 3 hours
  35.    sleep(31)
  36. """
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top