spotframework/README.md

59 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

2019-12-03 18:31:30 +00:00
spotframework
2019-05-26 21:28:54 +01:00
===============
2021-02-06 00:38:16 +00:00
![Python Tests](https://github.com/sarsoo/spotframework/workflows/Tests/badge.svg)
2019-05-26 21:28:54 +01:00
*scripting framework for interacting with the spotify web api*
* **alarm**
2020-02-22 18:28:23 +00:00
*unused at this point, obsolete since I've replaced the functionality with an iOS shortcut*
2019-05-26 21:28:54 +01:00
daily script which finds this months playlist (eg. 'may 19') and starts playback on a specified device id. if the monthly playlist can't be found
a fallback spotify uri is used.
the script is conditionally run after receiving a response from a ping sent to a phone's ip so the scipt is only run when i'm at home.
as phones won't typically respond to pings unless the screen is on multiple pings are sent and the script is scheduled for the same time as my mobile alarm
* **backup**
2020-02-22 18:28:23 +00:00
Script to pull all user created playlists and backup each to a separate csv file at the specified path. Ran on a cron job.
2019-05-26 21:28:54 +01:00
* **generate playlists**
2022-08-07 19:33:38 +01:00
*obsolete since the creation of [Mixonomer](https://mixonomer.sarsoo.xyz)*
2020-02-22 18:28:23 +00:00
My spotify playlists are quite granular for different sub genres, this script takes groups of playlists and genereates one "super-playlist".
took inspiriation from my main use of Paul Lamere's [smarter playlists](http://smarterplaylists.playlistmachinery.com/).
2019-05-26 21:28:54 +01:00
2020-02-22 18:28:23 +00:00
By default playlists are reverse release date sorted, adding a shuffle tag to the config will do so.
2019-05-26 21:28:54 +01:00
2020-02-22 18:28:23 +00:00
Example config schema:
2019-05-26 21:28:54 +01:00
```json
{
"playlists": [
{
"name": "ELECTRONIC",
"id": "{spotify playlist id}",
"playlists": [
"house",
"garage",
"jungle",
...
]
},
{
"name": "METAL",
"id": "{spotify playlist id}",
"shuffle": true,
"playlists": [
"metal",
"death metal",
"black metal",
...
]
},
...
```