Core Apps & Documentation Updates #2
-
Hello again friends! I have another quick update on the core apps & developer documentation.
- Weather
- Welcome App
- Moved to GitLab
- Fixed broken links
- Cool visual refresh coming soon
- Gallery
- 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
- Developer Documentation
Thanks to all the hard work of our Core App developers/contributors, all the great translators, and our documentation writers!
-
Well done with this, @bhdouglass
-
It wasn't all me, it wouldn't be possible without the many contributors!
-
@bhdouglass Thanks to one and all once again.
-
@bhdouglass & team, great job once again !!
-
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 -
@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
-
@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
-
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 -
@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
-
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
-
@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