Hi everyone.
I made a shortcut using the apple shortcut application that do the following:
1. Set screen brightness to 0%
2. Take photo with back camera
3. Rotate photo
4. Resize photo
5. Rename photo to current date
6. Save to dropbox
7. Make a get request to a php script (the script access the most recent picture from dropbox and copy its own server, the request response is not important)
8. Wait 10 minutes
9. Call itself
The phone is supposed to just sit without user interaction and keep taking and uploading pictures as long as there is power.
The shortcut script works fine, but a loss of network coverage prompts an error message, blocking the script execution, that cannot (apparently) be dismissed without human intervention.
The phone will be placed in a spot with 3G/4G network but no wifi, bad network coverage is bound to happen.
So I was wondering if I could achieve the same result in Pythonista, maybe adding a check for internet access or at least the possibility to fail gracefully and keep going in case of errors.
I just bought Pythonista, I am running IOS 14.3. The first problem I have is taking a picture without user intervention.
The photos.capture_image() method does not work as it opens the camera app.
I found this thread but the take_photo_now method described in the first answer does not seem to work on my phone, I get the green dot signaling camera activity but nothing else.
- Is there another way to do this?
- Is what I am trying to achieve doable or am I likely to hit another roadblock down the line?
