UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. pavelprosto
    3. Best
    Offline
    • Profile
    • Following 1
    • Followers 2
    • Topics 9
    • Posts 83
    • Groups 0

    Posts

    Recent Best Controversial
    • Need testers Home Screen for Ubuntu Touch

      screenshot.jpg

      Sometimes it is necessary to minimize the active application to the tray. So that the next time you turn on the screen, it would be active, but not occupy an active place. uHome, a home screen with widgets support, will help you with this task.

      The application has its own built-in widgets. In addition, you can download other widgets to customize your home screen more.

      • An analog clock will always show you the current time, and a variety of themes allow you to customize it to your liking.
      • Stickers will help you remind you of the most important things. And their striking design attracts attention.
      • The link can create an internet link or launch an application with URLdispatcher support.

      For developers

      Widgets are able to receive information from the Internet, receive and send files from the Content Hub.

      To write temporary files, the directory is used:
      /home/phablet/.cache/uhome.pavelprosto/
      Custom widgets are located at:
      /home/phablet/.local/share/uhome.pavelprosto/

      Widgets can't!

      • Have access to user files
      • Have access to a camera or microphone
      • Have access to location
      • Launch and access application files (only URLdispatcher available)
      • Have access to sms, calendar and phone book

      You can create your own widgets using QML and PyOtherSide. See examples of standard widgets and example of weather widget.

      You can download this in openstore
      source code on github
      OpenWeatherMap widget for uHome

      screenshot.jpg

      Add this widget to your home screen and stay up to date with the current weather
      You can uninstall this application after successfully installing the widget.

      You can download widget in openstore
      source code on github

      posted in App Development testing widget development homescreen
      pavelprostoP
      pavelprosto
    • Python examples

      I wrote Python examples. Maybe someone will help

      • First project for Ubuntu Touch - Hello, world!

      • Create RGBA Image with Python on Ubuntu Touch

      • Writing a Calculator on Python for Ubuntu Touch

      • Interacting with QML Interface via Python on Ubuntu Touch

      • Working with Web Content with Python on Ubuntu Touch

      • Dynamically creating objects to ListBox with Python on Ubuntu Touch

      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Need testers Home Screen for Ubuntu Touch

      https://open-store.io/app/uhome.pavelprosto
      uHome is published in the open-store
      It was a very long and difficult journey. Thank you all for your tremendous support!
      I leave this topic for testing new beta versions and finding bugs 😃

      posted in App Development
      pavelprostoP
      pavelprosto
    • Need testers Transmission client

      I wrote a Transmission client interface for Ubuntu Touch. I would be very happy to test it and get feedback.
      You can download it here
      transmission.pavelprosto_1.0.0_all.click
      Please inform:

      • Does the program work?
      • The name of your device
      • The architecture of your processor ( in the terminal, command arch )
      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Need testers Transmission client

      Problem solved 🙂
      I finish the final touches and publish in OpenStore !
      THANKS VERY MUCH FOR YOUR HELP! 😘

      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Python examples

      I am very glad that everyone really liked my examples.:heart_suit:
      I see this as a great need for the development of the community and will continue learning modules in Python Ubuntu Toch :beaming_face_with_smiling_eyes:

      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Don't have permission to exec library in cache directory

      @dobey THANK YOU VERY MUCH!
      It is fantastic! Everything works with safe permission 😉
      I finish the final touches and publish in OpenStore 😘

      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Need testers Home Screen for Ubuntu Touch

      Thank you all for the kind words of support 😃 You inspire me and give me strength:flexed_biceps: I keep developing, see you soon in the open-store

      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Need testers Home Screen for Ubuntu Touch

      New version to upload in Open Store and GitHub:

      • The api of the application was updated on GitHub for everyone
      • The position of the widget settings button has been changed so as not to overlap with other elements.
      • New template browser for links. Added many new
      • Added Analog Watch Dial
      • Added Dutch translation
      • Added time update slider for weather widget

      What hasn't been fixed/added yet

      • Landscape mode does not work fully
      • Widgets still do not support localization(only the program itself can be translated)
      • Later I will add a browser for icons for the link widget
      • There was a wish that the stickers could be of any color.
      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Camera rotation

      @stanwood It's nice to go to the forum and read that my app is already recommended. Thank you so much :grinning_face:
      I have now paused the development of this project (I am working on another project).
      In the future, I plan to:

      • Add IPTV support.
      • Desktop-mode support (waiting MHL adapter)
      • And support for video subtitles
      posted in Google Nexus 6P
      pavelprostoP
      pavelprosto
    • RE: Need testers Transmission client

      New pre-final version of Transmission.

      • Testing has shown that the library works on all types of processor.
        (The inscription "This library is compiled for the armv7l architecture, so errors may occur" has been removed from the installer)
      • Fixed a bug with a white screen after installing the library (Previous you need restart the application)
      • The interface has been updated to the classic Ubuntu Touch presentation. It now looks more compact.
      • Updated localization of the Russian language.
        screenshot_big.png

      Known bugs that I will fix in future releases.

      • Due to sleep mode, torrent downloads can pause on their own (you have to manually pause and restart).
        This bug will be fixed after: I teach the app to detect the approximate download time. Then, the program will be able to restart the download on its own.
      • If your device does not have enough space, then the torrent is added, but it gives an error [Errno 28] No space left on device
        In the future, I will teach the program to determine the size of the loaded content and not add it if there is not enough space.
        (I also plan to add a selective file download mode if a torrent with many files is being downloaded.)

      The new version can be downloaded here:
      transmission.pavelprosto_1.0.0_all.click
      I would be very happy to test it and get feedback.

      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Need testers Transmission client

      @cibersheep I find your comments very helpful. I love Ubuntu Touch and want to create beautiful apps that don't look like Android.

      I have ideas on how to redesign the pause and delete torrent buttons. But I will already implement this in the next versions 🙂

      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Don't have permission to exec library in cache directory

      If someone needs to create a front-end wrapper for a binary console program, here's how it can be implemented

      create global environment
      glob.py

      import os
      
      APP_PKG_NAME = os.path.abspath(__file__)
      APP_PKG_NAME = APP_PKG_NAME[APP_PKG_NAME.find(".com/")+5:]
      APP_PKG_NAME = APP_PKG_NAME[:APP_PKG_NAME.find("/")]
      SCRIPTPATH = os.path.abspath(__file__)
      SCRIPTPATH = SCRIPTPATH[:SCRIPTPATH.rfind('/')]
      
      CACHEPATH = "/home/phablet/.cache/"+APP_PKG_NAME
      DATAPATH = "/home/phablet/.local/share/"+APP_PKG_NAME
      CONFIGPATH = "/home/phablet/.config/"+APP_PKG_NAME
      
      DOWNLOADPATH = CACHEPATH+"/Download"
      TMPPATH = CACHEPATH+"/tmp"
      RESUMEPATH   = CACHEPATH+"/resume/"
      TORRENTSPATH = CACHEPATH+"/torrents/"
      
      MY_ENV = {"HOME" : CACHEPATH }
      MY_ENV["PWD"] = CACHEPATH
      MY_ENV["TMPDIR"] = CACHEPATH+"/tmp"
      MY_ENV["PATH"] = DATAPATH+"/transmission/bin"
      MY_ENV["LD_LIBRARY_PATH"] = DATAPATH+"/transmission/lib/"
      MY_ENV["PKG_CONFIG_PATH"] = DATAPATH+"/transmission/lib/pkgconfig"
      
      if not os.path.exists(DATAPATH):
          try:
              os.makedirs(DATAPATH)
          except Exception as e:
              print("Can't create DATAPATH dir:\n"+DATAPATH)
              print(e)
      
      if not os.path.exists(CONFIGPATH):
          try:
              os.makedirs(CONFIGPATH)
          except Exception as e:
              print("Can't create CONFIGPATH dir:\n"+CONFIGPATH)
              print(e)
      
      if not os.path.exists(CACHEPATH):
          try:
              os.makedirs(CACHEPATH)
          except Exception as e:
              print("Can't create CACHEPATH dir:\n"+CACHEPATH)
              print(e)
      
      if not os.path.exists(DOWNLOADPATH):
          try:
              os.makedirs(DOWNLOADPATH)
          except Exception as e:
              print("Can't create DOWNLOAD dir:\n"+DOWNLOADPATH)
              print(e)
      
      if not os.path.exists(TMPPATH):
          try:
              os.makedirs(TMPPATH)
          except Exception as e:
              print("Can't create TMP dir:\n"+TMPPATH)
              print(e)
      

      Correct location of all files is very important!!!
      DATAPATH: contains all executables and libraries
      CONFIGPATH: contains the settings for your application. But not settings for a binary console program, its settings must be stored in CACHEPATH
      CACHEPATH: contains all files resulting from program execution.
      Now you will be able to launch and communicate with the console program through your environment:

      ...
      import subprocess
      import re
      import shlex
      import glob
      ...
      CMD="transmission-show"
      def strip_color(s):
         return re.sub('\x1b\\[(K|.*?m)', '', s)
      
      def _process(command_string, path=""):
             cmd_args = shlex.split(command_string)
             try:
                 PROCESS = subprocess.Popen(cmd_args,
                                     stdout=subprocess.PIPE,
                                     stderr=subprocess.STDOUT,
                                     universal_newlines=True,
                                     shell=False,
                                     executable=None,
                                     env=glob.MY_ENV,
                                     cwd=path)
             except Exception as e:
                 yield strip_color(str(e))
             else:
                 for stdout_line in iter(PROCESS.stdout.readline, ''):
                     yield strip_color(stdout_line)
                 PROCESS.stdout.close()
                 return_code = PROCESS.wait()
                 if return_code:
                     raise subprocess.CalledProcessError(return_code, command_string)
      ...
      for stdout_line in _process(CMD+" \""+FILENAME+"\"", glob.CACHEPATH):
         print(stdout_line)
      ...
      
      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Need testers Home Screen for Ubuntu Touch

      Because the new version of uHome will hit the open-store this weekend 😃

      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Need testers Home Screen for Ubuntu Touch

      @domubpkm
      I forgot to add a button to remove custom wallpaper! I will definitely do this in the next update.
      I have not forgotten about live wallpapers and I am thinking about it. I have a couple of ideas and ways to implement this.
      About Dekko, I really love this email client too. Unfortunately I cannot implement a widget for it, uHome's permission are very very limited.
      But it can be implemented by the Dekko programmer. His application can interact with my desktop and I will be happy to help him with this.

      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Need testers Home Screen for Ubuntu Touch

      @keneda Yes! Thank you so much for this idea
      And about express contacts. For the link to work correctly, it must be in the form of:
      tel://<country code>.<subscriber's number>
      For example in Russia the country code is 8
      So the link of the express contact:
      tel://8.1234567890
      https://en.wikipedia.org/wiki/Trunk_prefix

      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Python examples

      I think it's possible. In Ubports Developer Docs has a Sample Apps section:
      https://docs.ubports.com/en/latest/appdev/
      Over the weekend I will figure out how it can be edited to add Python Examples :beaming_face_with_smiling_eyes:

      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Need testers Transmission client

      @matteo @Keneda Thank you so much.
      As I can see, the library works correctly on different phones. So I will delete the scary inscription:

      "This library is compiled for the armv7l architecture, so errors may occur.Install at your own risk."
      
      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Don't have permission to exec library in cache directory

      @cibersheep Yes,I want to write a guide. But first I need to make sure it works for all console programs.
      I tried, add the previous guides in github
      https://docs.ubports.com/en/latest/appdev/guides/index.html

      But something didn't work out for me. I try will do this in spare time 🙂

      posted in App Development
      pavelprostoP
      pavelprosto
    • RE: Need testers Home Screen for Ubuntu Touch

      @keneda STOP, no need to reset the Scale parameter in UT Tweak Tool . I found a way out, I will add this fix already in this release.

      posted in App Development
      pavelprostoP
      pavelprosto