Hi,
i plan to implement a MensaMax client in the near future, since i need this to order lunch for my kids. Since there is already a version for UBTouch available (OpenStore), it should not be difficult to make use of the API. In a first step it will most likely be a read-only version (since i often foget to order lunch, and need a way to quickly check the orders).
Help would be appreciated, if there is anybody who is also interested in this kind of app.
Cheers,
Andreas
2 Likes
I was using it with the Sailfish-Browser, but first kid finished today, so no new orders until in maybe 3 years.
I am interested. My daughter is in a school using that. What do you need in terms of help?
Should be easy enough to port as it’s qml-only it seems.
One thing I struggle with after porting one-and-half UT apps is translating the right sizes of their ubiquitous units.gu() function.
I made this as a compat component but it’s not quite right yet:
import QtQuick 2.6
import Sailfish.Silica 1.0
/* compatability for Ubuntu Touch "unit.gu(X)" */
QtObject {
/* https://docs.ubports.com/en/latest/humanguide/design-concepts/units.html
Most laptops 1 gu = 8 px
High DPI laptops 1 gu = 16 px
Phone with 4 inch screen at HD resolution (around 720x1,280 pixels) 1 gu = 18 px
Tablet with 10 inch screen at HD resolution (around 720x1,280 pixels) 1 gu = 10 px
*/
function gu(inval) {
const fact = 0.3
if (Screen.sizeCategory == Screen.Small) return Theme.dp(fact * 18 * inval)
if (Screen.sizeCategory == Screen.Medium) return Theme.dp(fact * 16 * inval)
if (Screen.sizeCategory == Screen.Large) return Theme.dp(fact * 8 * inval)
if (Screen.sizeCategory == Screen.ExtraLarge) return Theme.dp(fact * 10 * inval)
}
function dp(inval) { return Theme.dp(inval) }
}
With this saved as UbuUnits.qml you can then simlply put in Main.qml:
property var units: unitContainer
UbuUnits { id: unitContainer }
and you don’t need to replace all the units calls separately.
I would love to hear which values work for you.
Other Ubu compat tips:
sed -i '/import Qt.labs.settings 1.0/d' *qml
sed -i '/import Ubuntu.Components 1.3/d' *qml
Their Settings is our Nemo.Configuration::ConfigurationGroup
Their MainView is either an ApplicationWindow or a Page with some compat properties.
1 Like
Most likely testing, but we will see, once i am ready…
I finally release a first version of the app - you can find it here:
You can login (you need an account), create an account and view menus for the current and next/previous weeks. You can also see which menu has been selected. General menu data should be displayed - please compare with the web application, to see if something is missing.
So far it is a read only view - but i plan to add at least the ordering of the menu.
Feed free to check it out - i am open for feedback. App needs some polishing an proper translations and an icon. Expecting your feedback 
4 Likes
Just release a new version of the MensaMax application. The new version comes with
- Big UI cleanup - display ordered meals in list
- Allow subscription / unsubscription of meals
- German translation
- Icon added
The version can be downloaded from here: MensaMax | OpenRepos.net — Community Repository System
The main screen of the application now looks like this:
If you are using the Android app, give the SailfishOS version a try. Feedback appreciated.
Cheers,
Andreas
6 Likes