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

    Core Apps & Documentation Updates #2

    App Development
    6
    12
    1.3k
    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.
    • bhdouglassB
      bhdouglass
      last edited by

      Hello again friends! I have another quick update on the core apps & developer documentation.

      • Weather
        • Removed "The Weather Channel" data provider
        • Moved to GitLab
      • Welcome App
        • Moved to GitLab
        • Fixed broken links
        • Cool visual refresh coming soon
      • Gallery
        • Moved to GitLab
      • Calendar
        • Fixed setting of the default calendar
        • Fixed custom reminders
        • Improved working hours
        • Fixed long pressing to add events
        • Recurring events have their intervals shown in the event details
      • Document Viewer
        • Moved to GitLab
      • Developer Documentation
        • Tutorial on writable directories
        • Tutorial on Push Notifications
        • Tutorial on User Metrics

      Thanks to all the hard work of our Core App developers/contributors, all the great translators, and our documentation writers!

      open-store.io && bhdouglass.com

      ? advocatuxA 2 Replies Last reply Reply Quote 6
      • ?
        A Former User @bhdouglass
        last edited by

        🙂 Well done with this, @bhdouglass

        1 Reply Last reply Reply Quote 0
        • bhdouglassB
          bhdouglass
          last edited by

          It wasn't all me, it wouldn't be possible without the many contributors!

          open-store.io && bhdouglass.com

          LakotaubpL 1 Reply Last reply Reply Quote 2
          • LakotaubpL
            Lakotaubp @bhdouglass
            last edited by

            @bhdouglass Thanks to one and all once again.

            1 Reply Last reply Reply Quote 1
            • advocatuxA
              advocatux @bhdouglass
              last edited by

              @bhdouglass & team, great job once again !!

              1 Reply Last reply Reply Quote 0
              • F
                fulvio
                last edited by

                Hi All,
                if can help, i have published some application templates to use as starting point for Application development based on AdaptiveLayout, ListView, Chart, PageStack.
                Templates and How to tutorial can be found at: https://github.com/fulvio999/ubports_app_templates
                @bhdouglass If you want, feel free to clone, edit or include in the doc.
                Thanks

                M 1 Reply Last reply Reply Quote 3
                • M
                  matteo @fulvio
                  last edited by matteo

                  @fulvio Hi fulvio, thank you for your templates, I find your work very useful, great! Unfortunately, as all the new things though, it doesn't work for me at the first attempt.
                  It is worth to mention I have installed clickable and cookiecutter and I'm following your tutorial. This is the output I got, I'm not even able to get to the point where cookiecutter asks me for the name of the app:

                  https://paste.ubuntu.com/p/75M66js42D/

                  Matteo

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    matteo @matteo
                    last edited by

                    @fulvio never mind, I just solved by myself, 'cause I'm really a dumb....I set the address pointing to the cookiecutter.json, writing it as './ubports_app_templates-master/ChartJs/cookiecutter.json' but in this way it is interpreted by the command as written twice. I can now proceed.

                    Best regards,

                    Matteo

                    1 Reply Last reply Reply Quote 0
                    • F
                      fulvio
                      last edited by

                      Hi @matteo,
                      you must use the FULL path to the cookiecutter.json file of the template that you want use.
                      I have updated the Readme file on github (see "Example" section)
                      Tnx

                      M 1 Reply Last reply Reply Quote 2
                      • M
                        matteo @fulvio
                        last edited by

                        @fulvio nice, how you changed that sentence is much clearer now, thanks 😉 May I ask you a question? I'm right now mainly interested in the ChartJs template, to generate a chart starting from data. If I wanted to generate a chart from X and Y data produced by different sources, how could I proceed? I mean, can I use a different data file source as for instance a LibreOffice sheet or just a plain text file which is randomly populated, instead than the ChartDataSource.js, where the data are static?
                        Any hint would be greatly appreciated.

                        Thank you!

                        Matteo

                        F 1 Reply Last reply Reply Quote 0
                        • F
                          fulvio @matteo
                          last edited by

                          Hi @matteo,
                          yes is possible load data from a different source, like a database sqlite the database used by Ubuntu touch (Ubports)
                          For an example about chart + data loaded from sqlite database look at this:
                          https://mimecar.gitbook.io/qt-course/en/chapter-05-advanced/chapter-05-s01
                          ("Database access with QML" and "QML and Charts" chapters)
                          The sample App associated with "QML and Charts" chapter can be found here:
                          https://github.com/mimecar/ubuntu-touch-programming-course-src
                          (is the project named: WeatherRecorderChart)
                          NOTE: that project are made with old Ubuntu sdk - ide But should work also with clickable (just 'clickable desktop' in the folder with the .pro file)
                          In case of does not work with clickable, the source code of the sample App is valid you can use it.

                          the two file you are interested are:
                          'ChartUtils.js' is the file containing the query to load data from sqlite database and prepare the data-set for the chart
                          'ChartPage.qml' is the qml page where the chart is drawn


                          To load data from a Libre Office sheet...sorry but i don't know how to do (maybe someone here have an idea, solution).

                          Tnx

                          1 Reply Last reply Reply Quote 1
                          • bhdouglassB
                            bhdouglass
                            last edited by

                            @fulvio I've added a link to your templates to the ubport's docs (it's not quite there yet, still a PR): https://github.com/ubports/docs.ubports.com/pull/174

                            open-store.io && bhdouglass.com

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post