Open dirkdecoppel opened 7 years ago
Hi Dirk,
I'm glad you were able to get it running. Here is an option you can try.
Edit the config.txt file in the boot directory and set the display resolution to 1024x600. I know this doesn't match your actual monitor resolution, but this sets up a display buffer that should scale to your monitor. I normally run infocenter directly from the Linux shell (not in x-windows). This allows it to run full screen. If this configuration change doesn't work for you, you may not be able to see the screen well enough to edit config.txt back to its original settings. I'd suggest you make a copy of the file before you edit so that you can copy it over the edited file if you need to.
The only other option is to adapt the code to work at you resolution. This is not easily accomplished as everything is hard coded to align to the 1024x600 resolution. While it would have been nice to have coded this to dynamically scale based on monitor resolution, it would have complicated things and impacted performance. I run this on a Pi 2 and it is a bit sluggish. A Pi 3 probably runs it much better.
Steve
On Saturday, February 4, 2017, dirkdecoppel notifications@github.com wrote:
Hello, This afternoon i have installed your Infocenter application on my raspberry Pi 3 with 7" touchscreen (800x480). In beginning i had some problems Google API with the calender but finaly made it working. At this moment it has been starten up but must be addapted for this RASPBERRY PI 7" 800X480 DSI TOUCHSCREEN DISPLAY. [image: image] https://cloud.githubusercontent.com/assets/3790048/22621149/df9ab3b4-eb1c-11e6-8b93-4d51816be8cc.jpg ; Wil this be easy to do?
Many thanks in advance, Dirk
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FRC4564/infocenter/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCaXNM_hE5vOK6nKbfAVpVpyF5gRF3kks5rZNmYgaJpZM4L3RC1 .
Hi Steve, Many thanks Seems to work. Below how it works run from command line with frame buffer enabled to 1024x600
Next question if permitted: how do i change the weather Tile metrics to european once? °C instead of °F, kmph instead of mph? I succided already partial by adding "and u='c'" in yahooweather.py at line 20 between %22) and & format=json. Maibe it did it not completely correct. Please try with my home town in location='Ninove,BE'. You should see the same as on the photo above.
Lateron i also would like to change the language to Dutch. I Am from the dutch (north) part of Belgium.
Orther strange thing is in the radiotile: the radio is not working in the program. It starts playing after i leave the program and returns to the command line. Any idea for this? If not how can i test the good working of the streaming radio from command line?
Sorry to disturb you with all these questions. Please tell me if you have no time to help me further.
I am only beginning to work with RPI and Python. In school a learned in the 80s to make with CPU/RAM/.. chips a micro computer with a program made in assembler. Lateron i learned Turbo Pascal by myself. Now at age of 53 i am inspired about the possebilities of RPI direct working with Linux & Python. I am aware that i will not be easy, but look how far i already am.
Have a Nice day, Dirk
Dirk,
Your edit to yahoo weather.py gives you Celsius temperatures; so that was a good change. I'm not sure if that change also converts mph to kph. You'll want to read up on yahoo's weather api to see if there is a parameter for kph. You can also edit weathertile.py line 76 and change the text from mph to kph.
As for the music not playing properly, I don't have a quick answer for you. Infocenter is using the MPD (music player daemon) server to stream audio. There is a complimentary client application called MPC. If you installed it, along with MPD, then just type MPC at the command prompt. Infocenter sets up 8 preset stations as a playlist. From MPC, typing the command 'play 1' will start preset 1. What's awesome about MPD is that the client can run on any other machine on the network. So you can actual run MPC from another Linux device and provide it the IP address of your RPi to control music from there. I wrote a simple MPC in Python, which you can run from a Windows PC. You can use it as a way to test MPD on the Pi as well.
I enjoyed reading about your background. It closely parallels my history. I'm 52 and begin playing with computers while in high school. In college, Turbo Pascal was a language I enjoyed very much. I started playing with Python 3 or 4 years ago. It has become a favorite for me.
Good luck to you!
Steve
Sent from my iPad
On Feb 9, 2017, at 2:16 PM, dirkdecoppel notifications@github.com wrote:
Hi Steve, Many thanks Seems to work. Below how it works run from command line with frame buffer enabled to 1024x600
Next question if permitted: how do i change the weather Tile metrics to european once? °C instead of °F, kmph instead of mph? I succided already partial by adding "and u='c'" in yahooweather.py at line 20 between %22) and & format=json. Maibe it did it not completely correct. Please try with my home town in location='Ninove,BE'. You should see the same as on the photo above.
Lateron i also would like to change the language to Dutch. I Am from the dutch (north) part of Belgium.
Orther strange thing is in the radiotile: the radio is not working in the program. It starts playing after i leave the program and returns to the command line. Any idea for this? If not how can i test the good working of the streaming radio from command line?
Sorry to disturb you with all these questions. Please tell me if you have no time to help me further.
I am only beginning to work with RPI and Python. In school a learned in the 80s to make with CPU/RAM/.. chips a micro computer with a program made in assembler. Lateron i learned Turbo Pascal by myself. Now at age of 53 i am inspired about the possebilities of RPI direct working with Linux & Python. I am aware that i will not be easy, but look how far i already am.
Have a Nice day, Dirk
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Steve, I too got your program to work on a Windows 10 and a RaspPi3. Had to go though the entire program to resize it for the official RasPi 7 inch display. Also had to update the code to account from some API changes but really had no major issues.
This program looks real good. Thank you very much for sharing this code!
I'm having a problem with the RasPi display where the touch coordinates do not matching the actual touch location. USB Mouse works fine. In fact, the coordinates jump around in the python/pygame program, but touch works fine in the desktop. Looks like there's an issue with PyGame and the touch display. Any ideas?
I too had a problem with getting touch controls to work outside of x windows, but managed to get it working OK, but not great. My touch screen monitor died a while ago, so I'm using a non-touch screen right now. I can't do any testing, but this link may have an answer for you.
https://github.com/notro/fbtft/issues/366
Check out the tail end of the thread. It seems like it may be promising. Please let me know if you have any luck.
Steve
On Fri, Feb 17, 2017 at 6:05 PM ldeforre notifications@github.com wrote:
Steve,
I too got your program to work on a Windows 10 and a RaspPi3. Had to go though the entire program to resize it for the official RasPi 7 inch display. Also had to update the code to account from some API changes but really had no major issues.
This program looks real good. Thank you very much for sharing this code!
I'm having a problem with the RasPi display where the touch coordinates do not matching the actual touch location. USB Mouse works fine. In fact, the coordinates jump around in the python/pygame program, but touch works fine in the desktop. Looks like there's an issue with PyGame and the touch display. Any ideas?
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/FRC4564/infocenter/issues/1#issuecomment-280790909, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCaXIm8wMP4JobWunoYEZQHOB98W61Cks5rdie5gaJpZM4L3RC1 .
Hi Steve,
Thanks for replying.
The tail end of that message thread suggests running a bash script – is that what you think might do it?
It’s funny that the program runs perfect under LXDE in a window (which we don’t want). The program also runs nearly perfect when executed from the command line - expect for the touch unstableness.
I’ll give the bash script a try later today.
Nice program you wrote. I wanted something that I can copy and put in different rooms of the house – especially in the bathroom. I don’t need the calc tile so I removed the google parts of the code. But left the time functions intact – for now. I was thinking that I could play news videos in a tile. I have temp/humidity and solar intensity sensors all over the house, so perhaps constructing a tile to show the aggregate of all of the sensor values is next. And then there’s graphing of all of the sensor data in a tile. And I think I figured out (in theory) how to use an amazon echo to have voice control over the infocenter.
Fun little project. Thanks again
From: Steven Jacobs [mailto:notifications@github.com] Sent: Friday, February 17, 2017 8:26 PM To: FRC4564/infocenter infocenter@noreply.github.com Cc: ldeforre lloyd.deforrest@earthlink.net; Comment comment@noreply.github.com Subject: Re: [FRC4564/infocenter] Touchscreen 7" 800x480 (#1)
I too had a problem with getting touch controls to work outside of x windows, but managed to get it working OK, but not great. My touch screen monitor died a while ago, so I'm using a non-touch screen right now. I can't do any testing, but this link may have an answer for you.
https://github.com/notro/fbtft/issues/366
Check out the tail end of the thread. It seems like it may be promising. Please let me know if you have any luck.
Steve
On Fri, Feb 17, 2017 at 6:05 PM ldeforre <notifications@github.com mailto:notifications@github.com > wrote:
Steve,
I too got your program to work on a Windows 10 and a RaspPi3. Had to go though the entire program to resize it for the official RasPi 7 inch display. Also had to update the code to account from some API changes but really had no major issues.
This program looks real good. Thank you very much for sharing this code!
I'm having a problem with the RasPi display where the touch coordinates do not matching the actual touch location. USB Mouse works fine. In fact, the coordinates jump around in the python/pygame program, but touch works fine in the desktop. Looks like there's an issue with PyGame and the touch display. Any ideas?
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/FRC4564/infocenter/issues/1#issuecomment-280790909, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCaXIm8wMP4JobWunoYEZQHOB98W61Cks5rdie5gaJpZM4L3RC1 .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FRC4564/infocenter/issues/1#issuecomment-280820883 , or mute the thread https://github.com/notifications/unsubscribe-auth/AATph6VxZB2qH4DQ_eOmxHfyYS2Wczcvks5rdnLugaJpZM4L3RC1 . https://github.com/notifications/beacon/AATph_lSyp0o4ADZcOGx5ncDctCjfdEvks5rdnLugaJpZM4L3RC1.gif
Steve. I tried running that script with no luck.
Lloyd
From: Steven Jacobs [mailto:notifications@github.com] Sent: Friday, February 17, 2017 8:26 PM To: FRC4564/infocenter infocenter@noreply.github.com Cc: ldeforre lloyd.deforrest@earthlink.net; Comment comment@noreply.github.com Subject: Re: [FRC4564/infocenter] Touchscreen 7" 800x480 (#1)
I too had a problem with getting touch controls to work outside of x windows, but managed to get it working OK, but not great. My touch screen monitor died a while ago, so I'm using a non-touch screen right now. I can't do any testing, but this link may have an answer for you.
https://github.com/notro/fbtft/issues/366
Check out the tail end of the thread. It seems like it may be promising. Please let me know if you have any luck.
Steve
On Fri, Feb 17, 2017 at 6:05 PM ldeforre <notifications@github.com mailto:notifications@github.com > wrote:
Steve,
I too got your program to work on a Windows 10 and a RaspPi3. Had to go though the entire program to resize it for the official RasPi 7 inch display. Also had to update the code to account from some API changes but really had no major issues.
This program looks real good. Thank you very much for sharing this code!
I'm having a problem with the RasPi display where the touch coordinates do not matching the actual touch location. USB Mouse works fine. In fact, the coordinates jump around in the python/pygame program, but touch works fine in the desktop. Looks like there's an issue with PyGame and the touch display. Any ideas?
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/FRC4564/infocenter/issues/1#issuecomment-280790909, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCaXIm8wMP4JobWunoYEZQHOB98W61Cks5rdie5gaJpZM4L3RC1 .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FRC4564/infocenter/issues/1#issuecomment-280820883 , or mute the thread https://github.com/notifications/unsubscribe-auth/AATph6VxZB2qH4DQ_eOmxHfyYS2Wczcvks5rdnLugaJpZM4L3RC1 . https://github.com/notifications/beacon/AATph_lSyp0o4ADZcOGx5ncDctCjfdEvks5rdnLugaJpZM4L3RC1.gif
Hello Steve, The Yahoo weathertile is no more working. I think that Yahoo has stopped this used service. Any idea how to change to another weather station? One that works also fine for europe/belgium would be Nice.
I’m afraid Yahoo has turned off the Weather API as of January 3rd. It would be a significant rewrite to get an alternate weather interface going. I don’t have any intention of working on that any time soon, as I’ve got a couple of other projects I’m deep into. Perhaps someone else would like to pick it up and adapt it to a different service.
Steve
From: dirkdecoppel Sent: Saturday, January 5, 2019 4:20 PM To: FRC4564/infocenter Cc: Steven Jacobs; Comment Subject: Re: [FRC4564/infocenter] Touchscreen 7" 800x480 (#1)
Hello Steve, The Yahoo weathertile is no more working. I think that Yahoo has stopped this used service. Any idea how to change to another weather station? One that works also fine for europe/belgium would be Nice. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Hello, This afternoon i have installed your Infocenter application on my raspberry Pi 3 with 7" touchscreen (800x480). In beginning i had some problems Google API with the calender but finaly made it working. At this moment it has been starten up but must be addapted for this RASPBERRY PI 7" 800X480 DSI TOUCHSCREEN DISPLAY. ; Wil this be easy to do?
Many thanks in advance, Dirk