Comments (13)
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.
@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.
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.
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.
@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.
I'll also add a warning on the console to show that there is an error.
from inkycal.
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.
@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.
@surak
OK, this is the icon I just made, using the third icon as the template:
And as an alternative:
I think the latter is slightly better to read. What do you think?
from inkycal.
I'm with you on the latter!
from inkycal.
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.
@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.
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.
@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)
- [FEATURE]: Webshot module - implement rotation HOT 1
- Translations are not 100% HOT 3
- [BUG]: multi-day-events don't span across several days HOT 1
- [BUG]: Web-ui does not add more than one module HOT 1
- [Question]: Inkycal and high CPU-usage HOT 3
- [BUG]: ImportError: libopenjp2.so (Related to Bookworm or Python3.11 ?) HOT 9
- [BUG]: Agenda -> dynamic date-width
- [Bug]: Weather windspeed not respecting set value HOT 3
- [FEATURE]: xy-position for each module HOT 1
- [INQUIRY]: Dependency marked as 'yanked' HOT 1
- [FEATURE]: image module -> allow max width in percent
- [FEATURE]: Add dithering option in webshot module
- [FEATURE]: ReCaptcha invalid response handling
- [BUG]: AttributeError: 'Settings' object has no attribute 'image_folder' HOT 8
- [FEATURE]: fixed updates-times
- [FEATURE]: Shell-usage
- [FEATURE]: Add support for 13.3" (960×680px) display
- [Question]: Backward-compatibility with Buster HOT 6
- [FEATURE]: Weather-module - add max. temperature for today
- [BUG]: Waveshare 13,3" driver issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inkycal.