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 Jan 03, 2016 5:11 pm

The first problem should be easy enough to fix. Just add

Code: Select all

from kivy.uix.scrollview import ScrollView
at the top of the weather screen.py file.

As for the second problem, I don't know. I've no idea how the screensaver works. I don't have one running on mine.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

walter_1
Posts: 5
Joined: Thu Jul 25, 2013 12:26 pm
Location: Germany

Re: RPi Information Screen for Official Raspberry Pi Display

Mon Jan 04, 2016 5:20 pm

Thanks for the quick answer adding the code to the weather screen file made it work.

Asking the right questing gives you the right answers ;)
The screen-blanking problem has a solution:
in the terminal you can type

Code: Select all

setterm -powersave off -blank 0 
or as I did, to prevent screen-blanking I wrote a little shell-script which will be called when
initlevel 5 is reached (every time at boot)

Code: Select all

#! /bin/sh
### BEGIN INIT INFO
# Provides:          ssvoff
# Required-Start:    $local_fs $network
# Required-Stop:     $local_fs
# Default-Start:     5
# Default-Stop:      0 1 6
# Short-Description: stops sreenblanking
# Description:       prevents setterm to blank the screen after the default time
### END INIT INFO
setterm -powersave off -blank 0
The header is needed for the program insserv. For more informations on starting programs
automatic at boottime use this post https://www.linuxquestions.org/question ... on-237339/
which helped me. Or this https://packages.debian.org/squeeze/insserv if you want detailed inforations on insserv.

The terminal screen blanking topic is explained http://www.cyberciti.biz/tips/linux-dis ... blank.html here.

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

Mon Jan 04, 2016 5:23 pm

Glad you fixed your screen blanking. I have to say, it's not something I've come across before.

I run the screen on the raspberry pi display and it's never blanked once for me.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

brendanssound
Posts: 24
Joined: Tue Oct 06, 2015 10:59 am

Re: RPi Information Screen for Official Raspberry Pi Display

Sat Jan 23, 2016 7:51 am

Is

Code: Select all

sudo apt-get install mopidy-spotify
working for everyone else anymore?

Keeps telling me package not found. Has been doing this awhile now.

I was attempting to do a fresh install because i had put this project on hold for so long (other stuff come up)
and had no idea where i was up to.

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 Jan 23, 2016 8:33 am

Sorry, can't help on that one. This probably isn't the best thread for that question either.

Yes, project has been on hold but there's also not a huge amount more that I want to add to it at the moment either.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

brendanssound
Posts: 24
Joined: Tue Oct 06, 2015 10:59 am

Re: RPi Information Screen for Official Raspberry Pi Display

Sat Jan 23, 2016 8:36 am

haha i meant my project has been put on hold (the sunrise alarm clock)

Can't find anyone else having this issue so must be on my end. Will figure it out.

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 Jan 23, 2016 8:49 am

Ok. You may have more luck if you post in the multimedia thread and include the error messages you get. Good luck.
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

Mon Feb 08, 2016 7:43 pm

Quick update: I thought it would be fun to make an ISS tracker screen...
Image

It's pretty basic so far but seems to work ok.
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

User avatar
Paul Webster
Posts: 822
Joined: Sat Jul 30, 2011 4:49 am
Location: London, UK
Contact: Twitter

Re: RPi Information Screen for Official Raspberry Pi Display

Sun Feb 14, 2016 4:59 pm

I thought I would give this a try ... but have had limited success so far.
The Kivy demos from the examples directory work fine (RPi2 with official touch display) - and I can pinch/zoom etc from the display.
But when I run RPi-InfoScreen-kivy I just get the text clock and attempts to touch various part of the display have no effect - presumably meaning it is not seeing the input.
Any hints?

Code: Select all

