paul- wrote: 
> Since they use the pins for both input an output, you are going to have
> manually configure everything.

Thanks for the help so far. I managed to get a long way figuring this
out last night but got stuck on two issues for which I would appreciate
some further guidance.. First of all though, I was really impressed with
how fast PcP works when you run it on a Pi4. Had to reboot a couple of
times and every time it was back at playing music again in about 5 or 10
seconds.. 

As expected installing the remote was simple, but then I got stuck on my
first issue: 
For the remote I use CURL to post commands to jsonrpc on the LMS. This
seems to work only when I hard code the IP number of the LMS in there,
because PcP is not able to resolve hostnames. I think it requires
something called Avahi, but I couldn't find that in the plugin
directory..)  So my first question:

    Would anybody know what I would need to do to enable PcP to resolve
  hostnames (and ideally also register it's own name with the router)? 

Second issue was with the shutdown scripts, which I think might work but
are difficult to test and debug.. 
I added the new script in the area designated for "add your own script
here" in the existing shutdown.sh. But this script seems to require a
SUDO to run properly (in order to access the GPIO's I guess). Same goes
for the script that monitors the GPIO pin for a shutdown signal (I've
called it irswitch.sh). I'm considering installing BASH to make
debugging a little easier, which should be fine running on a Pi4... But
there are a few things I don't quite get yet... So my second question -
in two parts-:

    How does this shutdown.sh even get run and by whom? And would it be
  okay to replace it with my own in stead of appending to the existing? 
    When putting the monitor script (irswitch.sh) in the custom commands
  section, do I need to include a full path as well as a sudo and sh
  command? Or would it just be the name of the script, as in the
  provided examples?  (so just "-irswitch.sh-" or "-sudo sh
  /home/tc/irswitch.sh-"?)

Would be great to get this working, but a little advise here would be
appreciated. Once it works I would be happy to contribute my experiences
to the knowledge base for PcP.


------------------------------------------------------------------------
jeroen2's Profile: http://forums.slimdevices.com/member.php?userid=70418
View this thread: http://forums.slimdevices.com/showthread.php?t=109270

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to