omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. nasadave

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 2
    • Topics 5
    • Posts 13
    • Best 1
    • Controversial 0
    • Groups 0

    nasadave

    @nasadave

    1
    Reputation
    648
    Profile views
    13
    Posts
    2
    Followers
    0
    Following
    Joined Last Online

    nasadave Unfollow Follow

    Best posts made by nasadave

    • RE: Uploading an image using SFTP (paramiko)

      Thanks for adding the follow up. I needed that.

      posted in Pythonista
      nasadave
      nasadave

    Latest posts made by nasadave

    • RE: Uploading an image using SFTP (paramiko)

      Thanks for adding the follow up. I needed that.

      posted in Pythonista
      nasadave
      nasadave
    • RE: Is REQUESTS the right approach for what I'm trying to do?

      I'll look into both.

      posted in Pythonista
      nasadave
      nasadave
    • Is REQUESTS the right approach for what I'm trying to do?

      Before I go too far down the learning curve, I am wondering if requests is the right module to do what I'm trying to do.

      I'd like to pass a file (initially a text file, eventually a photo with metadata) generated thru Pythonista on iPad to a file server on a Linux machine. Is requests the right approach? And are there any examples of doing what I'm trying to do that might be out there?

      I have the file creation software up and running but I don't have anything that I can do with it just yet.

      Thanks!

      posted in Pythonista
      nasadave
      nasadave
    • RE: Is REQUESTS the right approach for what I'm trying to do?

      Ok, so I suppose I have the option of running the Linux server as a file server or an HTML server since I'll be controlling the host. That being said, would you still recommend against requests? Another approach? Basically I want to use the iPad to create a file, pass it to the Linux, and have a different program on the Linux manipulate the file.

      posted in Pythonista
      nasadave
      nasadave
    • RE: Is there a way to access the FaceTime iPad camera through code?

      Nothing, huh? No way to do this?

      posted in Pythonista
      nasadave
      nasadave
    • Is there a way to access the FaceTime iPad camera through code?

      I'm using the following to take a photo on an iPad:

      myimage = photos.capture_image()

      But that always accesses the iSight camera (the one on the back of the iPad). For the purposes of my program I'd like to access the other camera every time. I realize that the user can click the camera swap button, but I'd rather skip that step since the intent of the program is to take a photo of the user every time.

      Suggestions?

      posted in Pythonista
      nasadave
      nasadave
    • Now… Change the image in a UI...

      Using the same method recommended to change text in a label (previous post), I am now trying to change an image based on a photo taken by the camera. The program tries, but returns a blank image to the UI. The image is definitely being taken, because I can display it to the console - just not in the ImageView image on the UI.

      Here's the code:

      v=ui.load_view('MyUI')

      v.present('sheet')

      @ui.in_background

      def getimage():

      …myimage=photos.capture_image()

      …imageview1=v['imageview1']

      …myimage = myimage.resize((50,50),Image.BILINEAR)

      …imageview.image=ui.Image(myImage)

      getimage()

      posted in Pythonista
      nasadave
      nasadave
    • RE: Now… Change the image in a UI...

      But thanks for your response… I will eventually need to know how to make a PIL conversion too!

      posted in Pythonista
      nasadave
      nasadave
    • RE: Now… Change the image in a UI...

      Oops, yes, you're correct. I had added this line in the def after posting the first time:

      myimage = photos.get____image(raw____data=True)

      posted in Pythonista
      nasadave
      nasadave
    • RE: Now… Change the image in a UI...

      Figured it out. Needed to modify the last line in the def to:

      imageview1.image=ui.Image.from_data(myimage)

      That worked.

      posted in Pythonista
      nasadave
      nasadave