Emoncms Android App V2.0.8 (open beta testing)

V2.0.6 update has started rolling out the beta channel with the following fixes and some new features / tweaks:

  • NL and IT translation fixes @bidouilleur
  • Fix IT day of the week translation screen over run
  • Increase Power Now and Power today font size
  • Fix translation feed error page over run
  • Decrease margin
  • Add custom currency option, thanks @gab.lau :thumbsup:
  • Add app version to settings page, thanks @gab.lau

V2.0.6

Hmm,

  • adding custom currency option has introduced a new string ‘custom currency’ which is not translated yet.
  • Version number shown, very good!

The strings to translate are three:

<string name="custom">custom</string>
<string name="settings_title_myelectric_custom_currency">Custom currency</string>
<string name="settings_title_app_information">APP VERSION: </string>

I have already put on the bottom of your files “strings.xml”

Done. I also changed ‘Account’ in most places to ‘Konto’ (still ambiguous about it).

But there is one additional string which does not appear in the strings.xml. It says: ‘Add at least one acoount to proceed’ and comes when the Settings menu is left without any account defined.

1 Like

translations to dutch and french are done

on my old nexus a little problem with overflowing text zones, both in dutch and french this happens.

horizontal and vertical


and with the setting not to dim the screen, when I go in the settings page, it does dim after a few minutes … maybe an android bug though

How old is your old nexus?

My old MotoG 2013 running Android 5.1.1. with a 4.5" screen looks like this:

I think the issue is with the Android version, what version are you running?

This is the galaxy nexus : Galaxy Nexus - Wikipedia

running Android 4.3, latest it can have … what you can call a good
old-timer but according data this version is still 10% of the droid users …
plus it is a rather small screen compared to today’s models that are more
fablets then tels :slight_smile: though yours is smaller

must be relted to droid version, THE big problem in the Android world, to
many different versions and not all compatible … in a few years it will be
better when those old-timers will be gone

It’s not the handset, version of Android or the internationalisation, here’s my Samsung Galaxy S7 edge running Android 7.0

Why has the font size of the values been increased so significantly? previously it looked really well proportioned and worked with larger numbers too.

I have also noticed it is no longer possible to switch between accounts on the app since updating. selecting another account just results in a black screen. If I then exit the app and reopen it the newly selected account is populated but changing back or to another account results in the same blank page. Anyone else seeing this? I haven’t had any time to look into it yet.

Same problem with the oversize fonts here. Especially on the ‘cost’ page the used font is much too big.

The font size was increased in version V2.0.6 to try and make the Power Now and Today figures more readable at a glance. Especially on wall mounted tablets. Even on my 4.5" Moto G 2013 the font size does not look overly large to me, see my post above for screen shot.

This is what the cost screen looks like for me, again I don’t think it’s overly large:

I think there is a separate issue here with the formatting on different devices. On my devices the units are displayed in a much smaller font, in @bidouilleur and @Paul screenshots the units (/h) are displayed in the same size font.

@Paul does the problem go away if you select some feeds to display and set a unit cost? What version are you running? It’s strange that the ‘H’ character is missing from ‘3H’ and ‘6H’ view. The version number is now shown on the settings page.

Hi @glyn.hudson, it’s @pb66 not @paul.

I’m running v2.0.6, (I had to delete an account to access that due to the issue I previously reported about a month ago Emoncms Android App V2.0.8 (open beta testing) - #36 by pb66)

No, I just used an empty page for a clearer view

I hadn’t noticed that, it is odd. I have the latest version and I have cleared the cache, more than once.

How does the app save the settings?

If I set-up 2 or 3 pages, for example ‘Solar’, ‘Usage’ & 'Diverted, allocate the feeds in settings etc, so everything looks fine - graph & barchart display OK ect.
BUT, if I close all running apps (via the android app switcher), and then restart emoncms, all of my settings will be lost, and I need to set up the feeds etc from scratch again. Ggrr!

App v 2.0.6
Android 6
HTC One M8

1 Like

I think that maybe a recent “feature” now you mention it, I had set up several pages for each account (8+ pages per 6 accounts). I DO recall deleting some accounts to access the settings that are squeezed off the settings page, But I have NO recollection of deleting the pages out of the remaining accounts, but they are no longer there!!! I thought I was losing my marbles (please don’t say I cannot lose that what was already lost years ago!) so glad I didn’t spend the afternoon rebuilding!!!

I have also noticed a situation where a named account appears with it’s “emoncmsX” alias shown in the title bar instead, the last time I saw this happen I happened to rotate the phone as I did a double take as saw the “emoncmsX” change to the name I had given it.

i have some of the same problems. The font for the current values is just too big on my phone as well (ascend p7 running android 5.1) not sure what’s it’s resolution nor what the dpi is.

Also after opening my app just now all the pages i had created in the previous version are gone somehow. I can make screenshots if needed.

Might the problems come from dpi and resolution used on phones ? as not all phones have the same resolution nor dpi i guess but i have no clue how the dpi stuff works on android i know on windows this can produce such effects but changing dpi scales the app controls and fonts perhaps something similar is happening here ?

I also had a second account set up for testing against emoncms.org when selecting that using the drop down menu all i get is an empty page

it seems to me that it sometimes displays correctly and sometimes not, it seems to mess up switching between the multiple accounts using the drop menu to switch accounts.

I created a video using game screen recorder (that recorded my desktop on android). I keep trying a few things, readd some settings even whipe the app data as i figured i would have to recreate everything again eventually.

Could the losing the settings be related to the custom currency setting ? perhaps if it is / was missing (as it did not exist in a previous version) it could not load the pages again ?

here’s the youtube video i only started the app a second time after 2.0.6 update. if you take the time looking throught the whole 7 minutes of me messing about you’ll notice that sometimes it does display correctly like after i added the account again it displayed correctly initially but after adding a second account it messed up again.
Also it seems the “add at least one account to proceed” text is not translated to dutch or is not able to be translated

edit: i know my api keys are visible at some point, but it’s a local installation plus i added some bluring on the youtube video using youtube editor but it seems to take some time to process it, it’s currently only at 26% so normally once it has done it should be hidden so i don’t mind

saw the 2.0.7 version today
still have overflow problems, the above video resumes pretty well the problems …

The font sizes are set in “sp”

sp
Scale-independent Pixels - this is like the dp unit, but it is also scaled by the user’s font size preference. It is recommended you use this unit when specifying font sizes, so they will be adjusted for both the screen density and user’s preference.

However it seems like it is not working correctly across all devices. It is possible to set different dimensions for different screen sizes, so I’ll try this to get a bigger output on tablets, and revert the font size on phones.

As reported by @joyrider3774 there is one final string to be translated:

See issue:

@tamsin has now made the string translatable and I’ve just committed a translation using Google translate, any chance @bidouilleur, @joyrider3774 and @gab.lau could proof read it and submit a PR to tweak if needed. Thanks :slight_smile:

@tamsin has committed a change to make the font smaller on phones and larger on tablets. Looks great to me. However, I could never recreate the text overflowing issues on my Nexus devices

I will be pushing a V2.0.8 beta update to Google Play this evening which includes this update and fixes for the loosing pages issues and some extra translated strings. Please could you test and report back. Thanks!

Nexus 5X

Nexus 7

@glyn.hudson dutch translation is correct, don’t know about the other languages.

I’ll check tommorow for the new version as i will have to recreate my 8 or was it 9 my electric pages again.

Btw was it ever determined what the cause was of loosing the pages ? my guess was that the new currency setting as that did not exist in the previous version.

if that’s the cause, what if for any reason another setting gets added in the future wouldn’t the same problem happen again then ?

You will probably find all your pages will re-appear after the update. Since they were never really ‘lost’ just not retrievable

Yes, it was. This was the fix:


V2.0.8 has now been released to beta channel. See release notes