GithubHelp home page GithubHelp logo

Comments (38)

matopeto avatar matopeto commented on May 16, 2024

Hi @nokia-lmt Can you please attatch screenshot or photo of wrongly fitted texts on your kindle. And what kindle model do you have? Thank you

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

P.S. Not sure whether pictures were safely delivered to you as attachments to email. Adding them again directly from GitHub portal. See below:

1
2

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

@nokia-lmt thank for images

I will try to modify CSS to show better longer texts. But now i have little time so i cannot guarantee any fix time.

Some general questions to you if possible. Have you considered to extend
functionality of your app? I mean openweathermap.com portal contains a lot
of additional weather data, e.g. maps, graphs etc. Theoretically with
redisign of the main screen yoou can introduce some buttons and by pressing
on them navigate to additional local webpages where to display such
details. With some additional work your current app could become complete
weather station with very unique design and a lot of usefull functionality.
Consider this possibility please! I'm ready to assist you with testing and
ideas if required.

Sorry I have no plan to extend functionality in any way. I was doing it for myself with simplicity in mind. It is good for my use as is. (all other changes is too complicated to maintain and test)

But if you want you can fork this repo and extend by yourself or use any other responsive weather webpage and show in your kindle

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

P.S. If you're going to make changes, please check why weather forecast icons are touching the time labels? Can you realign them? Thanks!

3

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

The same as above.

Current weather icon is overlapping with current temp (in portrait mode):

4

Suggest to use slightly decreased fonts or better separate two blocks. Thanks!

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

Good day,

As short clarification question: why there are two values of last update time? Sometimes they are identical, sometimes not. What idea is hidden behind them? Thank you!
5

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

@nokia-lmt hi, first time is when was last update made, second time is time from last update date. E.g. 16:39/16:00 means that dashboard was updated 16:39 but data returned from backend is from 16:00

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

hi, first time is when was last update made, second time is time from last update date. E.g. 16:39/16:00 means that dashboard was updated 16:39 but data returned from backend is from 16:00

OK, I see. And in case if I'm running a local instance (all files are stored in Kindle's internal memory and index.html is started as file://..... method), these times will be always identical? If yes, can you point me where backend part could be commented out to display only first update time? If possible I would like to add some text before it as well, e.g. "Last updated: <update_time>"

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

Second time is returned from open weather. So not will be always identical.

You can modify this line of code:

https://github.com/matopeto/kindle-weather-dashboard/blob/master/index.html#L192

and set it to whatever value you want

Eg if you want to display time of the data (from API) it should be something like this:

lastUpdate.innerHTML = "Last updated: " + momentWithCorrectUtcOffset(new Date(data.dt * 1000)).format(timeFormat);

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

Perfect! Thank you very much. This is exactly what I wanted to achieve!

P.S. Seeing you instant replies, I humbly hope that you finally have some free time and will assist with initial issue with long text formating we are discussing here. Thanks in advance! :)

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

Unfortunately i will have no time in next month(s) for refactoring. But I am thinking about it.

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

@nokia-lmt i did two minor changes in CSS, fixing aligment of "large description" below temperature and cropping anything bigger then forecast cell so longer texts would not interfere bottom row.

I also added russian language option to config.

It is deployed also in demo site so you can try.

PS: for bigger refactoring design still have not time

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

Hi matopeto,

Thanks a lot for your efforts! However... I'm not sure whether new mod is working as it should. What I see while running it is not truncation of exceeding text, but rather ommiting of its part leaving some artifacts on the screen. See examples below. Instead of complete description "Переменная облачность" only first word is visible and only a part of second word is visible. If we are talking about truncation, maybe truncated part should be replaced by "..." instead?
1a
2a

Weather description still overlapping with update time.

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

@nokia-lmt

it was only quick fix of some CSS properties to not to ruin layout so much. Truncation of the text will be next step. I am waiting till my Paperwhite returns to me. So i can proper test it.

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

Hi again,

