Ha, Silly me.. disabled the template before i even looked at it.. Not too sure why i would have done that.
Waittt a minute.. so if i mixed 9and3r's script for Mopidy with your clock/weather.. that should work.. right?
So, as I didn't think of adding mopidy, I guess I'm not one of those "great minds"Sounds like 2 great minds with the same idea could make something very cool.
There are three screens. The one in the middle is the current displayed screen. You can change to the others pressing on them.When i start the main script with that configuration i get the mopidy screen with a very
nicely laid out "now playing" "tracklist" and "search" menu
If you press search and type a song (I have not tested if the keyboard works on touchscreen, only with keyboard) you should be able to add songs to the tracklist and play them.no option to play spotify
I have not tried anything like that but you should check in mopidy documentation.i have not yet got it to detect network files (although I'm fairly certain i just need to play
with the timeout settings for that).
Thanks, and i hope you both know i really appreciate the patience with me.9and3r wrote:The one done with kivy is starting and has very limited functionality now, but it would get more functionality in the future (probably the same or more than mopidy-touchscreen).
So i take it it's not as simple as transferring over the python script already there and making it kivy compatible
Looking back at my post.. I can see how it looks like i wasn't aware of that. But yeah i knew this muchThere are three screens. The one in the middle is the current displayed screen. You can change to the others pressing on them.
Are you talking about Spotify or just local media? If Spotify.. what am i meant to type? if local media.. That makes more sense but actually i tested this out earlier (put a song on USB, transferred it over to the SD Card, scanned media directory to a folder with just that song - Mopidy see's the song and seems happy, Mopidy-touchscreen can play the song happily. But when i open up your 'fork' of Rpi-Information-screen and go to Mopidy screen.. I see no tracks under tracklist. Search does not appear to work for me yet either.. Is there a setting i have to change to enable keyboard?no option to play spotify
With just using touch i can select the search field and see it is waiting for an input.. But when i type nothing happens.
I have not tried anything like that but you should check in mopidy documentation.
Yes. It must be rewritten to work with kivy and websockets.So i take it it's not as simple as transferring over the python script already there and making it kivy compatible
This screen calls Mopidy Core API. This makes the screen unaware where the song is coming from (this is handled by mopidy) so it should work with any song that mopidy sees. In my case I am testing with spotify songs (mopidy-spotify installed and configured and spotify premium account).Are you talking about Spotify or just local media? If Spotify.. what am i meant to type? if local media.. That makes more sense but actually i tested this out earlier (put a song on USB, transferred it over to the SD Card, scanned media directory to a folder with just that song
Tracklist is the tracks currently in the queue, not the ones that mopidy detects. So by default should be empty. I think you are thinking tracklist as library. Library is in my next TODO list. I will let you know when is ready. So currently the only way to add tracks is to use search.Mopidy-touchscreen can play the song happily. But when i open up your 'fork' of Rpi-Information-screen and go to Mopidy screen.. I see no tracks under tracklist.
What is not working? Does the input box appear? Are you able to write on the input? Or after the input and tapping on the magnifying glass anything happens?Search does not appear to work for me yet either.. Is there a setting i have to change to enable keyboard?
Don't worry and feel free to ask all you need!i hope you both know i really appreciate the patience with me
Yeah i took the time last night to sign up for premium as well, Definitely seems worth it and the first month is free! So (assuming it worked.. (read below for more on that)) I would type in a random song in search and it would find that on spotify? Normally i just select a playlist like Discover Weekly and let that play..9and3r wrote:This screen calls Mopidy Core API. This makes the screen unaware where the song is coming from (this is handled by mopidy) so it should work with any song that mopidy sees. In my case I am testing with spotify songs (mopidy-spotify installed and configured and spotify premium account).
I get 3 screens as you said, Switching between them however is not as simple as tapping search/tracklist etc.. The sweet spot where the screen seems to switch between screens is down the bottom, slightly to the left.9and3r wrote:What is not working? Does the input box appear? Are you able to write on the input? Or after the input and tapping on the magnifying glass anything happens?
Broke one myself while building the case for it.. Apparently epoxy and touch screens are not the best of friends. $90 AUD gone like that but lessons were learned. .9and3r wrote:The problem is that I do not currently own any touchscreen (I broke the little one that I had. I am planning to buy the official one)
9and3r wrote:I understand that kivy should detect the touchscreen and show onscreen keyboard when you touch on the text input.
Tried removing and re-cloning just to be sure.. Same deal.9and3r wrote:So just to be sure grab the latest code from github. Tap on search. Tap on the white input field. It should appear the onscreen keyboard. In case it is not use a regular keyboard. Try to type a song name and press enter or tap on the magnifying glass.
My official screen is broken so I'm also developing on the laptop!9and3r wrote:The problem is that I do not currently own any touchscreen (I broke the little one that I had. I am planning to buy the official one). So I am doing the testing in my laptop and the keyboard works out of the box.
I had a concern about the onscreen keyboard with this program. As the program uses a 50px zone on the left and right of the screen to move between screens, I did wonder if this would cause an issue with the keyboard. I've not tried the onscreen keyboard yet, but do let me know if there's an issue and I'll take a look.It is the first time that I work with kivy but from the documentation I understand that kivy should detect the touchscreen and show onscreen keyboard when you touch on the text input.
Yes. It should work like that.So (assuming it worked.. (read below for more on that)) I would type in a random song in search and it would find that on spotify?
The playlists screen is not implemented so this will have to wait. Using search Discover weekly will not work.Normally i just select a playlist like Discover Weekly and let that play..
Maybe the y axe is inverted. I found this https://github.com/kivy/kivy/issues/265 ... t-63998653. You can check if inverting the axe works.I get 3 screens as you said, Switching between them however is not as simple as tapping search/tracklist etc.. The sweet spot where the screen seems to switch between screens is down the bottom, slightly to the left.
Thanks for the info but my touchscreen is 2.4 inch so I think I should upgrade to a bigger one.Not sure if this is helpful: Replacement Digitizer Cheaper than buying a screen maybe?
Seems related to clipboard. So probably clipboard will not work in kivy but not harmful. The other error I do not know what it means. But I also have some errors related to input and seems to not affect at all.Here's an error that may or may not be related
I was able to use the onscreen keyboard and not issues at all even trying to press on the invisible 50 pixel buttons. It seems that the keyboard is the only one getting inputs until you press outside and the keyboard is hidden again.I had a concern about the onscreen keyboard with this program. As the program uses a 50px zone on the left and right of the screen to move between screens, I did wonder if this would cause an issue with the keyboard. I've not tried the onscreen keyboard yet, but do let me know if there's an issue and I'll take a look.
Good advice. Thanks.9and3r wrote:I was able to use the onscreen keyboard and not issues at all even trying to press on the invisible 50 pixel buttons. It seems that the keyboard is the only one getting inputs until you press outside and the keyboard is hidden again.
I was able to change the keyboard using kivy config: http://kivy.org/docs/api-kivy.config.html
As advice I would make a global conf.json (something similar to what you make with screens configs) to let people choose keyboard mode, full screen or not... and call kivy.config with the values read from the global conf.json.
Ha, yeah i realized this.. I meant since you had to go buy a new screen did you go with a touchscreen?elParaguayo wrote:Yes, these screens use the touch events of the display.
Ah! Yes, I've gone for another official display (the glue on the old one was bad so the glass fell off!).brendanssound wrote:Ha, yeah i realized this.. I meant since you had to go buy a new screen did you go with a touchscreen?elParaguayo wrote:Yes, these screens use the touch events of the display.
If i remember rightly, I think you said you were stuck using a laptop screen until you got a new one? or maybe
that was somebody else.
For the sake of it, I made a video (it's got pedo style heavy breathing and blair witch project camera shake) but
gives you guys an idea of what's happening on my end. https://youtu.be/VbIC6OvulPY
