first commit
This commit is contained in:
commit
4f951872fb
22
main.py
Normal file
22
main.py
Normal file
@ -0,0 +1,22 @@
|
||||
import requests
|
||||
|
||||
|
||||
payload = {
|
||||
"value": [
|
||||
{
|
||||
"name": "10k Bitrate",
|
||||
"videoPassthrough": False,
|
||||
"audioPassthrough": True,
|
||||
"videoBitrate": 10000,
|
||||
"audioBitrate": 160,
|
||||
"scaledWidth": 1920,
|
||||
"scaledHeight": 1080,
|
||||
"framerate": 60,
|
||||
"cpuUsageLevel": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
response = requests.post("http://192.168.1.67:8086/api/admin/config/video/streamoutputvariants", json=payload, auth=('admin', "abc123"))
|
||||
|
||||
print(response)
|
||||
22
mongotest.py
Normal file
22
mongotest.py
Normal file
@ -0,0 +1,22 @@
|
||||
import pymongo
|
||||
import pprint
|
||||
import json
|
||||
import datetime
|
||||
|
||||
import requests
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
|
||||
local_timeline_api_endpoint = "https://misskey.treehousefullofstars.com/api/notes/local-timeline"
|
||||
payload = {
|
||||
"withFiles": False,
|
||||
"withRenotes": False,
|
||||
"withReplies": False,
|
||||
"limit": 50
|
||||
}
|
||||
|
||||
response = requests.post(local_timeline_api_endpoint, headers=headers, json=payload)
|
||||
|
||||
pprint.pprint(response.json())
|
||||
Loading…
x
Reference in New Issue
Block a user