正式失業那天,上午去找人聊天,回家後我還是坐在電腦前。也許不是「失業所以創業」的劇本,可能還帶著一種想要做作品集的那種求職慣性,總之是還沒收到履歷回覆的邀約面試。 把舊的 cawa0505.github.io 改用 Zola SSG,準備用來做自動發布技術文章的地方,因為現在很懶,所以把玩具兜一兜變成自動發文的 repo 展示場。實作到一定程度,可以讓 AI 寫一篇文講為什麼會想做、做了發現什麼。 本來底下的文字是用 golang jieba 中文分詞,做了一個詞語庫,讓 AI 隨機抽一些弱格文章的慣用語來寫一篇整理最近實作的玩具,但內容實在太爛我砍掉了。至少草稿是 AI 建立的,雖然滿無聊,不過人生好像也是。 其實蠻恐慌的,104 沒人聯絡,能力或許已經讓職場瞧不上,中老年人發發牢騷可以,日子不知道怎麼過就是。 你覺得的黃昏,其實是日出,困難的日子才剛要開始。

一、Install Modipy (Ubuntu)
Udoo X86 use Ubuntu 17.04 (Zesty Zapus)
apt update apt install mopidy mopidy-spotify
二、Install Snapcast (Ubuntu)
Download From: https://github.com/badaix/snapcast/releases/latest

Get snapserver_0.11.1_amd64.deb
wget https://github.com/badaix/snapcast/releases/download/v0.11.1/snapserver_0.11.1_amd64.deb dpkg -i snapserver_0.11.1_amd64.deb
三、Edit Mopidy Config file
sudo vi /etc/mopidy/mopidy.conf
Add This
[spotify] username = spotify premium account username password = spotify premium account password client_id = client_id you got from mopidy.com client_secret = client_secret you got from mopidy.com enabled = true bitrate = 320 [audio] output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/mopidyfifo mixer_volume = 100
Client ID and Client Secret get from: https://www.mopidy.com/authenticate/#spotify
四、Edit Snapcast Config file
sudo vi /etc/default/snapserver
START_SNAPSERVER=true USER_OPTS="--user snapserver:snapserver" SNAPSERVER_OPTS="-d -s pipe:///tmp/mopidyfifo?name=mopidy"
五、服務重啟
sudo service mopidy restart sudo service snapserver restart
六、Mopidy Web 介面推薦
https://github.com/jaedb/Iris
https://github.com/dirkgroenen/mopidy-mopify
留言
張貼留言
回應不用錢,請多多益善!懶得寫字按個讚也是相當感謝!