ow / samsung-frame-art

A small script that makes it easy to fling a folder of images onto the Samsung Frame TV
458 stars 23 forks source link

Script hangs at line 54, current_art = tv.art().get_current() #4

Open damonseeley opened 1 year ago

damonseeley commented 1 year ago

Attempting first connection to a Samsung Frame 43" 2021 model

When I run the script hangs on "current_art = tv.art().get_current()" which I verified by putting logging statements around it.

When I hit the url with Safari I get the expected return. When I run the --debug option I do not see an error.

damonseeley commented 1 year ago

API return from Safari

{"device":{"FrameTVSupport":"true","GamePadSupport":"true","ImeSyncedSupport":"true","Language":"en_US","OS":"Tizen","PowerState":"on","TokenAuthSupport":"true","VoiceSupport":"true","WallScreenRatio":"-1","WallService":"false","countryCode":"US","description":"Samsung DTV RCR","developerIP":"0.0.0.0","developerMode":"0","duid":"uuid:b1c6b9db-2a67-4311-887b-b61af33e6ea3","firmwareVersion":"Unknown","id":"uuid:b1c6b9db-2a67-4311-887b-b61af33e6ea3","ip":"192.168.86.66","model":"22_PONTUSM_FTV","modelName":"QN43LS03BAFXZA","name":"Samsung The Frame 43","networkType":"wireless","resolution":"3840x2160","smartHubAgreement":"true","ssid":"e4:5e:1b:df:23:c3","type":"Samsung SmartTV","udn":"uuid:b1c6b9db-2a67-4311-887b-b61af33e6ea3","wifiMac":"80:8A:BD:5A:11:20"},"id":"uuid:b1c6b9db-2a67-4311-887b-b61af33e6ea3","isSupport":"{\"DMP_DRM_PLAYREADY\":\"false\",\"DMP_DRM_WIDEVINE\":\"false\",\"DMP_available\":\"true\",\"EDEN_available\":\"true\",\"FrameTVSupport\":\"true\",\"ImeSyncedSupport\":\"true\",\"TokenAuthSupport\":\"true\",\"remote_available\":\"true\",\"remote_fourDirections\":\"true\",\"remote_touchPad\":\"true\",\"remote_voiceControl\":\"true\"}\n","name":"Samsung The Frame 43","remote":"1.0","type":"Samsung SmartTV","uri":"http://192.168.86.66:8001/api/v2/","version":"2.0.25"}

jondbarry commented 1 year ago

I can confirm that the old APIs to configure art have been removed from the Frame 2022 and later models. I traced traffic from the SmartThings app on my iPhone to my Frame TV - the new art APIs are encrypted with TLS. So no joy. :-( I'm sure they want to force customers through their paid art subscription service.

stibbzy commented 1 year ago

Has anyone had any luck with this? I have a 2020 Frame TV and I'm also getting the issue with the script crashing at current_art = tv.art().get_current() It's an earlier Frame TV, so shouldn't the API be available?

tigelbri commented 1 year ago

I have an 2023 model and it also hangs at line 54