pi@raspberrypi ~/RPi-InfoScreen-Kivy $ python main.py
[INFO   ] [Logger      ] Record log in /home/pi/.kivy/logs/kivy_16-02-14_11.txt
[INFO   ] [Kivy        ] v1.9.2-dev0
[INFO   ] [Python      ] v2.7.3 (default, Mar 18 2014, 05:13:23)
[GCC 4.6.3]
[INFO   ] [Factory     ] 179 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_pygame (img_pil, img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: egl_rpi
[INFO   ] [GL          ] OpenGL version <OpenGL ES 2.0>
[INFO   ] [GL          ] OpenGL vendor <Broadcom>
[INFO   ] [GL          ] OpenGL renderer <VideoCore IV HW>
[INFO   ] [GL          ] OpenGL parsed version: 2, 0
[INFO   ] [GL          ] Shading version <OpenGL ES GLSL ES 1.00>
[INFO   ] [GL          ] Texture max size <2048>
[INFO   ] [GL          ] Texture max units <8>
[INFO   ] [Shader      ] fragment shader: <Compiled>
[INFO   ] [Shader      ] vertex shader: <Compiled>
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Text        ] Provider: pygame
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event0
[INFO   ] [MTD         ] Read event from </dev/input/event0>
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event0
[INFO   ] [HIDInput    ] Read event from </dev/input/event0>
[INFO   ] [Base        ] Start application main loop
[INFO   ] [MTD         ] </dev/input/event0> range position X is 0 - 800
[INFO   ] [MTD         ] </dev/input/event0> range position Y is 0 - 480
[INFO   ] [MTD         ] </dev/input/event0> range touch major is 0 - 0
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [HIDMotionEvent] using <FT5406 memory based driver>
[INFO   ] [HIDMotionEvent] <FT5406 memory based driver> range ABS X position is 0 - 800
[INFO   ] [HIDMotionEvent] <FT5406 memory based driver> range ABS Y position is 0 - 480
[INFO   ] [MTD         ] </dev/input/event0> range touch minor is 0 - 0
[INFO   ] [MTD         ] </dev/input/event0> range pressure is 0 - 255
[INFO   ] [MTD         ] </dev/input/event0> axes invertion: X is 0, Y is 0
[INFO   ] [HIDMotionEvent] <FT5406 memory based driver> range position X is 0 - 800
[INFO   ] [MTD         ] </dev/input/event0> rotation set to 0
[INFO   ] [HIDMotionEvent] <FT5406 memory based driver> range position Y is 0 - 480
^C[INFO   ] [Base        ] Leaving application in progress...
 Traceback (most recent call last):
   File "main.py", line 52, 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 512, in tick
     self._process_events()
   File "/usr/local/lib/python2.7/dist-packages/kivy/clock.py", line 641, in _process_events
     for event in events[:]:
 KeyboardInterrupt

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 Feb 14, 2016 6:05 pm

It may be simpler than that.

All screens, other than the word clock, are disabled by default. Have you enabled the ones you want to see (by editing the conf.json file in the relevant folder)?
RPi Information Screen: plugin based system for displaying weather, travel information, football scores etc.

User avatar
Paul Webster
Posts: 822
Joined: Sat Jul 30, 2011 4:49 am
Location: London, UK
Contact: Twitter

Re: RPi Information Screen for Official Raspberry Pi Display

Sun Feb 14, 2016 7:40 pm

;) that was the correct answer. Now have Weather and can switch.

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 Feb 26, 2016 7:17 pm

OK time for an update...

Version 0.4 is now available.

New screens:

ISS Tracker (above)
Pong (above)
Christmas countdown (above)
Helsinki Bus (thanks Karrika)
Image

New wordclock layouts (and ability to select colour):
French
Image

Spanish
Image

Portuguese
Image

Swedish
Image

Finnish
Image

I've also included a webserver so screens can be configured/enabled/disabled from a remote machine.
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

Sun Feb 28, 2016 6:39 pm

Screenshot of what I'm working on now...

Trying to build in menu functionality for SqueezePlayer. It's working but is still rough around the edges:
Image
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

Thu Mar 17, 2016 10:33 pm

Hi elP,

I had my eyes on this great project for a while. Finally getting around to try and adapt it to a (larger) non-touch screen.
My plan is to navigate with GPIO connected buttons and / or IR, although for easy testing I'll try to get keyboard / mouse working first.

I basically got it to work on my screen, but I'm having a problem with the web interface.
Because I have no way to navigate with keyboard or mouse right now, I'm trying to switch screens through the web interface.
For some reason that's not working. I see this message in the log

Code: Select all

 127.0.0.1 - - [17/Mar/2016 21:53:34] "GET /api/londonbus/view HTTP/1.1" 200 58
 192.168.0.20 - - [17/Mar/2016 21:53:35] "POST / HTTP/1.1" 200 11829
but nothing is happening. If I use the webapi method:

Code: Select all

http://192.168.0.211:8089/api/londonbus/view
thenI get this response

Code: Select all

{"status": "error", "message": "Could not change screen."}
This happens with every screen I try.
BTW I also tried to enable / disable screens using e.g.

