#๐Ÿ”’ Vizio API

7 messages ยท Page 1 of 1 (latest)

cloud sorrel
#

I'm working with the python Vizio API from github: https://github.com/exiva/Vizio_SmartCast_API

I am trying to pair my TV, but I'm receiving an error with the requests module. Error: https://pastebin.com/ddDtwPDX

Here is my code:

import requests

pairing_body = {
    "DEVICE_NAME": "Living Room",
    "DEVICE_ID": "236D4"
}
pairing_header = {
    "Content-Type": "application/json",
}

pair = requests.put(
    "https://192.168.0.219:7345/pairing/start",
    json=pairing_body,
    headers=pairing_header
)
print(pair.content)
print(pair.status_code)

I can't figure out what I'm doing wrong, I'm not sure if the error is in my request itself or if I am misinterpreting the API documentation. Thanks in advance for any help!

limber novaBOT
#

@cloud sorrel

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

winter eagle
#

You can try to download the certificate from that domain and pass it to requests.put in the verify parameter to allow a self signed cert

cloud sorrel
limber novaBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.