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

Posts

Recent Best Controversial
  • RE: How to sync contacts of a CalDav server successfully?

    Hi,
    Here the script I use to sync on UT my carddav account on my baikal server :

    #!/bin/bash
    # This script is a draft combination of the script found at https://gist.github.com/tcarrondo
    # It is more or less to remember what I have done to make it work for my Fairphone 2 with UBports ubuntu touch
    # Combined by me: Sebastian Gallehr <sebastian@gallehr.de>
    # Thanks to: Tiago Carrondo <tcarrondo@ubuntu.com>
    # Thanks to: Romain Fluttaz <romain@botux.fr>
    # Thanks to: Wayne Ward <info@wayneward.co.uk>
    # Thanks to: Mitchell Reese <mitchell@curiouslegends.com.au>
    # --------------- [ Server ] ---------------- #
    #CAL_URL="https://domaine.ovh/baikal/html/cal.php/calendars/username/default/"      # insert the CalDAV URL here
    CONTACTS_URL="http://domaine.ovh/baikal/html/card.php/addressbooks/username/default/" # insert the CardDAV URL here
    USERNAME="username"                # your CalDAV/CardDAV username
    PASSWORD="password"                # your CalDAV/CardDAV password
    
    # ----------------- [ Phone ] ----------------- #
    #CALENDAR_CONFIG_NAME="Baikal"   # I use "myCloud"
    CONTACTS_CONFIG_NAME="Baikal"   # I use "myCloud"
    
    #CALENDAR_NAME="personalcalendar"          # I use "personalcalendar"
    #CALENDAR_VISUAL_NAME="BaikalCalendar"   # a nice name to show on the Calendar app like "OwnCalendar"
    
    CONTACTS_NAME="personalcontacts"          # I use "personalcontacts"
    CONTACTS_VISUAL_NAME="BaikalContact"   # a nice name to show on the Contacts app like "OwnContacts"
    
    CRON_FREQUENCY="hourly"               # Sync frequency, I use "hourly"
    
    
    export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35)
    
    #CALENDAR
    
    #Create Calendar
    #syncevolution --create-database backend=evolution-calendar database=$CALENDAR_VISUAL_NAME
    #Create Peer
    #syncevolution --configure --template webdav username=$USERNAME password=$PASSWORD syncURL=$CAL_URL keyring=no target-config@$CALENDAR_CONFIG_NAME
    #Create New Source
    #syncevolution --configure backend=evolution-calendar database=$CALENDAR_VISUAL_NAME @default $CALENDAR_NAME
    #Add remote database
    #syncevolution --configure database=$CAL_URL backend=caldav target-config@$CALENDAR_CONFIG_NAME $CALENDAR_NAME
    #Connect remote calendars with local databases
    #syncevolution --configure --template SyncEvolution_Client syncURL=local://@$CALENDAR_CONFIG_NAME $CALENDAR_CONFIG_NAME $CALENDAR_NAME
    #Add local database to the source
    #syncevolution --configure sync=two-way database=$CALENDAR_VISUAL_NAME $CALENDAR_CONFIG_NAME $CALENDAR_NAME
    #Start first sync
    #syncevolution --sync refresh-from-remote $CALENDAR_CONFIG_NAME $CALENDAR_NAME
    
    #CONTACT
    
    #Create contact list
    syncevolution --create-database backend=evolution-contacts database=$CONTACTS_VISUAL_NAME
    #Create Peer
    syncevolution --configure --template webdav username=$USERNAME password=$PASSWORD syncURL=$CONTACTS_URL keyring=no target-config@$CONTACTS_CONFIG_NAME
    #Create New Source
    syncevolution --configure backend=evolution-contacts database=$CONTACTS_VISUAL_NAME @default $CONTACTS_NAME
    #Add remote database
    syncevolution --configure database=$CONTACTS_URL backend=carddav target-config@$CONTACTS_CONFIG_NAME $CONTACTS_NAME
    #Connect remote contact list with local databases
    syncevolution --configure --template SyncEvolution_Client Sync=None syncURL=local://@$CONTACTS_CONFIG_NAME $CONTACTS_CONFIG_NAME $CONTACTS_NAME
    #Add local database to the source
    syncevolution --configure sync=two-way backend=evolution-contacts database=$CONTACTS_VISUAL_NAME $CONTACTS_CONFIG_NAME $CONTACTS_NAME
    #Start first sync
    syncevolution --sync refresh-from-remote $CONTACTS_CONFIG_NAME $CONTACTS_NAME
    
    #Add Sync Cron job
    #sudo mount / -o remount,rw
    #COMMAND_LINE="export DISPLAY=:0.0 && export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo 'dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}' | tail -c35) && /usr/bin/syncevolution $CALENDAR_NAME && /usr/bin/syncevolution $CONTACTS_NAME"
    #sudo sh -c "echo '$COMMAND_LINE' > /sbin/sogosync"
    #sudo chmod +x /sbin/sogosync
    
    #CRON_LINE="@$CRON_FREQUENCY /sbin/sogosync"
    #(crontab -u phablet -r;) # only if no other cron jobs already exist in crontab
    #(crontab -u phablet -l; echo "$CRON_LINE" ) | crontab -u phablet -
    #sudo mount / -o remount,ro
    #sudo service cron restart
    

    The script comes from the UT wiki, with some minor modifications.
    As you can see in the script, I don't use the crontab services. I prefer to sync manually.
    Here is the bash_aliases I use to sync my contacts :
    alias SyncContact="syncevolution baikal personalcontacts"
    Don't forget to set your favorite address book in Contact/Preference, to automatically add your new contacts to the synced address book.

    posted in Support
    E
    Ellypsis
    22 Dec 2018, 18:16
  • UT home concept

    Hello everyone,
    I just want to share here a nice concept which pop up in the french telegram group.
    It seems that the concept exists since the start of UT under Canonical.
    1_1543778027100_photo5773891610696855522.jpg 0_1543778027100_photo5773891610696855521.jpg
    I like the concept too, but meanwhile, I also like to have a empty home with a nice wallpaper and the clock.
    Cheers

    posted in Design
    E
    Ellypsis
    2 Dec 2018, 19:19
  • RE: Bug with the Music app

    @advocatux You're right. I didn't see the warning about the repository.
    Maybe a mention should be add to the readme with the link of the active repo.

    posted in Support
    E
    Ellypsis
    23 Nov 2018, 23:15
  • RE: Bug with the Music app

    The bug was already reported :
    https://github.com/ubports/music-app/issues/37

    posted in Support
    E
    Ellypsis
    23 Nov 2018, 22:20
  • Keyboard feature for landscape mode

    On UBports French group, Aldo (@Aldolinux ?) share us a nice feature of Firefox OS (RIP).
    On landscape mode, the keyboard split in two and the middle of the screen on all its height is dedicated to the "editor".
    Here some pictures/screenshot :
    0_1539641617200_photo5908816522242010802.jpg
    0_1539641624400_photo5908816522242010803.jpg
    I really like the idea, but I never add the chance to try it.
    Maybe it's something that we could keep in mind for future OTA?
    Feel free to comment!

    posted in Design
    E
    Ellypsis
    15 Oct 2018, 22:16
  • RE: Reinstall Music app

    @nerd7473 it's in /otp and not in /home/phablet

    posted in Support
    E
    Ellypsis
    14 Oct 2018, 00:26
  • RE: Hey guys can someone do a click of Transmission

    You want to download on your cell, or just manage a torrent app on a server?

    posted in General
    E
    Ellypsis
    3 Oct 2018, 16:27
  • RE: QML : need help so solve a warning

    @mymike Thanks! I will keep that in mind for future application 😉

    posted in App Development
    E
    Ellypsis
    1 Oct 2018, 22:42
  • RE: QML : need help so solve a warning

    I did a work around. I replaced my Grid layout to a rectangle layout.
    Maybe it's a bit dirty, but it works fine.
    New code here : https://github.com/ellypsis/Mines/tree/timer%26mine_counter

    posted in App Development
    E
    Ellypsis
    30 Sept 2018, 16:44
  • QML : need help so solve a warning

    Hi!
    I'm contributing to the app Mines to learn QML.
    I add a timer and a mine counter to tell how many mine left in the minefield.
    It's promising, but I have a warning when I launch the app after compiling.
    It's about an item Grid inside an item Rectangle (QML speaking).
    Here the code :

    Grid {
        id: statBar
        width: parent.width
        height: units.gu(20)
        anchors {
            bottom: parent.bottom
        }
        //anchors.fill: parent
        horizontalItemAlignment: Grid.AlignHCenter
        verticalItemAlignment: Grid.AlignVCenter
        columns: 2
    
        Rectangle {
            id: time_elapsed_rectangle
            height: parent.height
            width: parent.width/2
            anchors {
                left: parent.left
                verticalCenter: parent.verticalCenter
            }
    
            Row {
                anchors {
                    horizontalCenter: parent.horizontalCenter
                    verticalCenter: parent.verticalCenter
                }
    
                Image {
                    id: time_icon
                    anchors {
                        verticalCenter: parent.verticalCenter
                        margins: units.gu(2)
                    }
                    source: "../assets/time.svg"
                }
                Rectangle{
                    width: units.gu(8)
                    height: parent.height
                    anchors.verticalCenter: parent.verticalCenter
    
                    Item {
                        Component.onCompleted: reset_timer()
                        Timer {
                            id: timer
                            interval: 500; running: false; repeat: true
                            onTriggered: time.text = minefield.update_time_elapsed()
                        }
                    }
                    Text {
                        id: time
                        anchors {
                            verticalCenter: parent.verticalCenter
                            horizontalCenter: parent.horizontalCenter
                        }
                    }
                }
            }
        }
    
        Rectangle {
            height: parent.height
            anchors {
                right: parent.right
                left: time_elapsed_rectangle.right
                verticalCenter: parent.verticalCenter
            }
    
            Row {
                anchors {
                    horizontalCenter: parent.horizontalCenter
                    verticalCenter: parent.verticalCenter
                }
    
                Image {
                    id: mine_icon
                    anchors {
                        verticalCenter: parent.verticalCenter
                        margins: units.gu(2)
                    }
                    source: "../assets/mine.svg"
                }
    
                Rectangle{
                    width: units.gu(8)
                    height: parent.height
                    anchors.verticalCenter: parent.verticalCenter
    
                    Text {
                        anchors {
                            verticalCenter: parent.verticalCenter
                            horizontalCenter: parent.horizontalCenter
                        }
                        text: minefield.n_flags + "/" + minefield.n_mines
                    }
                }
            }
        }
    }
    

    And here my warning :
    file:///home/ellypsis/dev/linux_phone/ut_app/Mines/build/tmp/qml/Main.qml:210:13: QML Grid: Cannot specify anchors for items inside Grid. Grid will not function.
    But in fact, the code functions pretty well. But it's not a reason to let a warning in the code.
    Any idea?

    You can find the entire code here : Github - ellypsis/Mines

    posted in App Development
    E
    Ellypsis
    27 Sept 2018, 23:35
  • RE: Ubuntu Touch Programming Course

    Hi @mimecar ! any news about your programming course? Do you need help on anything?

    posted in App Development
    E
    Ellypsis
    19 Sept 2018, 23:49
  • RE: Attention UBports Community! We Would Like Your Help

    Done! Thanks Querida for your engagement!

    posted in News
    E
    Ellypsis
    19 Sept 2018, 23:42
  • RE: ufw problems with OT4

    @advocatux hmm that's something I wanted to avoid. Maybe if I reinstall ufw? How can I make the / writable? It was easy on 15.04, but I'm not sure on 16.04

    posted in Support
    E
    Ellypsis
    8 Sept 2018, 12:52
  • RE: ufw problems with OT4

    @lakotaubp I'm not sure to switch to dev channel as it's my daily driver.
    I suppose that the problem will be corrected in OTA5

    posted in Support
    E
    Ellypsis
    7 Sept 2018, 11:02
  • RE: bandwidth counter for mobile data connection

    I was about to post a reply to this post, but I found this bug on GitHub : Mobile data usage monitoring #66
    Just to let other know that's a work in progress 😉

    posted in OS
    E
    Ellypsis
    6 Sept 2018, 22:36
  • RE: Mobile data monitoring

    I was about to post a reply to this post, but I found this bug on GitHub : Mobile data usage monitoring #66
    Just to let other know that's a work in progress 😉

    posted in Support
    EllypsisE
    Ellypsis
    6 Sept 2018, 22:36
  • ufw problems with OT4

    Hi everyone,
    I upgrade recently from 15.04 to 16.04 stable on OPO.
    On 15.04, i used ufw as firewall, as it's pre-installed.
    But after uprading to 16.04, I couldn't manage to have it working.
    Here the error I get when I try to enable it :

    phablet > sudo ufw enable
    sudo: unable to resolve host phablet
    [sudo] password for phablet: 
    WARN: uid is 0 but '/etc' is owned by 109
    WARN: uid is 0 but '/' is owned by 109
    ERROR: Couldn't stat '/etc/ufw/user.rules'
    

    And when I try to get the status :

    phablet > sudo ufw status
    sudo: unable to resolve host phablet
    [sudo] password for phablet: 
    ERROR: Couldn't stat '/etc/ufw/user6.rules'
    

    Any idea?
    I know that 16.04 introduced some changes in the core, but I don't really know what.

    posted in Support
    EllypsisE
    Ellypsis
    6 Sept 2018, 22:28
  • RE: Reinstall Music app

    @advocatux Thanks, it was that!
    I delete the broken simlink in /opt/click.ubuntu.com/.click/users/phablet/symlink

    posted in Support
    EllypsisE
    Ellypsis
    4 Sept 2018, 23:24
  • Reinstall Music app

    Hi,
    Is there a way to reinstall the music app?
    I did a cleanup of my OPO before switching from Vivid to Xenial, and removed the music app.
    But it wasn't reinstalled during the update.
    How can I reinstall it, as it's not available in the Open Store?
    Thanks

    posted in Support
    EllypsisE
    Ellypsis
    3 Sept 2018, 23:57
  • RE: Dekko2 Developer Community Thread

    @flohack Maybe if you use the UT Twaek Tool to clear the cache of the dekko2 app?

    posted in App Development
    EllypsisE
    Ellypsis
    26 Aug 2018, 22:09