Sorry to seem impatient, but does anyone have any insights?
Especially my question...
I'm in the end stages of making the case & front panel and want to know if I can use a single (simple) switch to do the power down/restart, or if I need to a double-pole type to both use the power GPIO line AND use GPIO3 to restart again?
Results 131 to 140 of 379
-
2019-04-29, 11:43 #131
- Join Date
- Apr 2019
- Posts
- 22
-
2019-04-29, 13:34 #132
SqueezebuttonPi only interfaces with the LMS server, or with scripts as you are using.
You can use overlays.....take a look at
https://github.com/raspberrypi/linux...ys/README#L728
PCP also has a shut down monitor too that works with these overlays.piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer
-
2019-04-29, 15:16 #133
-
2019-04-29, 16:08 #134
The shutdown is driven by monitoring the key events.......since pCP does not run systemd. The shutdown monitor extension does this function.
piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer
-
2019-05-01, 09:09 #135
- Join Date
- Apr 2019
- Posts
- 22
Found the issue with the POWR command - bug in .cfg file
After much playing around, I found the reason why the POWR command doesn't work. It's a bug in the sbpd_commands.cfg file... there's an extra double-quote at the end of the POWR cfg line:
Code:# # sbpd_commands.cfg - Custom commands definition # # <CODE>=<JSON Formatted lms cli command> # # CODE - MUST be a 4 character code, to be reference on command line when defining buttons # # For commands reference the LMS cli documentation, commands are to be JSON formatted. # # Default commands PLAY=["pause"] VOL-=["button","voldown"] VOL+=["button","volup"] PREV=["button","rew"] NEXT=["button","fwd"] POWR=["button","power"]" MIX+=["mixer","volume","+5"] MIX-=["mixer","volume","-5"]
Does anyone know if this might be a safety-net prior to hard powering-off a self-contained piCorePlayer (with LMS on board)? And anyway, what *IS* the problem with hard powering-off a piCorePlayer with LMS on board?
-
2019-05-01, 17:00 #136
That is all it does. However you can set squeezelite to act upon it, look at the option.... Power On/Off GPIO (-G) Most use the signal to turn an amp on or off.
piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer
-
2019-05-01, 21:45 #137
- Join Date
- May 2017
- Posts
- 680
Hard powering off the pcp with running lms can cause sd card corruption (happened me twice, now running on a Ups)
SqueezeBoxes: 1x Transporter (Living room) 1x SB2 (shed), 1x Radio (Kitchen), 1x Boom (Dining room), 1x piCorePlayer (jacuzzi), 1x piCorePlayer (Garden) 1x OSMC + Squeezelite (Movie room), 1x Touch (Study 2), few spare unit's
Server: LMS on Pi3 7.9.1. on PcP 3.21
Network: AVM Fritzbox, Netgear Smart Switch 24p, 3x Ubiquity
-
2019-05-02, 08:00 #138
- Join Date
- Apr 2019
- Posts
- 22
-
2019-05-02, 08:06 #139
- Join Date
- Apr 2005
- Location
- UK/London
- Posts
- 3,350
I expect that it would be due to writing being in progress ... so location of LMS logs likely to have been the issue.
Paul Webster
http://dabdig.blogspot.com
Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland
-
2019-05-02, 08:54 #140
If you are using pCP as your LMS server, then you need to be careful as to how you shut down. If pCP is just a player, then pull the plug is fine.
If you use the shutdown monitor that I have setup for this, then a halt command is issued before dropping power.piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer