There was this exchange:
Here's the procedure so far.
...For instance, could there be a WebIf "app" by linking the IR key-handling JS from the Portal to WebIf?
What about a WebShell app, maybe usable with a USB keyboard?
...
Are you volunteering?...
I should. CF's Webshell doesn't use the documented port 4200, just 80 as normal. If you use that, you can get a Webshell page displayed in the TV Portal, and auto-magically the PIN entry comes with the RC data entry widget that everyone will know from setting WiFi passwords, etc. But I couldn't find an easy way to get it back, so although I could display the telnet menu there was no way to select any of the options. Less critically and presumably fixable, the cursor was shown several characters to the left of its correct position, and the font was only really readable from less than two screen widths away. So clearly there is also some scope for experimentation with the entire WebIf. However being able to get the telnet menu up on the screen and enable the one-shot commands, even withoutLet's start with expressions of interest and then see if there's any demand and then if there's anyone with prior knowledge and requisite skills.
It's possible that I don't have the latter as my brief attempt to access WebShell through new-portal just gave a WebIf 404 page, leading to the WebIf home page with Back on the remote. Or maybe I should try harder.
cli
, could be very useful.Here's the procedure so far.
- Install webshell if not already installed.
- Install the new-portal package if not already installed. new-portal sets up a configurable local portal that forwards to the Humax site for their apps.
- Create
/mod/webif/plugin/webshell/webshell.html
:
Code:<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta charset="UTF-8"> <title>Humax Webshell</title> <link href="style.css" rel=stylesheet type=text/css /> <!-- needed to put the terminal in a visible part of the TV screen --> <style>body { padding: 5%; }</style> </head> <body> <div id=iframewrapper> <iframe src=/cli/menu></iframe> </div> </body> </html>
- Make the icon
/mod/webif/plugin/webshell/icon-128.png
by shrinking/mod/webif/plugin/webshell/icon.png
to 128 pixels square. - Add a prototype Webshell app, initially just as a Favourite app by running this:
Code:# sqlite3 /mod/etc/portal.db sqlite> INSERT INTO favourites VALUES(NULL,'http://localhost/plugin/webshell/webshell.html','Webshell','http://localhost/plugin/webshell/icon-128.png',strftime('%s', 'now')*1000); sqlite>
/mod/webif/html/portal/js/TVApps.js
. - Just for safety's sake, restart the webshell service
service webshell restart
(or use the WebIf, or restart the HD/R).
Last edited: