User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Fri Apr 08, 2016 5:43 pm

your English is great!

In answer to your questions, yes you could modify the code to rotate screens. I can explain how later tonight.

Webcam is harder. Firstly, I don't have one. Secondly, I don't know if kivy has a video player module. However, because of the first issue, it's not something I'd look to implement myself.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Sat Apr 09, 2016 5:32 am

Kivy does have a video player (https://kivy.org/docs/api-kivy.uix.videoplayer.html) so you may be able to get the webcam to work.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

User avatar
DougieLawson
Posts: 38849
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPi Information Screen for Official Raspberry Pi Display

Sun Apr 10, 2016 1:46 am

Your ISS tracker gets these errors

Code: Select all

[INFO   ] [Base        ] Leaving application in progress...
 Traceback (most recent call last):
   File "./main.py", line 88, in <module>
     InfoScreenApp().run()
   File "/usr/local/lib/python2.7/dist-packages/kivy/app.py", line 828, in run
     runTouchApp()
   File "/usr/local/lib/python2.7/dist-packages/kivy/base.py", line 487, in runTouchApp
     EventLoop.window.mainloop()
   File "/usr/local/lib/python2.7/dist-packages/kivy/core/window/window_egl_rpi.py", line 89, in mainloop
     self._mainloop()
   File "/usr/local/lib/python2.7/dist-packages/kivy/core/window/window_egl_rpi.py", line 84, in _mainloop
     EventLoop.idle()
   File "/usr/local/lib/python2.7/dist-packages/kivy/base.py", line 327, in idle
     Clock.tick()
   File "/usr/local/lib/python2.7/dist-packages/kivy/clock.py", line 521, in tick
     self._process_events()
   File "/usr/local/lib/python2.7/dist-packages/kivy/clock.py", line 653, in _process_events
     event.tick(self._last_tick, remove)
   File "/usr/local/lib/python2.7/dist-packages/kivy/clock.py", line 412, in tick
     ret = callback(self._dt)
   File "/root/.kivy/garden/garden.mapview/mapview/downloader.py", line 87, in _check_executor
     callback(*args)
   File "/root/.kivy/garden/garden.mapview/mapview/view.py", line 93, in set_source
     self.source = cache_fn
   File "kivy/graphics/instructions.pyx", line 362, in kivy.graphics.instructions.VertexInstruction.source.__set__ (kivy/graphics/instructions.c:7177)
   File "kivy/graphics/context_instructions.pyx", line 381, in kivy.graphics.context_instructions.BindTexture.source.__set__ (kivy/graphics/context_instructions.c:7309)
   File "/usr/local/lib/python2.7/dist-packages/kivy/core/image/__init__.py", line 512, in __init__
     self.filename = arg
   File "/usr/local/lib/python2.7/dist-packages/kivy/core/image/__init__.py", line 700, in _set_filename
     mipmap=self._mipmap, nocache=self._nocache)
   File "/usr/local/lib/python2.7/dist-packages/kivy/core/image/__init__.py", line 430, in load
     im = loader(filename, **kwargs)
   File "/usr/local/lib/python2.7/dist-packages/kivy/core/image/__init__.py", line 198, in __init__
     self._data = self.load(filename)
   File "/usr/local/lib/python2.7/dist-packages/kivy/core/image/img_pygame.py", line 85, in load
     (filename, im.fmt))
 AttributeError: 'pygame.Surface' object has no attribute 'fmt'
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Sun Apr 10, 2016 6:26 am

Thanks Dougie.

Could be hard to debug that one as the traceback just seems to reference kivy modules rather than my code. However, I do not doubt that the error is caused by something I wrote!

I'll add it to the issue list on github and take a look if/when I can.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Sun Apr 10, 2016 9:13 am

DougieLawson wrote:Your ISS tracker gets these errors
Same error here. There are a few references on the Internet, but I did not find a solution to it.
It seems to work fine in a window on a Lubuntu VM.

Drooneyef
Posts: 5
Joined: Fri Apr 08, 2016 2:17 pm

Re: RPi Information Screen for Official Raspberry Pi Display

Sun Apr 10, 2016 6:35 pm

Thank you for helping me.

Can you also help me with the web server?
When i enter the right address in my browser i see the message connection refused.
Do i have to install something else on my raspberry to get it work?

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Sun Apr 10, 2016 6:56 pm

You need to have 'bottle' installed.
http://bottlepy.org/docs/dev/index.html
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

bigatl22
Posts: 10
Joined: Wed Jan 15, 2014 3:49 am

Ubuntu-Mate Suppport

Fri Apr 15, 2016 3:09 pm

Hello,

First of all let me just say I'm very excited about this project. I've been looking into a Raspberry Pi alarm clock solution and this is by far the best looking option available. Plus its packed with so many features!

I have a couple questions about this project:
Has anyone tested this project using the latest Raspberry Pi 3?
Has anyone tried to get this working on Ubuntu-Mate?

I really like the look and feel of Ubuntu so was hoping to have that OS running in the background.

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Fri Apr 15, 2016 4:09 pm

I've not tested on pi3 but I don't see any reason that it wouldn't work (although it does seem that the ISS Tracker may be broken...)

As for Ubuntu Mate, all I can say is that the script works on my laptop (running Ubuntu 15.10). However, it is designed to run fullscreen on the official monitor so, if you want to change resolution or run windowed, you may need to tweak the code slightly.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

bigatl22
Posts: 10
Joined: Wed Jan 15, 2014 3:49 am

Re: RPi Information Screen for Official Raspberry Pi Display

Fri Apr 15, 2016 6:03 pm

elParaguayo wrote:I've not tested on pi3 but I don't see any reason that it wouldn't work (although it does seem that the ISS Tracker may be broken...)

As for Ubuntu Mate, all I can say is that the script works on my laptop (running Ubuntu 15.10). However, it is designed to run fullscreen on the official monitor so, if you want to change resolution or run windowed, you may need to tweak the code slightly.

Thanks! I'm planning to get the official monitor but until then how would I "tweak the code" to run it in windowed mode?

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Fri Apr 15, 2016 6:07 pm

if you're running the code in a desktop environment with a resolution greater than 800x480 then it should run windowed automatically.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

bigatl22
Posts: 10
Joined: Wed Jan 15, 2014 3:49 am

Re: RPi Information Screen for Official Raspberry Pi Display

Fri Apr 15, 2016 6:11 pm

Ok, I'm planning to test it on my RPI3 running the newest Ubuntu Mate v16.04 tonight. :D

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Fri Apr 15, 2016 6:34 pm

Drooneyef wrote:I've been playing with your project a few weeks now and i really like it.
I have a few questions.
Is it possible that the screens change automatically instead of clicking on the touchscreen?
Are you planning to make a screen for viewing an ip cam that's connected in your local network?

English isn't my native language so i hope you understand my questions.
Sorry Drooneyef, meant to reply to this earlier.

In order to change screens automatically, just add a clock object in the core/infoscreen.py file.

Add the necessary import:

Code: Select all

from kivy.clock import Clock
At the end of the __init__ method (but not nested in the "if" block), add the timer:

Code: Select all

Clock.schedule_interval(self.next_screen, 15.0)
(this moves onto the next screen every 15 seconds).
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

Drooneyef
Posts: 5
Joined: Fri Apr 08, 2016 2:17 pm

Re: RPi Information Screen for Official Raspberry Pi Display

Sun Apr 17, 2016 7:42 pm

elParaguayo wrote:
Drooneyef wrote:I've been playing with your project a few weeks now and i really like it.
I have a few questions.
Is it possible that the screens change automatically instead of clicking on the touchscreen?
Are you planning to make a screen for viewing an ip cam that's connected in your local network?

English isn't my native language so i hope you understand my questions.
Sorry Drooneyef, meant to reply to this earlier.

In order to change screens automatically, just add a clock object in the core/infoscreen.py file.

Add the necessary import:

Code: Select all

from kivy.clock import Clock
At the end of the __init__ method (but not nested in the "if" block), add the timer:

Code: Select all

Clock.schedule_interval(self.next_screen, 15.0)
(this moves onto the next screen every 15 seconds).
Thanks.
It's working great now ;-)

Drooneyef
Posts: 5
Joined: Fri Apr 08, 2016 2:17 pm

Re: RPi Information Screen for Official Raspberry Pi Display

Tue Apr 19, 2016 7:28 pm

Anyone else got the problem that the program is crashing?
When i enable photoalbum it's working for a while and then the program stops with an error.
I turned photoalbum off now and then it's working for hours with no problems.

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Tue Apr 19, 2016 7:31 pm

Drooneyef wrote:Anyone else got the problem that the program is crashing?
When i enable photoalbum it's working for a while and then the program stops with an error.
I turned photoalbum off now and then it's working for hours with no problems.
Can you post the error message?
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

Drooneyef
Posts: 5
Joined: Fri Apr 08, 2016 2:17 pm

Re: RPi Information Screen for Official Raspberry Pi Display

Tue Apr 19, 2016 7:45 pm

