Giter VIP home page Giter VIP logo

spicetify-announcer's Introduction

MIT License

Spicetify Announcer

A Spicetify extension to announce song details, time and local weather in-between tracks.

Spicetify Announcer uses Amazon Polly service to announce the tracks recently played, similar to what a live radio show would do. It also announces the time and the local weather forecast based on configuration parameters.

Sound on! 👇

SpicetifyAnnouncer.mp4

Table of Contents

1. Getting Started

These instructions will get you a copy of the project up and running on your local machine.

1.1 Prerequisites

You'll need Node installed on your machine, the best way to install/manage Node versions is to use Volta:

  • Volta - the hassle-free JavaScript tool manager

You also need to follow the installation instructions for Spicetify:

1.2 Building and Installing

The steps below assume you have successfully installed Spicetify.

Spicetify Announcer requires an AWS account and setting up the AWS Polly following the Getting Started guide. Once you have AWS configured follow the steps below:

  1. tweak the config.js entries for AWS and OpenWeather. At a minimum you'll have to update the following values:
  • AWS_REGION
  • AWS_IDENTITY_POOL_ID
  • OPENWEATHER_CITY
  • OPENWEATHER_TOKEN
  1. Then build the extension with your changes by running the build script. You should see something similar to:
$ npm run build

> [email protected] build ~/spicetify-announcer
> esbuild src/index.js --bundle --outfile=build/SpicetifyAnnouncer.js


  build/SpicetifyAnnouncer.js  501.9kb

⚡ Done in 70ms
  1. copy your build to the /spicetify/Extensions folder in your system. (NOTE: your folder might be in a different location depending on your system)
$ cp ./build/SpicetifyAnnouncer.js ~/.config/spicetify/Extensions

cp: overwrite '~/.config/spicetify/Extensions/SpicetifyAnnouncer.js'? y

  1. run the spicetify apply command to apply your changes:
$ ~/spicetify-cli/spicetify apply

spicetify v2.8.4
Overwriting raw assets:
OK
Transferring user.css:
OK
Applying additional modifications:
OK
Transferring extensions:
OK
success Spotify is spiced up!
  1. Update ~/.config/config-xpui.ini to include SpicetifyAnnouncer.js in the extensions line, you only need to do this once. (NOTE: your file might be in a different location depending on your system)
[AdditionalOptions]
extensions            = SpicetifyAnnouncer.js

You should now be able to start your Spotify client and announcements should work!

2. Built With

3. Credits and Community

This project exists thanks to all the people who contribute.

4. Donations

Spicetify Announcer is free and open-source software, if you find it useful consider buying me a coffee. Thanks!

5. License

This project is licensed under the MIT License - see the LICENSE file for details.

spicetify-announcer's People

Contributors

rlueder avatar

Stargazers

 avatar  avatar  avatar  avatar

spicetify-announcer's Issues

ANNOUNCE_WEATHER_HOURS should also include minutes

As it stands ANNOUNCE_WEATHER_HOURS will announce the weather multiple times within the hour. The array should perhaps use strings for full time e.g. [ "00:00", "06:00", "12:00", "18:00"]

This should be enough to make it so that weather forecasts are announced only once within the intervals.

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.