Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to execute T_ACTION_V1? #42

Open
DanMabee opened this issue Jan 5, 2024 · 1 comment
Open

how to execute T_ACTION_V1? #42

DanMabee opened this issue Jan 5, 2024 · 1 comment

Comments

@DanMabee
Copy link

DanMabee commented Jan 5, 2024

Hoping someone can fill me in on something not mentioned in the docs (i think)

I ran this:
curl.exe -k -H "Content-Type: application/json" -H "AUTH: xxx" -X GET https://192.168.1.11:7345/menu_native/dynamic/tv_settings/admin_and_privacy/soft_power_cycle|json_pp

and got this:

{
   "STATUS" : {
      "RESULT" : "SUCCESS",
      "DETAIL" : "Success"
   },
   "HASHLIST" : [
      3194182953,
      4047939753
   ],
   "ITEMS" : [
      {
         "VALUE" : "T_ACTION_V1",
         "TYPE" : "T_ACTION_V1",
         "CNAME" : "soft_power_cycle",
         "NAME" : "Reboot TV",
         "HASHVAL" : 4050647667
      }
   ],
   "PARAMETERS" : {
      "HELPTEXT" : "FALSE",
      "FLAT" : "TRUE",
      "HASHONLY" : "FALSE"
   },
   "URI" : "/menu_native/dynamic/tv_settings/admin_and_privacy/soft_power_cycle"
}

i thought perhaps this would poke it:
curl.exe -k -H "Content-Type: application/json" -H "AUTH: xxx" -X PUT -d "{""REQUEST"": ""MODIFY"",""VALUE"": ""T_ACTION_V1"",""HASHVAL"": 4050647667}" https://192.168.1.11:7345/menu_native/dynamic/tv_settings/admin_and_privacy/soft_power_cycle|json_pp

but alas, no. i get:

{
   "PARAMETERS" : {
      "REQUEST" : "MODIFY",
      "VALUE" : "T_ACTION_V1",
      "HASHVAL" : 4050647667
   },
   "URI" : "/menu_native/dynamic/tv_settings/admin_and_privacy/soft_power_cycle",
   "STATUS" : {
      "DETAIL" : "Proxy error",
      "RESULT" : "PROXY_ERROR"
   }
}

Does anyone listening know how to use an action correctly? Thanks.

@DanMabee
Copy link
Author

DanMabee commented Jan 5, 2024

hey, just figured it out. might want to add this to the docs. rather than "REQUEST": "MODIFY" use "REQUEST": "ACTION" and it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant