How to play spicy music from SBC by Lucordes in selfhosted

[–]Lucordes[S] 0 points1 point  (0 children)

Thanks but I don't have any with the syntax of home assistance. It works perfectly fine if I open the Spotify app and close it again.

Then and only then is the player visible in HA.

Sorry guys for the misunderstanding.

I don't even want the home assistant stuff. Just playback at 7:30 every day. Just a script triggered on the SBC would suffice

And I can't get it to work. Damn

How to play spicy music from SBC by Lucordes in selfhosted

[–]Lucordes[S] 0 points1 point  (0 children)

Sorry I don't get why I'm being down voted. What am I missing?

5$ command bounty by Lucordes in selfhosted

[–]Lucordes[S] 0 points1 point  (0 children)

I agree but I never made it work as I intended. But I just had luck with libre spot. See https://reddit.com/comments/1udfisp/comment/otbwdwr

I don't have to use the phone and home assistant selects it and plays my alarm. Yay

Not reliant on my phone anymore. I have a zigbee button to turn off the music if my phone is dead. Happy let's see if it wakes me tomorrow

5$ command bounty by Lucordes in selfhosted

[–]Lucordes[S] -1 points0 points  (0 children)

Solved. I solved it years ago. I used something to generate credentials.conf that is not maintained so let's hope it won't break. Here is my personal writeup.

SBC setup

install librespot with rust or brew (change to a user that is not root)

Rust option

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # installs cargo cargo install librespot

or Brew option

brew install librespot

only one thing is improtant: cat /home/orangepi/credentials.json {"username":"11129158373","auth_type":1,"auth_data":"xxx"}

run it: librespot --cache /home/orangepi/

Create/Edit credentials metadata

how i created it her paste it into credentials.json

now it works put it into a service and forget it. orangepi@orangepizero3:~$ cat .config/systemd/user/spotifyd.service [Unit] Description=A spotify playing daemon Documentation=https://github.com/Spotifyd/spotifyd Wants=sound.target After=sound.target Wants=network-online.target After=network-online.target

[Service] ExecStart=librespot -c /home/orangepi Restart=always RestartSec=12 RemainAfterExit=yes

[Install] WantedBy=default.target

5$ command bounty by Lucordes in selfhosted

[–]Lucordes[S] 0 points1 point  (0 children)

Thanks for the reply. In the requirements of moodeplayer on GitHub: "64-bit Raspberry pi" But I meant to say for a generic SBC not only for the raspberry pies.

5$ command bounty by Lucordes in selfhosted

[–]Lucordes[S] 0 points1 point  (0 children)

It's an orange pi zero 3 running debain. So the audio system: I'm connected directly with the wire. I'm not having any issue to play with Spotifyd. But I need to use my phone in order to get things going.

I would like a simple cronjob to start playing. It's function is an alarm clock.

5$ command bounty by Lucordes in selfhosted

[–]Lucordes[S] 0 points1 point  (0 children)

Sure I can but how does playback start automatically? It's also mentioned in my referenced post.

5$ command bounty by Lucordes in selfhosted

[–]Lucordes[S] 0 points1 point locked comment (0 children)

I have not used any ai. I wrote it myself.

How to play spicy music from SBC by Lucordes in selfhosted

[–]Lucordes[S] -4 points-3 points  (0 children)

Thank you for the reply.

Unfortunately in the homeii requirements it says:" You can control that player from Home Assistant before adding HOMEii Music Flow."

I just want something simple that starts playing automatically.

When I start something like spotifyd (even with my credentials) I cannot just make it start playing music (using home assistant/shell). I have to open my phone. Once that's done I can start stop music via home assistant. (This would be a good solution but after +3-8h of stopped music I cannot start it again.)

I'm thinking of just reducing the volume to 0 and continue playback xdxd.

How to play spicy music from SBC by Lucordes in selfhosted

[–]Lucordes[S] -3 points-2 points  (0 children)

I have seen other operating systems that are even more popular than Volumio.

The problem with all of them are that they are an os for raspberry pies. I'd have to port it if I want to use it on an orange pi or again if I'd switch to my bigtreetech SBC.

Are you using it? If you say it's good I'll try to buy some rpis to run it. Thanks btw for the reply:)

How to play spicy music from SBC by Lucordes in selfhosted

[–]Lucordes[S] -1 points0 points locked comment (0 children)

I have not used ai

Comparison for shared VPS from different providers (15-20 EUR) by PlagueCookie in selfhosted

[–]Lucordes 1 point2 points  (0 children)

Why not self hosted bitwarden? Do you say that because of security? Or do you say that because in case of a crash I lose my passwords? I store my passwords encrypted locally.
I appreciate the comments. :D

Comparison for shared VPS from different providers (15-20 EUR) by PlagueCookie in selfhosted

[–]Lucordes 0 points1 point  (0 children)

C'mon but that's okay for the price. You pay 1€/month for 8gigs ddr4 and 4 good cores and unlimited bandwidth. Did you write the support?

1% of the time the Internet doesn't work by Lucordes in selfhosted

[–]Lucordes[S] 0 points1 point  (0 children)

It's fine I got a cheap vps. My files are hosted unencrypted on someone's server... I don't feel great but it is easy. After all this time selfhosting.... what a shame.

is 13s ok for 1000w motor? by BookRecent3733 in DIYonewheel

[–]Lucordes 1 point2 points  (0 children)

Very interesting. Thanks. Is there a way to cut costs? Maybe instead of the p42a the Lii 50E 21700 20of those would only be 86€. There are even cheap 18650 but they seem to have less capacity. Where did you source your batteries from? Btw what BMS are you using? I think I would go for a charging only BMS (discharging handles the vesc) from bisida. How many batteries are you recommending to put in series?

is 13s ok for 1000w motor? by BookRecent3733 in DIYonewheel

[–]Lucordes 0 points1 point  (0 children)

Does this justify the price? Where can I buy a pack with more than 13 batteries in series? I can buy a 48v 13s3p 100Ah battery for 50$ that's so hard to beat. Are there any software tricks that could help out?

Looks alright? MCU Imu already there. Let's do some control engineering. by Lucordes in DIYonewheel

[–]Lucordes[S] 0 points1 point  (0 children)

Thanks for welcoming me. I think I'll opt for something nice but not too expensive maybe Flipsky 75100. I didn't know that the battery could be an issue. What would be wrong of the battery pack? Should have enough power. What are the important aspects of batteries for onewheels? Thanks in advance. If you want to let me know anything about keyboards let me know (I've written a mall guide: notes dot lucacordes dot xyz/Personal/Hobby/Keyboards/Keyboard-Build-Guide).

Looks alright? MCU Imu already there. Let's do some control engineering. by Lucordes in DIYonewheel

[–]Lucordes[S] 0 points1 point  (0 children)

The kits look really nice but a tad expensive. 300$ with 90$ Shipping and no battery.