Yet another idea how to resolve this matter. Maybe it will be easier and more practical to avoid truncating, but maintain a list of "long" descriptions which do not fit in place and use some acronims of such statuses? E.g. if API returns "light intensity shower rain", let's replace this status with "shower rain" for example. This is because "light intensity ..." status which will be displayed as a result of truncation doesn't make sense at all to be honest.

A problem here is how to maintain translations of such acronims. I suppose some serious changes in logic will be required.

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

@nokia-lmt It is not possible to shortcut description even for english. In your case it is working but i don't known all combination of description comes from API. It is black box to me. And you have right. Trim description only to first line is not the solution. I am thinking about make space to two lines for small description (and hope most of description will fit). Or maybe hide it completly.

Big description maybe i will keep as is and last update move little bit down.

If you want to hide small descriptions completely, simply add

display: none to .colDesc CSS style:

change from:

.colDesc {
    font-size: 20px;
    font-size: 2.8rem;
}

to:

.colDesc {
    font-size: 20px;
    font-size: 2.8rem;
    display: none;
}

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

I have my PW for testing. I resolve most of the design issue, but it break Kindle 4 support. When i resolve those i will post/publish update.

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

Good morning, any updates or progress with a new version? Thanks!

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

@nokia-lmt HI. I create Draft/WIP Pull request for that. see PR #11 or branch 10-better-responsive-design

Now only forecast cells are resolved on PW (but broken on K4 :))

You can watch this issue, when some else i will have ready to publish i will push to the branch.

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

Good morning,

Installed updated version today. So far looks very good - this is a huge step forward! Congratulations! I will report all discovered issues (if any). Thank you very much for your hard work! Well done!

P.S. In landscape mode I've added "gradus" symbol for the current temperature. There is plenty of space for it available and overall it looks much better if it there. Consider to modify landscape template at your end as well. Not sure about portrait mode though as I'm not using it at all.

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

Good day,

Wanted to share latest developments of this case. Today it was necessary to reboot my Kindle and it decided to upgrade its firmware to the latest version (5.13.7 if I remember correctly). This introduced yet another one issue with layout. See attached screenshot. There is a new "arrow" on the top of the screen. This is a shortcut to settings. This is a new display element which never existed before. It is always visible and is taking some space on the screen. In result, the whole design of weather forecast is broken as it doesn't fit the screen anymore: additional scrollbars on the bottom of the page acknowledges this. Can you please fix this? I hope this is a minor issue for you? Thanks a lot in advance! Have a great weekend ahead!

Kindle weather - 05 11

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

@nokia-lmt thanks for report.

When i will have a time i will update my paperwhite and look at this. But i cannot promise any deadline

But arrow is probably the Kindle browser UI, but scrollbar may be solvable.

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

Good day,

Sorry to be annoying.... Any news about this topic?

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

Thanks for asking..

Yesterday i charged my kindle and today it was updated to new firmware and checked the problem. I am not sure it can be resolved. Seems like bug in the browser, when viewport of page is smaller than kindle report to the responsive css.

I will look at this today or tomorow but i cannot promise that i can resolved this

(also i must keep nonresponsive support for old kindle 4, so it is difficult)

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

Also "google.com" is scrolling in the new browser 👀 🤔 🤦

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

@nokia-lmt Scrollbar is definitely a kindle browser bug, it can't be resolved

even empty HTML

<!DOCTYPE html>
<html>
    <body></body>
</html>

shows scrollbar :( and scrolls empty page

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

The whole new firmware seems to be buggy, the main menu disappears, the browser crashes, only a part of the screen is rendered ....

I hope there will be a fix/pach from the Amazon

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

@nokia-lmt Hi. I don't try it, don't know if works with every PW models or firmwares, but for fullscreen you can try this: https://github.com/PaulFreund/WebLaunch (it require jailbreak and KUAL to work)

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

from kindle-weather-dashboard.

matopeto avatar matopeto commented on May 16, 2024

I hope there will be a fix/pach from the Amazon

Just updated to latests 5.14.2 firmware, but scrollbars problem still exists in this firmware :(

from kindle-weather-dashboard.

nokia-lmt avatar nokia-lmt commented on May 16, 2024

from kindle-weather-dashboard.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.