Code: Select all

http://192.168.0.211:8089/api/football/disable
Again I get an error message

Code: Select all

{"status": "error", "message": "Could not disable football screen."}
But the config has been updated correctly...

Any idea what's going on, or how I can start to debug this?

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 Mar 17, 2016 10:44 pm

Dirk,

Thanks for the bug report. The web interface is a bit experimental as I have no prior experience of writing things like that.

That said, I thought it was working ok when I posted the code. Let me take a look tomorrow (or Saturday) and I'll see if I can fix this for you.

elP
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

Thu Mar 17, 2016 10:50 pm

elParaguayo wrote:Dirk,

Thanks for the bug report. The web interface is a bit experimental as I have no prior experience of writing things like that.

That said, I thought it was working ok when I posted the code. Let me take a look tomorrow (or Saturday) and I'll see if I can fix this for you.

elP
Cheers. I'll try to do a bit of debugging myself (i.e. throw in a few print statements).

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

Re: RPi Information Screen for Official Raspberry Pi Display

Fri Mar 18, 2016 12:08 am

A bit more information...

Caught the exception message in webapi.py

Code: Select all

    def view(self, screen):
        try:
            self.infoscreen.switch_to(screen)
results in:

Code: Select all

'NoneType' object has no attribute 'switch_to'
This probably also causes the error messages with disable / enable, even though the configuration file is updated successfully.

Digging a bit deeper. I think webapi is set up before InfoScreenApp.build is called.

Code: Select all

>>>>>>>>>>>>>>>>>>>>>>>>>> webapi.py: self.infoscreen = infoscreen.base
self.infoscreen: None
>>>>>>>>> set base <<<<<<
self.base: <core.infoscreen.InfoScreen object at 0xb1bfc1f0>
First two lines are from a print I put t line 55 in webapi.py.
Last two are from InfoScreenApp.build in main.py

HTH

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 Mar 18, 2016 6:41 am

Strange. That really shouldn't happen as there is already code in place to make sure the web interface doesn't start until the main app is running.

Sounds like I need to check it.
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

Fri Mar 18, 2016 10:31 am

This is the section that should stop that part:
https://github.com/elParaguayo/RPi-Info ... #L215-L217

Maybe I need to be more explicit and get it to check for the "base" attribute too before starting the server. Easy enough fix if so.
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

Fri Mar 18, 2016 11:04 am

elParaguayo wrote:This is the section that should stop that part:
https://github.com/elParaguayo/RPi-Info ... #L215-L217

Maybe I need to be more explicit and get it to check for the "base" attribute too before starting the server. Easy enough fix if so.
Based on this I put a very crude test in place: add sleep(10) before https://github.com/elParaguayo/RPi-Info ... ce.py#L225
And hey ho, it works. I can now switch using the web interface and also with direct api calls :D

The reason I'm having this problem could be that I'm testing this on a Pi A+. It may work on a faster model...

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 Mar 18, 2016 11:57 am

Great. Glad to hear it's working. I'll try to push a neater fix over the weekend.

I did my testing on my ubuntu laptop so that could be a factor too.
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

Fri Mar 18, 2016 7:55 pm

Dirk,

Could you try using this code:

Code: Select all

    while infoapp is None:
        infoapp = App.get_running_app()
        if infoapp and infoapp.base is None:
            infoapp = None
        sleep(1)
in both the web server and api server and let me know if that works.
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

Fri Mar 18, 2016 9:55 pm

At first that did not work, but then I realised that I had left

Code: Select all

    infoapp = App.get_running_app()
at the start of the function. Then, of course, infoapp is not None...

In the end I used

Code: Select all

def start_web(appdir, webport, apiport, debug=False):
    """Starts the webserver on "webport"."""
    infoapp = None
    while infoapp is None:
        infoapp = App.get_running_app()
        if infoapp and infoapp.base is None:
            infoapp = None
        sleep(1)

    ws = InfoScreenWebServer(infoapp, appdir, apiport)

    ws.run(host="0.0.0.0", port=webport, debug=debug)
And the same mods for 'start_api. Now it seems to be working fine :D

BTW: I tried to use the Python function isinstance() but I could not get that to 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

Fri Mar 18, 2016 9:57 pm

Ok. I'll push that update tomorrow.

Thanks.

EDIT: Done.
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

Fri Apr 08, 2016 2:24 pm

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.

Return to “Other projects”