Skip to content

Conversation

@chros73
Copy link

@chros73 chros73 commented Sep 10, 2021

There's no need to write scripts just because of these anymore, command line examples (note the escaping of quotes):

aiopylgtvcommand 192.168.1.18 set_current_picture_settings "{\"backlight\": 0, \"contrast\": 65}"
aiopylgtvcommand 192.168.1.18 launch_app_with_params com.webos.app.softwareupdate "{\"mode\": \"user\", \"flagUpdate\": true}"
aiopylgtvcommand 192.168.1.18 get_picture_settings "[\"contrast\", \"backlight\"]"
# Launch In-Start Service Menu (code: 0413) (using JSON)
aiopylgtvcommand 192.168.1.18 launch_app_with_params com.webos.app.factorywin "{\"id\": \"executeFactory\", \"irKey\": \"inStart\"}"
# Launch Ez-Adjust Service Menu (code: 0413) (using JSON)
aiopylgtvcommand 192.168.1.18 launch_app_with_params com.webos.app.factorywin "{\"id\": \"executeFactory\", \"irKey\": \"ezAdjust\"}"

This can work in bash on Linux (but not in cmd on Windows):

aiopylgtvcommand 192.168.1.18 set_current_picture_settings '{"backlight": 0, "contrast": 65}'
aiopylgtvcommand 192.168.1.18 launch_app_with_params com.webos.app.softwareupdate '{"mode": "user", "flagUpdate": true}'
aiopylgtvcommand 192.168.1.18 get_picture_settings '["contrast", "backlight"]'
aiopylgtvcommand 192.168.1.18 launch_app_with_params com.webos.app.factorywin '{"id": "executeFactory", "irKey": "inStart"}'
aiopylgtvcommand 192.168.1.18 launch_app_with_params com.webos.app.factorywin '{"id": "executeFactory", "irKey": "ezAdjust"}'

Relates to: #30 (comment)

@chros73 chros73 changed the title Add support for dictionary via JSON in cmd line params Add support for dictionary and list types in cmd line params Sep 19, 2021
@chros73
Copy link
Author

chros73 commented Sep 23, 2021

I also figured it out (after decompiling a C8 and CX firmwares with epk2extract) how to launch In-Start and Ez-Adjust Service Menus, I added to the examples above.

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

Successfully merging this pull request may close these issues.

1 participant