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

    Posts

    Recent Best Controversial
    • Contacts CardDav - automatic setup and sync through this script

      Hi all UT users, here is a Carddav script to sync your contacts easily.
      You'll need your Carddav URL, username and password, and that's it !

      The script has to be runned (so chmod +x script_file to make it executable), through adb or through your phone.

      It let you choose to install a manual sync icon, and to setup an automatic sync through systemd.

      It will also let you delete a sync quickly, and get rid of its manual sync icon and autosync systemd files. You just have to remember your carddav config name, and type it !

      Here is a little video i made to demo it
      https://diode.zone/w/89PaXUEKTT443wSDtAQX9t

      And you can download it here !

      The github :
      https://github.com/samytichadou/ubuntutouch_carddav_sync_script

      Only tested on my FP4 with UT focal for now ! Don't hesitate to report any issues or if everything went smooth here

      Hope it can fill the gap while waiting for a proper UT implementation 🙂

      This script is based on this one by Bastos77 and Vanyasem, thanks a lot to them !

      PS : I don't have the skills/time to make it a proper UT app, but if anyone out here is interested to do it, don't hesitate to ping me !

      Cheers

      posted in General
      T
      tonton_
    • Zouip - Clipboard sharing between UT and linux desktop

      Hi guys, here is a small thread to show the progress and ask for feedback (and maybe help sometimes 🙂 ) on a small app i'm trying to write for UT called Zouip !

      Zouip wants to be a background clipboard sharing system between UT and linux (and linux and linux) !
      It allows to share files and text through local network. It is not available for now, but you can check my mess on the github 😉 :https://github.com/samytichadou/zouip

      It will be composed on every unit by a receiver (server) and a sender (client). The sender detects new clipboard contents, and send it to a bunch of saved receiver across the network basically.

      For now, i have a working prototype of the file sharing, not the from file-into clipboard on receiver side. It means all text/files will be share as file only, not available for direct pasting on receiver unit.

      The current implementation is for KDE plasma only (i'm using it at home) but i plan on porting it to gnome.

      It is coded in python and uses DBUS to get the clipboard, and socket to send the content.

      A config file contains receiver/sender infos and a passphrase (plain text for now) receiver-specific. All senders have to give it, and the correct receiver port (no handshake system) to be able to communicate.

      For now, nothing is encrypted, and i'm not sure i will implement a proper encryption system, so if you are concerned about your local network security, be aware of that !

      The python background scripts will be set as systemd services, and activated/unactivated through a qml UI on UT, and a tkinter one on desktop i think (stock python, simpler for me to use).

      Here is a little video demo of the file sharing abilities, desktop and phone are connected through local network !
      https://makertube.net/w/jEscSdyUnSFvPbAsNib5cV

      Don't hesitate to ask questions/give feedback ! cheers !

      posted in App Development
      T
      tonton_
    • RE: Sound not going through bluetooth headphones

      @crispybacon
      Maybe a little bit late, but i had similar pb with pixel 3a and bose speaker.
      Thanks to @mateo_salta i solved this by changing some config settings.

      Here is a little walkthrough pdf :
      https://filedn.eu/lxl4Kp0i9qFSrByo536uLkj/ubports_shared/guide_bt.pdf
      you can try it and see if this solves your issue !

      If it does, you can revert back the changes once it correctly paired, cheers !

      posted in Google Pixel 3a/3a XL
      T
      tonton_
    • RE: Contacts CardDav - automatic setup and sync through this script

      @noahtehomas
      Just updated the github, for info here is the git readme :

      A simple bash script to setup your carddav contact.

      The script also have the ability to setup an auto synchronisation (hourly, daily, weekly...) and to add a sync button in your launcher.

      You can use this script two ways : locally on and from your phone, or through adb (android debug tool) on your computer through a terminal.

      • First you have to put the script file on your phone storage.

        You can do it by *connecting your phone to a computer and using the file explorer.

        You can also use adb : with your phone connected to your computer (with usb debugging activated), you can use this command : adb push filepath_on_your_system destination_filepath_on_phone

      • Then you have to make your file executable and launch it.

        • If you are doing this through adb, first connect to your phone shell with this command adb shell, if you are doing this locally, ignore this last command.
        • Go into the folder you copied the script cd script_folder
        • Make it executable chmod -x ./scriptfile.
        • You can now run the script and follow its instructions ./scriptfile
      posted in General
      T
      tonton_
    • RE: Get/Set clipboard data from DBus or other background options in UT

      @AppLee
      thanks for the tip, i tried with ascii converter, didn't think of that, it works 🙂
      I'll have to parse the resulting ascii (lots of escaped character, and html in it )

      posted in App Development
      T
      tonton_
    • RE: Contacts CardDav - automatic setup and sync through this script

      @noahtehomas
      Thanks for the input, i'll add it to the github readme when i have some spare time!

      posted in General
      T
      tonton_
    • RE: Contacts CardDav - automatic setup and sync through this script

      @Rustic don't have a lot of time for now, but you could try to use this script :
      https://gist.github.com/vanyasem/379095d25ac350676fc70c42efe17c8c
      after removing all contact related lines, and cron related (no more cron on focal)

      If this works for you tell me, i could try to include it in the script (with the auto sync and sync button features) no garanty i'll have time though, sorry !

      if you make it work, something like this should launch the sync :

      syncevolution --sync two-way $CONTACTS_CONFIG_NAME
      

      with $CONTACTS_CONFIG_NAME being the input you set in the script
      tell me if it works for you !

      Oh and radicale calendar, if caldav, should work natively, so you can also fill a bugreport for this if you have time 🙂

      posted in General
      T
      tonton_