elParaguayo wrote:
Drooneyef wrote:Anyone else got the problem that the program is crashing?
When i enable photoalbum it's working for a while and then the program stops with an error.
I turned photoalbum off now and then it's working for hours with no problems.
Can you post the error message?[/quote

It ends with:

Exception: Shader didn't link, check info log

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Wed Apr 20, 2016 12:21 pm

I won't lie: I have no idea what that means. It's a Kivy error message and, having looked at the source, I can't work out what causes it to be triggered.

I am very happy to admit that the issue is likely to be with my code!!

Does the issue arise when the photoalbum has been viewed a certain number of times? How many photos are in the directories you're using?
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

bigatl22
Posts: 10
Joined: Wed Jan 15, 2014 3:49 am

Re: RPi Information Screen for Official Raspberry Pi Display

Thu Apr 21, 2016 2:17 am

I was able to get it working on the Pi3 running Ubuntu Mate. However, there is one issue...the GIFs are continuously flashing on the weather screen. How do I fix this?

Code: Select all

[WARNING] [Image_GIF   ] decoding error on code <8830587767822> aode size <50>
[WARNING] [Image_GIF   ] decoding error on frame <0>
[WARNING] [Image_GIF   ] decoding error on code <8830587767822> aode size <50>
[WARNING] [Image_GIF   ] decoding error on frame <0>
[WARNING] [Image_GIF   ] decoding error on code <8830587767822> aode size <50>
[WARNING] [Image_GIF   ] decoding error on frame <0>
[WARNING] [Image_GIF   ] decoding error on code <8830587767822> aode size <50>
[WARNING] [Image_GIF   ] decoding error on frame <0>

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Thu Apr 21, 2016 5:37 am

bigatl22 wrote:I was able to get it working on the Pi3 running Ubuntu Mate. However, there is one issue...the GIFs are continuously flashing on the weather screen. How do I fix this?

Code: Select all

[WARNING] [Image_GIF   ] decoding error on code <8830587767822> aode size <50>
[WARNING] [Image_GIF   ] decoding error on frame <0>
[WARNING] [Image_GIF   ] decoding error on code <8830587767822> aode size <50>
[WARNING] [Image_GIF   ] decoding error on frame <0>
[WARNING] [Image_GIF   ] decoding error on code <8830587767822> aode size <50>
[WARNING] [Image_GIF   ] decoding error on frame <0>
[WARNING] [Image_GIF   ] decoding error on code <8830587767822> aode size <50>
[WARNING] [Image_GIF   ] decoding error on frame <0>
Haven't figured that out yet...
https://github.com/elParaguayo/RPi-Info ... /issues/20
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

bigatl22
Posts: 10
Joined: Wed Jan 15, 2014 3:49 am

Re: RPi Information Screen for Official Raspberry Pi Display

Thu Apr 21, 2016 2:47 pm

Ok, thanks. So for someone who is unfamiliar with Kivy development and a beginner with python, how difficult would it be to add alarm button(s) to the clock screen or just set an alarm in the conf.json?

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Thu Apr 21, 2016 9:40 pm

I'd suggest you start with the kivy tutorial so you understand the basics before you try adjusting the screen.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

bigatl22
Posts: 10
Joined: Wed Jan 15, 2014 3:49 am

Re: RPi Information Screen for Official Raspberry Pi Display

Fri Apr 22, 2016 1:31 pm

Drooneyef wrote:
elParaguayo wrote:
Drooneyef wrote:Anyone else got the problem that the program is crashing?
When i enable photoalbum it's working for a while and then the program stops with an error.
I turned photoalbum off now and then it's working for hours with no problems.
Can you post the error message?[/quote

It ends with:

Exception: Shader didn't link, check info log
I am also having a problem with the photoalbum screen crashing. It will cycle through a dozen or so photos and then the whole program just closes. I'm not seeing any error messages, just "Killed" in the terminal. I've tried different folders and adjusting the display duration but its always the same result. All my images are high resolution .JPG

User avatar
elParaguayo
Posts: 1943
Joined: Wed May 16, 2012 12:46 pm
Location: London, UK

Re: RPi Information Screen for Official Raspberry Pi Display

Fri Apr 22, 2016 1:33 pm

Ok. Sounds like that one is broken.

I'll add it to my issue list...
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

veryaner
Posts: 1
Joined: Sat Apr 23, 2016 11:39 pm

Re: RPi Information Screen for Official Raspberry Pi Display

Sat Apr 23, 2016 11:44 pm

Hi, excellent work.
I was playing around with some screens and I really like it.
I'm trying to make a "smart" dock for my night table and your infoscreen is great.
Do you plan to add an alarm?

I'm getting this error whey I try to use the web configuration:
Template 'all_screens.tpl' not found.

the file exists in the web directory by the way.

Thanks!

Sorry for my english (Paraguayo, is english your native language?? :))

Return to “Other projects”