Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    May 2017
    Posts
    587

    would it be possible to shutdown lms/pi with network ups server

    Hi,
    Got a synology nas with a ups connected. In the NAS OS there is an option to let the NAS act as UPS server (btw APC can provide the same function when equipped with a network card). This function makes it possible to connect two NASes on one UPS. The UPS is then connect via USB to one NAS. The USB connected NAS will broadcast it's status on the network. The second NAS it watching the UPS server status (Being the first NAS acting as UPS server) and when the first one signals a power failure the second nas will also shutdown.
    edit: Here is a post for a regular pi https://www.domoticz.com/forum/viewtopic.php?t=2266

    Would it be possible to let PcP watch for the status of the UPS server and perform a clean shutdown when there is a power failure? If the PcP pi is then physically powered by the UPS there is no problem with the runtime of the UPS.

    How to boot the pi again is another thing, will it respond to a wol packet?
    Last edited by edwin2006; 2019-05-03 at 02:15.
    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

  2. #2
    Senior Member
    Join Date
    Apr 2013
    Location
    UK
    Posts
    1,314
    I'm not sure of anything NAS specific but Linux has the "nut" package. One machine acts as the nut server for a given ups and any number of client machines can subscribe to shutdown events if power reserve runs low. This would require a Linux machine (possibly the pi) to be connected directly via USB. It may also support the ethernet connection option but I never investigated that.


    Transcoded from Matt's brain by Tapatalk
    --
    Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0
    Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums..

  3. #3
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,719
    No WOL on Raspberry Pi's.

  4. #4
    Senior Member
    Join Date
    May 2017
    Posts
    587
    WOL can be solved. You could let the Ups do a full shutdown before runtime ends. When power comes up the pi gets power again and will perform a normal boot.

    Will nut work on an pcp? If so, how to install and config?
    I could let the synology nas act as Ups server.
    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

  5. #5
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,719
    Never heard of nut.

  6. #6
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    1,839
    Quote Originally Posted by Greg Erskine View Post
    Never heard of nut.
    https://networkupstools.org/
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  7. #7
    Senior Member
    Join Date
    Apr 2013
    Location
    UK
    Posts
    1,314
    It contains upsd amongst other components..


    Transcoded from Matt's brain by Tapatalk
    --
    Hardware: 3x Touch, 1x Radio, 2x Receivers, 1 HP Microserver NAS with Debian+LMS 7.9.0
    Music: ~1300 CDs, as 450 GB of 16/44k FLACs. No less than 3x 24/44k albums..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •