GithubHelp home page GithubHelp logo

robbiejh12 / spotify-now-playing-geeklet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bryantung/btspotifygeeklet

6.0 3.0 0.0 1.5 MB

Geeklet for Spotify player, shows track info and artwork

spotify-now-playing-geeklet's Introduction

#Spotify Geeklet

##Install

  1. Download zip from the releases tab.

  2. Unzip to your chosen install location.

  3. The files are set up to use ~/Documents/Geektool/Spotify/ ('~' means your home directory). If you installed somewhere else: a. Open SpotifyNowPlaying.scpt in Script Editor. b. Put your install location in line 10, in full, with a / at the end. It should look something like this:

    set pathName to "Users/YourName/Documents/Geektool/Spotify/"

  4. Open the geeklets from the 'glet' folder in Geektool.

  5. In the TrackArtwork geeklet, change the image URL to the location of the artwork.jpeg file.

  6. If you used a different install location in step 3, go through the remaining geeklets and change the command so it points at SpotifyNowPlaying.scpt. Don't alter the osascript or -name, -id, etc. bits.

##What's New The previous version of this Geeklet got the track ID, downloaded the track info from the Spotify API, parsed it for the image URL, then downloaded and displayed that image.

Spotify have now introduced a a new 'artwork URL' property to their Applescript, removing the need to do all the above (which no longer works anyway).

SpotifyNowPlaying.scpt gets all the track info, including the artwork URL.

The script then downloads the image to artwork.jpeg. If Spotify is stopped or not open it copies default.jpeg over artwork.jpeg. You can therefore change the 'off' image by replacing default.jpeg. Geektool determines how big the image displays on your desktop.

The script also stores the artwork URL in id.txt, which allows it to compare before downloading the artwork and abort the operation if the URL is the same (i.e. the track hasn't changed). This stops it downloading the image anew every time the geeklet refreshes, meaning you can set the refresh rate at 1s.

##Screenshot

Screenshot

##Credits This is based mostly on BTSpotifyGeeklet by bryantung - https://github.com/bryantung/BTSpotifyGeeklet/

spotify-now-playing-geeklet's People

Contributors

robbiejh12 avatar bryantung avatar

Stargazers

tamas adt lenhardt avatar  avatar John Rush avatar Akash Arora avatar Gopal Adhikari avatar sukezane avatar

Watchers

James Cloos avatar  avatar MonkKeys avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.