Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Theming with python library #113

anwar3606 started this conversation in Themes
Dec 21, 2022 · 10 comments · 1 reply
Discussion options

Theming with YAML file is cool but limited. I used their lcd library to create this.
Any idea how can I share the python code with the community?

20221217_072453

20221218_012416

You must be logged in to vote

Replies: 10 comments 1 reply

Comment options

man im interested in this code, telll me when you share it

You must be logged in to vote
0 replies
Comment options

Hi @anwar3606
Very nice work with this library !
I'm not sure it can be easily integrated to this project, but if you create a Github repository with your work I can share it on the Readme of this project under a "Other projects" section maybe?

You must be logged in to vote
1 reply
Comment options

I think it could be integrated. What if the YAML went away, to be replaced by a set of calls to a "spec" routine which takes the same parameters that are in the YAML? It could be used to construct the same THEME_DATA data structure, but it would be easier to have default values that don't need to be specified.

Comment options

Looks great, especially the music view.
May I ask if you have shared the files anywhere?

You must be logged in to vote
0 replies
Comment options

Hello, this crazy layout nowhere to be found?

You must be logged in to vote
0 replies
Comment options

oh my... that looks great, I'd love to know how to do a theme like this

You must be logged in to vote
0 replies
Comment options

Pls share bro.

You must be logged in to vote
0 replies
Comment options

It really seems most people share the Python coding by just copy/pasting it in the body on the message - within your forum subject post.
So yeah, just share the text, we can all get it that way.

It is great work btw, you've inspired me to start making some themes too! :D

You must be logged in to vote
0 replies
Comment options

Hi @anwar3606 You can share the code pls?

You must be logged in to vote
0 replies
Comment options

@anwar3606 may you share with us this code please?, we are waiting since 2022
thank you

You must be logged in to vote
0 replies
Comment options

Hi! I managed to combine the spotify developers api with the UsbPCMonitor 3.5" screen, allowing me to display real time music playing with a progress bar. I did this through the lcd_comm_rev_a library, and it works like a charm.

Setup instructions:

  1. Clone the base repo
    $ git clone https://github.com/mathoudebine/turing-smart-screen-python
  2. Install the necessary libraries with $ pip install -r requirements.txt and $ pip install requests spotipy
  3. Copy the code from this Gist and put it in the base directory of the cloned repo
  4. Go to Spotify Developer Dashboard and create a new app
  5. Give the app a name and description, and set the redirect URI to your desired URI, I usually just set it to http://127.0.0.1:8888/callback as a default, but it doesn't really matter because it is not being used in this case
  6. Then under the Which API/SDKs are you planning to use section, tick the Web API
  7. Then comply to the Terms of service and create your app
  8. Copy the Client Secret, Client ID and the redirect URI then put it into the code
  9. Run the code and Enjoy!

If you have any issues/questions, feel free to contact me on discord @Joabutt or drop me an email at me@joabl.ee

1
2

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /