• 3ryck

    Just like you, i found Pythonista after playing around with shortcuts(workflow). It’s amazing what you can do with shortcuts and now with automation. Well i bought Pythonista, 2 years ago but i recently started using it, in fact, i bought some nfc chips, i put one in my car and what it does is,
    Turn off wifi
    Turn on Bluetooth (music plays via Bluetooth)
    Turn on mobil data (4g)
    Open app YouTube music
    Play my playlist
    Set brightness to 80% (from 7am to 7pm)
    Set brightness to 40% (from 7pm to 6am)
    Set volume to 80%
    Send “coming” sms to ‘Temporal’

    But the interesting part was trying to send a message to notify my boss or anyone else that I’m coming.

    I created a temporal contact like everyone else does in the contact app, then i went to Pythonista and tried to read the contact ‘temporal’, edit it’s phone number and save it so that shortcuts sends the sms. Funny thing is that i can’t make it work yet because my code is not editing my temporal contacts phone number.

    Anyways, first time with python.

    posted in Pythonista read more
  • 3ryck

    Hello guys, it’s time for me to use this app (i bought it 2 years ago lol)

    Now I’m trying to get one specific contact, i read the documentation and i could managed to get/retrieve the contact, but when i attempt to edit its phone value, it’s not saving it. Even with “contact.save()” at the end. Any help please? Thanks

    import contacts 
    import clipboard
    DEFAULT_CONTACT = 'Temporal'
    curr_cb = clipboard.get()
    people = contacts.get_all_people()
    for p in people:
       if p.first_name == DEFAULT_CONTACT:
           p.phone[0] = [(contacts.MAIN_PHONE, int(curr_cb))]
           print(p.first_name + ' ' + p.phone[0][1])
    contacts.save() ```

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!