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

    tonton_

    @tonton_

    14
    Reputation
    7
    Profile views
    26
    Posts
    1
    Followers
    0
    Following
    Joined
    Last Online

    tonton_ Unfollow Follow

    Best posts made by tonton_

    • 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_

    Latest posts made by tonton_

    • RE: Contacts CardDav - automatic setup and sync through this script

      I dont think so, my script is merely a setup helper for the existing backend ! I think they are refering to lionel s work on the new contact backend ! Take a look at last ut q&a video where he showcased it, it looks awesome ! 🙂

      posted in General
      T
      tonton_
    • RE: FP 4 without mobile data

      @Labarna hi i had exactly the same problem with my fp4 with bouygues (french carreer), solved it by removing the apn field and left it empty (third field in ut apn settings after utility, name)
      Weird but works for me ! 🙂

      posted in Fairphone 4
      T
      tonton_
    • RE: Zouip - Clipboard sharing between UT and linux desktop

      Ugly but usable and cross-platform tkinter UI coming together for desktop ! 🙂

      c8c3d8c5-c4f0-402e-abc0-7673c3be64ce-image.png

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

      @Rustic
      no you should just be able to run this command (didn't test it though) :

      syncevolution --sync two-way $CONTACTS_CONFIG_NAME
      

      replace the $CONTACTS_CONFIG_NAME by the name you gave to your db, try it, if it works you can put this command in a desktop file (to have an icon to sync manually in your ut launcher) or a systemd timer to auto sync ! (you can take a look at what does my script for these)
      line 131 to 140 for the desktop file and line 148 to 183 for the systemd timer/service files 🙂

      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_
    • RE: Contacts CardDav - automatic setup and sync through this script

      @Rustic
      nice that it worked at least, don't hesitate to report the command output if it fails again 🙂
      and concerning the calendar, i didn't implement it because it works out of the box (for me at least) with UT account system

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

      @wally
      Hi sorry for the video, my peertube instance seems to be off these days, i changed the link, it should work fine now !

      Concerning the size limit, it is a user config settings, if you set it to 0, there is virtually no limit 🙂 The setting is per receiver unit, you can have your computer receive only small files, and your phone every files, no matter the size. My question was more about the way the size limit is handled (limits a folder or a file, not every file in a folder)

      Cancel a transfer in progress will be hard i think, but that is a good idea to keep in mind !

      Thanks for the appreciation words 🙂

      posted in App Development
      T
      tonton_
    • RE: Zouip - Clipboard sharing between UT and linux desktop

      I also tested some command exec through the same system, an example in this little video : sms sending 🙂
      https://makertube.net/w/wQxDonmEU6Y9d5dLc7UP3E

      Still a lot to think about this but i was picturing some kind of command preset, could be neat, created by user, with some custom fields !
      I don't want to dig too deep in getting contacts from the phone, i'm afraid of a rabbit hole... but sending sms could be nice...
      If you have any idea don't hesitate !

      posted in App Development
      T
      tonton_
    • RE: Zouip - Clipboard sharing between UT and linux desktop

      Got the folders to work, less difficulties than expected ! And i got to say, being able to just copy an entire folder (like the Picture folder) from my phone, and seeing them appeared magically on my desktop is a good feeling 🙂

      It has its drawbacks (copying a huge folder by error) so i implemented a size limit to prevent that.

      The size limit acts on all "individual entries" : if you select a folder, it should not exceed this size limit to be copied, but you can enter it, and select files one by one to copy them.
      Example :

      Folder (4mo)
      --- Image1 (2mo)
      --- Image2 (2mo)
      

      With a 3 mo limit, i can't copy the folder directly, but i can "multi select" through the file explorer the two images to copy them

      What do you think about this ?

      posted in App Development
      T
      tonton_
    • RE: Zouip - Clipboard sharing between UT and linux desktop

      @wally thanks for the kind words !
      For now it is not usable because it is not a proper app ^^ just two daemon scripts launched manually !
      I'll be polishing them before turning them into proper app (hard part for me, don't know qml yet, and pretty noob with tkinter or other UI libs...)
      Yep i'm looking into the folder copying, there are a few difficulties about that, but looking good 🙂
      Also looking on notifications for now, i'll keep posting in this thread the advancements, if anyone interested.
      Cheers !

      posted in App Development
      T
      tonton_