Giter Club home page Giter Club logo

Comments (13)

surak avatar surak commented on July 28, 2024 1

I thought about something that would make it CLEAR on the screen that it's not being updated. Like a warning in some corner, or just a huge X crossing the whole thing, making us both annoyed and wishing to fix it. What do you think?

from inkycal.

aceisace avatar aceisace commented on July 28, 2024

@surak
Currently, there is nothing to restart the script or a section of the script if there is a network or server problem except for rebooting.

I'd recommend the latter (using try/catch statements) in the script as it's better suited for debugging than a watchdog that keeps relaunching the script. Unfortunately, I'm not too good at exceptions handling so I'll have to ask you for help on that.

I am creating issues separately, should I just use the suggestion/improvements? Or just pull requests (complicated, since the api key, city name and ics url are on the main code file). Which leads me to the next issue...

It's probably better to have seperate issues for different topics than mixing them all up in the suggestions/improvement issue. Pull requests are fine too and you've made a good point that the config file should be kept seperately.

from inkycal.

aceisace avatar aceisace commented on July 28, 2024

Yes, that‘s a good idea. As the Openweathermap server is available for ~95% a day for free users, it‘s possible there was a server error than a network problem. In that case, retrying to access the API will fix it.

I’d prefer the second option, a small warning somwhere on the display.

What do you say about a crossed out Wifi icon in the place of the weather icon when the server returned an error?

from inkycal.

surak avatar surak commented on July 28, 2024

I’d prefer the second option, a small warning somwhere on the display.
What do you say about a crossed out Wifi icon in the place of the weather icon when the server returned an error?

That's a good one. Together with a warning on the console, like you have on the pull request.

from inkycal.

aceisace avatar aceisace commented on July 28, 2024

@surak
Would the icon below be suitable for showing a network/server problem? It has the same dimensions as the weather icons (60x60px) and can be used in place of the weather icon.
no-wifi

I'll also add a warning on the console to show that there is an error.

from inkycal.

surak avatar surak commented on July 28, 2024

It is somehow resized here (appears as a 95x95 jpeg), but I'm thinking if this isn't somewhat misleading: That is clearly the wifi, which might lead the user to think that there is, in fact, a problem with the wifi, not with the OpenWeather. How about a "broken" cloud?

Something like this (I just googled, and I can't upload svg here):

from inkycal.

aceisace avatar aceisace commented on July 28, 2024

@surak
You have a point actually. Since it's not clear if the issue lies with openweathermap or the network itself, it's probably not a good idea to use my suggested icon. I'll create an icon similar to the third icon (a cloud with question mark) and upload it again here.

Also, just modified your comment to make the pictures a bit smaller

from inkycal.

aceisace avatar aceisace commented on July 28, 2024

@surak
OK, this is the icon I just made, using the third icon as the template:
cloud-no-response-alt
And as an alternative:
cloud-no-response
I think the latter is slightly better to read. What do you think?

from inkycal.

surak avatar surak commented on July 28, 2024

I'm with you on the latter!

from inkycal.

aceisace avatar aceisace commented on July 28, 2024

I’d prefer the second option, a small warning somwhere on the display.
What do you say about a crossed out Wifi icon in the place of the weather icon when the server returned an error?

That's a good one. Together with a warning on the console, like you have on the pull request.

I've tested out a few improvements to the main file:

  • Created a seperate file 'icon_positions_locations.py' for positions of icons and their locations.
  • Added feature to show icon when Openweathermap API returns an Error
  • The main file will now print more information on the console (see below)
  • Added option to show upcoming events with name and date on the console
  • Added more explanations in the main file on what the functions and sections do.

Here is the link for the improved stable.py:
improved main script

The corresponding additional files (icon: 'cloud-no-response' and file: 'icons_positions_locations.py') have been added to the repo's 'Calendar' directory.

Could you please also test the improved stable.py file? If you're content with that, I'll replace the current stable.py file with the improved one.

from inkycal.

aceisace avatar aceisace commented on July 28, 2024

@surak
OK, I've tested out the new stable.py file for over a week now and so far, without any issues. After a few more minor improvements, I'll release a new version (1.4), sometime this month.

By the way, what do you think of the current output of the main file (see picture above)?

from inkycal.

surak avatar surak commented on July 28, 2024

Hi! Sorry for my lack of communication. I’m preparing for a conference right now.

My rig is working nonstop since the last time I sent you a picture (It updates itself every five minutes). I’ve been thinking a lot about the upper part. Turns out that we look at it to check the temperature. Always. And it’s too small.

So I’ll play around with some designs that give some proheminence to the temperature and weather for the rest of the day. Which is what matters. The weather of the day and tomorrow. The rest can be small.

Turns out that time is useless, when you have so many clocks around! And even more when you burn the e-ink with it.

About the main file, I was doing something similar already. I think that everything of interest should go to the console as well. It’s “free” anyway :)

from inkycal.

aceisace avatar aceisace commented on July 28, 2024

@surak
Hi, no problem.

It's good to hear that your rig is working fine. It also means that this issue is resolved so I'll be closing this. If you feel a need to re-open this issue, please do so.

If the space above the Calendar section is too small, you can always create a new page. For example, after touching a capactive sensor, the programm will switch to the other page. Another idea would be to add an OLED display via the GPIOs and fetch real-time data from a sensor.

In the former case, I can help you by publishing an example 'template' file which shows how to create a new page, add functions etc.

Although the idea of showing the time on the E-Paper display is a good one, for this specific E-Paper display, it's not a good idea. The reason is that, as you mentioned, ghosting of the display which requires more 'calibrations'.

If you have any more suggestions on the main file (like a console output I might have forgotten), please use the improvement ideas issue for that purpose.

from inkycal.

Related Issues (20)

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.