Describe the bug
How to use the set_channel command? I've seen the documention of the REST API method but can't get it to work.
To Reproduce
Steps to reproduce the behavior:
Using command
python3 /home/pi/pylips/pylips.py --command set_channel --body {"channel":{"ccid":"40005","preset":"5","name":"RTL Television"},"channelList":{"id":"allsat","version":"1"}}
Expected behavior
The TV should change to the desired channel, but an error appears.
Describe the bug How to use the set_channel command? I've seen the documention of the REST API method but can't get it to work.
To Reproduce Steps to reproduce the behavior: Using command
python3 /home/pi/pylips/pylips.py --command set_channel --body {"channel":{"ccid":"40005","preset":"5","name":"RTL Television"},"channelList":{"id":"allsat","version":"1"}}
Expected behavior The TV should change to the desired channel, but an error appears.
Screenshots
Additional context
EDIT: Had to wrap the body parameter in single quotes. Now it's working as excepted. Thanks for the handy script!