User(s) browsing this thread: 1 Guest(s)
[200] Open html from cgi?
|
|
05-06-2011, 01:00 PM
(This post was last modified: 05-06-2011 07:04 PM by dc11ab.)
|
|||
|
|||
|
Open html from cgi?
Sorry if in the wrong section, just didnt know where to put.
I'm trying to do a script that will check if shares are mounted, if not mounted it will mount them and then carry on to the jukebox. The checking and mounting part of the script is fine, i just can't figure out how to call the jukebox as it's a dynamic one. The script layout is like 1 check mounts 2 if ok start jukebox 3 if not ok, remount then start jukebox From what ive read i should be using something like PHP Code: echo '<meta HTTP-EQUIV="REFRESH" content="0; url=http://192.168.123.100:8088/Dynamic_._1.html">'; I have tried variations on the above with no luck, can anyone confirm if this is even possable. Thanks Miller My Popcorn Hour A110 Trakt.tv (TESTING)
![]() Community Software Installer - For All Your User Apps PchTrakt - Millers Mods Download A-400 - Onkyo TX SR608 AV receiver, C-200, A110 |
|||
|
05-06-2011, 02:23 PM
|
|||
|
|||
|
RE: Open html from cgi?
Journey had a cgi script that did something similar for the 100 series which would check to see if a path was mounted prior to playing a file from a jukebox.
Its not exactly the same but the concept is very similar. It was part of it play.cgi script he wrote awhile ago. Did you have a look at that at all? Pannasonic Plasma 50" -->HK254-->Emotiva xpa-5 & upa-2 A100 w/ 500gb HDD, A200 w/ mn100, c200 w/ 2.5" 250gb Calm 2.1, YAMJ - Redefined 1.8a skin, Music Jukebox 8 WHS ex490 w/ 2.5tb's |
|||
|
05-06-2011, 03:55 PM
|
|||
|
|||
|
RE: Open html from cgi?
Hi excal,
Have had a look at play.cgi and from what i can tell he's used a command like i have tried Code: RETURNTO="<meta http-equiv='refresh' content='10;url=${RETURNTO}'>"I'm begining to think that it can't be done
My Popcorn Hour A110 Trakt.tv (TESTING)
![]() Community Software Installer - For All Your User Apps PchTrakt - Millers Mods Download A-400 - Onkyo TX SR608 AV receiver, C-200, A110 |
|||
|
05-06-2011, 04:17 PM
|
|||
|
|||
|
RE: Open html from cgi?
I know a few things did change from the 100 -200 that made it not work quite properly. This may be one of them.
The people to ask directly are Lordy, and Journey. Lundman and Dc11ab might have some insight too. Pannasonic Plasma 50" -->HK254-->Emotiva xpa-5 & upa-2 A100 w/ 500gb HDD, A200 w/ mn100, c200 w/ 2.5" 250gb Calm 2.1, YAMJ - Redefined 1.8a skin, Music Jukebox 8 WHS ex490 w/ 2.5tb's |
|||
|
05-06-2011, 04:21 PM
|
|||
|
|||
|
RE: Open html from cgi?
doesn't kdoske still work with the http://localhost.drives urls?
|
|||
|
05-06-2011, 04:25 PM
(This post was last modified: 05-06-2011 04:27 PM by jhmiller.)
|
|||
|
|||
|
RE: Open html from cgi?
That's the thing, i expect that that line would work if it pointed to a file but as i'm using nmtserver all html are generated as requested so i cant point it to a html file.
Does any one know what program on the C200 is used to display html, if known could i just use the program name followed by the url? My Popcorn Hour A110 Trakt.tv (TESTING)
![]() Community Software Installer - For All Your User Apps PchTrakt - Millers Mods Download A-400 - Onkyo TX SR608 AV receiver, C-200, A110 |
|||
|
05-06-2011, 05:21 PM
|
|||
|
|||
|
RE: Open html from cgi?
I've seen this :
http://www.networkedmediatank.com/showth...#pid360353 maybe this command works, I didn't try : echo /location/page.html > /tmp/gaya_bc |
|||
1 user says Thank You to Grael for this post |
|
05-06-2011, 07:07 PM
|
|||
|
|||
|
RE: Open html from cgi?
I think Grael is spot on; piping a html page to /tmp/gaya_bc should output it on TV screen.
Audio, video, disco - I hear, I see, I learn. Wiki. Wiki? Wiki! |
|||
1 user says Thank You to dc11ab for this post |
|
05-06-2011, 09:03 PM
|
|||
|
|||
|
RE: Open html from cgi?
Thanks Guys
![]() I have not tried from the script but can confirm that it works via telnet Code: echo http://192.168.123.100:8088/Dynamic_._1.html > /tmp/gaya_bcThanks again guys My Popcorn Hour A110 Trakt.tv (TESTING)
![]() Community Software Installer - For All Your User Apps PchTrakt - Millers Mods Download A-400 - Onkyo TX SR608 AV receiver, C-200, A110 |
|||
|
05-06-2011, 09:13 PM
(This post was last modified: 05-06-2011 09:14 PM by accident.)
|
|||
|
|||
|
RE: Open html from cgi?
why not just make an html file that redirects to nmtserver and use the localhost.drives path to point to it?
Or even better, nmtserver should be able to mount shares as needed from nmtserver... |
|||
|
05-06-2011, 10:10 PM
|
|||
|
|||
|
RE: Open html from cgi?
I am no coder lol, if html can also have shell code inside i would not have a clue where to begin. I just learn what i can from seeing others code and a little knowale of basic from back in the day. I could do the check commands as that was just If then stuff and formatting was just a case of google it, you guys would laugh if i showed it to you but hopfuly it will do what i want.
The wife kepted moaning at me everytime she wanted to watch somthing and the share was not mounted, so now when she starts the jukebox it will now check and mount (if needed) all the shares and then display the jukebox all with the same 1 button press as before (she dont like tech) Are you saying nmtserver has this now or a feature that could be added? My Popcorn Hour A110 Trakt.tv (TESTING)
![]() Community Software Installer - For All Your User Apps PchTrakt - Millers Mods Download A-400 - Onkyo TX SR608 AV receiver, C-200, A110 |
|||
|
05-06-2011, 10:38 PM
|
|||
|
|||
|
RE: Open html from cgi?
I couldn't tell you what nmtserver can and can't do but considering its an app running all the time, it should be very easy for it to mount the share for you before it tries to play anything. Also considering I haven't seen anyone ask this before, perhaps there a way to do what your trying too already. I would ask in the nmtserver thread how to have shares mount.
|
|||
1 user says Thank You to accident for this post |
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
A-400 [13 May 2013]

[200] Open html from cgi?


![[Image: watched-fanart.jpg]](http://trakt.tv/user/jhmiller/widget/watched-fanart.jpg)



![[+]](images/collapse_collapsed.gif)




