Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Navigation using remote control
#6
Hello Forum members,

Before using TriggerHappy or anything else, the following simple REST command fails using either the host name or "localhost" that I would place in a configuration file.

Code:
musical@moOde:~ $ curl http://localhost/command/?cmd=set_volume 95
{"volume":"100","muted":"no"}curl: (28) Failed to connect to 0.0.0.95 port 80 after 133482 ms: Couldn't connect to server
musical@moOde:~ $ curl http://localhost/command/?cmd=get_volume
{"volume":"100","muted":"no"}
musical@moOde:~ $ curl http://moode/command/?cmd=get_volume
{"volume":"100","muted":"no"}
musical@moOde:~ $ curl http://moode/command/?cmd=set_volume 95
{"volume":"100","muted":"no"}curl: (28) Failed to connect to 0.0.0.95 port 80 after 133427 ms: Couldn't connect to server
musical@moOde:~ $ ping -c 1 moode
PING moOde (127.0.1.1) 56(84) bytes of data.
64 bytes from moOde (127.0.1.1): icmp_seq=1 ttl=64 time=0.034 ms

--- moOde ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.034/0.034/0.034/0.000 ms
musical@moOde:~ $

I get proper results with the "get_" commands such as:
Code:
musical@moOde:~ $ curl http://moode/command/?cmd=get_output_format
{"format":"Not playing"}
musical@moOde:~ $
Reply


Messages In This Thread
Navigation using remote control - by scaronpce - 05-07-2025, 02:31 PM
RE: Navigation using remote control - by dheijl - 05-07-2025, 06:37 PM
RE: Navigation using remote control - by scaronpce - 05-08-2025, 02:32 PM

Forum Jump: