• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Developing UBPorts apps with Python and PinePhone (questions

Scheduled Pinned Locked Moved App Development
7 Posts 6 Posters 559 Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      djkemmet
      last edited by djkemmet 13 Jun 2020, 01:58

      Hey All,

      New to development/open source and kinda confused. I'm working on a "book" to outline the steps for developing an app for UBPorts with Clickable and Python. Thing is now I am utterly stuck. I've gotten as far as being able to start and build my app with clickable but now I'm trying to move on to running it to preview/debug it and everything is stopping making sense.

      so I guess my top 3 Questions are:

      *First and perhaps most importantly, is python even a good choice to persue right now or are most of the tools in a state that make approaching a native app through QML/C a better option?

      *We can't use ADB with PinePhone which is what 90% of the documentation references. So what do you do now to send an app to the pine phone to test? I have a suspicion you do this with SSH Somehow based off what I'm reading. See

      https://forums.ubports.com/topic/4280/how-do-i-install-openssh-server
      https://forums.ubports.com/topic/4004/ssh-into-oneplus-3t?_=1589310095260

      *How do you get access to QT Creator? If I understand correctly, you need QT Creator to build your interface and in some cases code logic, however, I tried to download the evaluation and they revoked it the next day cause I'm not a "Viable Business"?

      any help our guidance would be MUCH Appreciated.

      B L C H ? 5 Replies Last reply 13 Jun 2020, 08:54 Reply Quote 0
      • B Offline
        Bolly @djkemmet
        last edited by 13 Jun 2020, 08:54

        @djkemmet said in Developing UBPorts apps with Python and PinePhone (questions:

        *We can't use ADB with PinePhone which is what 90% of the documentation references. So what do you do now to send an app to the pine phone to test? I have a suspicion you do this with SSH Somehow based off what I'm reading. See

        clickable --ssh ip

        2015-Now (Daily use) : BQ Aquaris E4.5 Ubuntu edition
        2016-Now (Daily use) : BQ Aquaris M10 FHD Betatester

        2020-Now : PinePhone Braveheart & CE UBports
        2020-Now (Family/Daily use): Vollaphone Xenial
        2022-Now (Family/Daily use): Vollaphone 22 Focal

        D 1 Reply Last reply 15 Jun 2020, 17:46 Reply Quote 0
        • L Offline
          libremax @djkemmet
          last edited by libremax 13 Jun 2020, 09:19

          @djkemmet said in Developing UBPorts apps with Python and PinePhone (questions:

          New to development/open source and kinda confused. I'm working on a "[book](https://github.com/djkemmet
          *We can't use ADB with PinePhone
          *How do you get access to QT Creator? If I understand correctly, you need QT Creator to build your interface and in some cases code logic, however, I tried to download the evaluation and they revoked it the next day cause I'm not a "Viable Business"?

          If you want to use QT stack to develop open source software, it's available for downloading here: https://www.qt.io/download-open-source?hsCtaTracking=9f6a2170-a938-42df-a8e2-a9f0b1d6cdce|6cb0de4f-9bb5-4778-ab02-bfb62735f3e5

          With Ubuntu, sudo apt install qtcreator is an other way.

          Donate anonymously 1€/$ by year to UBports, all Ubuntu Touch users can do it ! Demonstration:
          https://forums.ubports.com/topic/1262/donate-anonymously-1-by-year-to-ubports-all-ubuntu-touch-users-can-do-it-demonstration/

          1 Reply Last reply Reply Quote 0
          • C Offline
            CiberSheep @djkemmet
            last edited by CiberSheep 13 Jun 2020, 09:22

            @djkemmet quick answering:

            • Python is as good as any other language to app
            • As you discovered, no adb (the PinePhone doesn't use Android drivers, just mainline kernel) so as pointed above, shh
            • Even of there is work to make Qt Creator work again, we use clickable for developement: https://clickable-ut.dev/

            Maybe you want to join forces with MiMeCar https://qt-programming-course-sphinx.readthedocs.io/en/latest/

            Another planet, another time, another universe!

            1 Reply Last reply Reply Quote 0
            • H Offline
              hummlbach @djkemmet
              last edited by hummlbach 13 Jun 2020, 09:38

              @djkemmet said in Developing UBPorts apps with Python and PinePhone (questions:

              ... If I understand correctly, you need QT Creator to build your interface and in some cases code logic ...

              You don't need qtcreator at all. But it might be useful to get code completion/navigation for example. Therefor it needs to be configured/setup correctly. @lduboeuf and @jonius are working on that currently. (See latest Q&A: https://www.youtube.com/watch?v=ir4hqfayd7w)

              Regarding python for the app backend/logic you may want to have a look at:

              • https://pyotherside.readthedocs.io/en/latest/
              • https://github.com/timsueberkrueb/ubports-gettogether/blob/master/timsueberkrueb/pyotherside/presentation.md
              • https://gitlab.com/hummlbach/keylock
              1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User @djkemmet
                last edited by 13 Jun 2020, 09:46

                @djkemmet hello, once you have clickable up and running, if you want to preview your app on your PC/laptop you (this can aid quick development) can do:

                clickable desktop
                

                Clickable docs: https://clickable-ut.dev/en/latest/index.html

                Good luck.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  djkemmet @Bolly
                  last edited by 15 Jun 2020, 17:46

                  @Bolly said in Developing UBPorts apps with Python and PinePhone (questions:

                  @djkemmet said in Developing UBPorts apps with Python and PinePhone (questions:

                  *We can't use ADB with PinePhone which is what 90% of the documentation references. So what do you do now to send an app to the pine phone to test? I have a suspicion you do this with SSH Somehow based off what I'm reading. See

                  clickable --ssh ip

                  Does any additional set up need to be done on the PinePhone or clickable sign into the device and do everything to make it work?

                  1 Reply Last reply Reply Quote 0
                  7 out of 7
                  • First post
                    7/7
                    Last post