Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: inter computer messaging? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
GadgetGuy
Super User
Super User
Avatar

Joined: June 01 2008
Location: United States
Online Status: Offline
Posts: 942
Posted: November 17 2022 at 13:56 | IP Logged Quote GadgetGuy

I want to set up a pure home music server and control via “messaging” from my PH server the sound level/mute states of the music.
Can this be done? If necessary I can install PH on the music server but it will control nothing but only accept sound control messages.
Can this music server be installed and run without a connected PLM?
GadgetGuy


__________________
Ken B - Live every day like it's your last. Eventually, you'll get it right!
Back to Top View GadgetGuy's Profile Search for other posts by GadgetGuy
 
gg102
Senior Member
Senior Member


Joined: January 29 2013
Location: United States
Online Status: Offline
Posts: 245
Posted: November 30 2022 at 10:24 | IP Logged Quote gg102

Ken,

I regularly communicated with external devices directly to/from PH.
I communicate with my Raspberry Pi's and all my Shelly Devices using this method.
This method is simple and reliable and doesn't require any controllers or hubs.
Straight HTTP.
(I have been replacing all my x10 devices with Shelly devices. They are fantastic!)

To "get into PH" from an external device you can use this command directly from a browser or device to test:
http://192.168.x.y:PH_PORT/ph-cgi/eval?formula=ph_macroparm( "Name_of_PH_macro", "into_local1", "into_local2","into_local3","into_local4","into_local5")', auth=(PH_USER, PH_PASSWORD )
You must have all 5 "into_locals" or the PH formula will error out.

If you use ph_macroparmret() rather than ph_macroparm() you can get back a response from PH to the device.
Whatever is put into PH local1 when the PH macro ends will be sent back to the device.

There's no reason you couldn't talk to/from another PH or any device that can send/receive HTTP requests.

Hope this helps.
If you want more detailed info I can help.
I can show you my Raspberry Pi code, or the PH code to "talk to" the Shelly devices.


Back to Top View gg102's Profile Search for other posts by gg102
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum