Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LCD info display corrections and date format tweak #344

Merged
merged 2 commits into from
Aug 22, 2022

Conversation

toofishes
Copy link
Contributor

The metric units fix here should be uncontroversial- we need to be using MWh, not mWh, to be megawatt-hours, not milliwatt-hours. https://en.wikipedia.org/wiki/Metric_prefix#List_of_SI_prefixes

The date one might be a bit less desired, but I'd advocate for making the change. The OpenEVSE web UI has the advantage of being able to use the browser/OS date format, but the LCD display format is hardcoded. By using the ISO date format, there should be no confusion with a date such as "04/07/2022" - is this April 7th (as a US resident would likely interpret it), or July 4th (as most of the rest of the world would use)? By displaying "2022-07-04", it is much less ambiguous.

We should be going from kilowatts to megawatts, not milliwatts. All
units above 'k' should be capital letters.
This is unambiguous to interpret in all parts of the world, including
the US, UK, and Europe.
@@ -546,7 +546,7 @@ void LcdTask::displayInfoLine(LcdInfoLine line, unsigned long &nextUpdate)
gettimeofday(&local_time, NULL);
struct tm timeinfo;
localtime_r(&local_time.tv_sec, &timeinfo);
strftime(temp, sizeof(temp), "%d/%m/%Y", &timeinfo);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is more of a personal taste/country specific convention, so should probably handle separately, probably needs to be user configurable.

@glynhudson glynhudson merged commit d6f1012 into OpenEVSE:master Aug 22, 2022
@toofishes toofishes deleted the info-display branch October 30, 2022 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants