So I have it almost cracked!!!! ALMOST
#List zero value indices
curl -s --data-urlencode 'filter=[{"field":"index","type":"numeric","value":"0","comparison": "EQ"}]&start=0&sort=index&dir=desc&all=1' "http://UID:PWD@IP:9981/api/channeltag/grid"
#Update specific index
curl --data-urlencode 'node={"uuid":"a85d1ac0f895541e3686fc6a02fa234b","index":1}' "http://UID:PWD@IP:9981/api/idnode/save"
BUT....I need to run this on the docker host and when I do it access is denied
curl: (7) Failed to connect to <IP> port 9981: Connection refused
It works fine when I run it from a remote host. Is this being blocked by the webUI user even though it is set to 0.0.0.0/0 or is it docker blocking ports on the container from the local host. The container is running in a different subnet
docker-compose.yml (extracts)
tvheadend:
image: lscr.io/linuxserver/tvheadend:latest
container_name: tvheadend
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- RUN_OPTS=
#- RUN_OPTS=--bindaddress 192.168.5.201 --http_port 192.168.5.201:9981 --htsp_port 192.168.5.201:9982
#- RUN_OPTS=--http_port 9983 --htsp_port 9984
volumes:
- /mnt/usbhdd/pvr/config:/config
- /mnt/usbhdd/pvr/recording:/recording
- /mnt/usbhdd/pvr/m3u:/m3u
- /mnt/usbhdd/pvr/timeshift:/timeshift
- /mnt/usbhdd/pvr/scripts:/scripts
'# ports:
'# - 9981:9981
'# - 9982:9982
'# - 192.168.5.201:9981:9981
'# - 192.168.5.201:9982:9982
networks:
lanvpn:
ipv4_address: "192.168.30.201"
devices:
- /dev/dvb:/dev/dvb
privileged: true
restart: unless-stopped
networks:
default:
ipam:
config:
- subnet: 192.168.0.0/24
lanvpn:
driver: macvlan
driver_opts:
parent: eth0.300
ipam:
config:
- subnet: 192.168.30.0/24
gateway: 192.168.30.1
Im trying to access TV on 192.168.30.1 which is a local network on VLAN 300 (ports on the config are currenlly commented out