WizRemote - Set timers on your wiz remotely via the web!

Advanced Discussions on Programing for & Modifying Beyonwiz Products.

Moderators: Gully, peteru

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Wed Feb 13, 2008 21:36

File management will be a piece of cake I think.
Actually, I can see now the "wizremote" directory in the fileplayer list, so it will be very simple to create a "trashcan" directory, and an automoted mover that moves old files to this trashcan directory (and you can still play files from here if you want) and perhaps when the HDD gets to 95%, it can purge from the trashcan directory. And setup a PHP "empty trash" to empty prior to the 95% threshold.
All this hardly even needs the toolchain, it can be done with a shell script and cron job for most of it (apart from the php "empty trash").
And the php could perhaps let you choose keywords or a "series link" or whatever this is called, where it will purge yesterdays news after todays is recorded (or whatever people cry out for deleting old recordings for).
The only small catch is the "filenames" of the recordings are like this (actually directory names):
7_HD_Digital_Dec.23.2007_20.31+54457.73860.tvwiz
7_HD_Digital_Dec.24.2007_20.37+54458.74220.tvwiz
ABC2_Jan.9.2008_23.30+54474.84600.tvwiz
ABC_HDTV_Feb.3.2008_19.25+54499.69900.tvwiz
Bones_cut _Dec.13.2007_20.56+54447.75399.tvwiz
Bones_save_Dec.13.2007_20.34+54447.74097.tvwiz
NINE_HD_Feb.1.2008_19.1+54497.68460.tvwiz
aus idol_Nov.12.2007_19.27+54416.70043.tvwiz
fireworx1_Dec.31.2007_20.59+54465.75593.tvwiz
So the next trick would be to get the app to look into the header.tvwiz files in each directory to get the "saved filename" info, a bit like WizFX does, but only on the Wiz side, to give you the same name as what is listed in the recording list.
Regards
Tony

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Wed Feb 13, 2008 22:48

Eric, fantastic work again.
A few pointers/tips/requests.
Can you append the LCN to the channel name somehow (or pre-pend) as the channel name is sometimes not unique (e.g. D4/44/etc... not that I would record from this channel on a HD PVR!)

Something isn't quite right with your update_channel logic, I got all the channels, but it kept on going giving:
"728,36870,407" => "D44Parl-4Com'tee",
"32766,59905,548" => "ABC3",
"62480,58783,0" => "",
"65535,65535,46428" => "",
"65535,65535,1892" => "",
"65535,65535,22892" => "",
"65535,65535,12212" => "|*D",
"65535,65535,33212" => "",
"65535,65535,54212" => "",
"65535,65535,9676" => "",
"65535,65535,30676" => "",
"65535,65535,51676" => "",
"65535,65535,7140" => "",
"65535,65535,28140" => "",
"65535,65535,49140" => "",
"65535,65535,4604" => "",
"65535,65535,25604" => "",
"65535,65535,46604" => "",
"65535,65535,2068" => "",
"65535,65535,23068" => "",
"0,61343,0" => "7 Digital",
"0,61343,0" => "7 Digital",
"0,61343,0" => "7 Digital",
"0,61343,0" => "7 Digital",

And a heeeeeeeeeeeeeeap 7 digitals (config_channels_inc.php ended up being 1.8meg and my webpage timed out of course and now wizremote.php times out).
I deleted 7 Digital 3 from my Wiz channel list yesterday via the faves/whereever (it was a pain actually to work out how to delete a channel!) to see what changed in the headers/counts/etc and as per my notes before, at the service record start+2bytes is 0x0103 and appears on all records except the channel I deleted, where it is 0x0000,

LCN is 0x20 offset from start of record.
Record looks like:
0000 0103 0000 0002 2005 0102 0202 0102 0100 0000 0000 0000 0000 0000 0400 0400 0700 0C00
(so this is LCN7)

edit:
So I fixed up the channel array (config_channels_inc.php) and all is good(ish) again, with my D4 channels (your Sydney list doesn't have it, nor ABC3)
And I have on/ts/svsIDs again in the timerlist for some reason (where as with your config_channels_inc.php I have the proper channel names?)
And when I add a timer (the test7dig2 timer), it shows the channel name-
snip my 7 timers showing on/ts/svcIds
House 20-Feb-2008 20-Feb-2008 8:30pm 1h, 10m Weekly N N 4116,1538,1569 /
test7dig2 14-Feb-2008 14-Feb-2008 12:30am 5m Once N N 7 Digital 2 /

I will dig through your php tomorrow, but I have not progged PHP before. Anyone else want to fault find?

Regards
Tony

User avatar
Jammer
Master
Posts: 320
Joined: Thu Aug 30, 2007 12:56
Location: Gold Coast, Australia

Post by Jammer » Thu Feb 14, 2008 02:46

JS, is it possible to incorporate some form of smart timer setting in WizWeb? i.e. you already have the EPG data available AND the timer setting functionality in the one app.....is there much of a leap to integrate the two so that timers can be set automatically, ala TEDS or UKAS? sl8 (creator of UKAS tap) may be open to providing the logic systems that UKAS uses. And it'd surely have to be a lot easier to code than coding a tap, wouldn't it?

janilxx

Post by janilxx » Thu Feb 14, 2008 06:09

Jammer wrote:JS, is it possible to incorporate some form of smart timer setting in WizWeb? i.e. you already have the EPG data available AND the timer setting functionality in the one app.....is there much of a leap to integrate the two so that timers can be set automatically, ala TEDS or UKAS? sl8 (creator of UKAS tap) may be open to providing the logic systems that UKAS uses. And it'd surely have to be a lot easier to code than coding a tap, wouldn't it?
I am currently coding this kind of java application. It will work also from command line so that it is easy to run automatically (because of search words) e.g. every night.

With my application it is possible to browse EPG on computer screen and timer programs with it. And as said, also search worlds will be supported. As you said, it is much easier to handle different consecutive timer possibilities with computer than with PVR (like UKAS).

My application uses XMLTV as an EPG source (also support e.g. to TGD file could be added easily).

My design also allows easy way to add for example possibility to add timers into Topfield also. I would not use this feature, but maybe I will code it anyway if there is enough interests after BW support is ready.

Only drawback is that it is Java application, which means (I suppose) it is impossible to get working e.g. on NSLU2.

I do not have any ideas when this application would be ready. I might wait for official timer interface, or might use the current unofficial interface. I am sure I must wait for some kind of working Finnish BW FW (sigh). I have already made designs and some small codes for this.

j s
Master
Posts: 475
Joined: Thu Aug 30, 2007 19:40
Location: Geelong

Post by j s » Thu Feb 14, 2008 06:56

Jammer wrote:JS, is it possible to incorporate some form of smart timer setting in WizWeb? i.e. you already have the EPG data available AND the timer setting functionality in the one app.....is there much of a leap to integrate the two so that timers can be set automatically, ala TEDS or UKAS? sl8 (creator of UKAS tap) may be open to providing the logic systems that UKAS uses. And it'd surely have to be a lot easier to code than coding a tap, wouldn't it?
That's been on the agenda for quite a while but ut is extremely non-trivial and with TEDS around I had no personal need for it. Just matching names is the easy bit (I did it in tfSeasonPass years ago - before TEDS). It's the conflict resolution that's the complex bit.

With the Wiz of course here is no TEDS (not yet anyway) so I do now have a personal motivation to provide the function.

j s
Master
Posts: 475
Joined: Thu Aug 30, 2007 19:40
Location: Geelong

Post by j s » Thu Feb 14, 2008 07:00

Has anyone yet tested to discover what the Wiz does if given an impossible timer list? All the things the internal code stops you doing? Overlapping timers on the same channel? Three concurrent timers? Etc?

efry
Master
Posts: 150
Joined: Thu Aug 30, 2007 22:01
Location: Sydney
Contact:

Post by efry » Thu Feb 14, 2008 08:19

j s wrote:Has anyone yet tested to discover what the Wiz does if given an impossible timer list? All the things the internal code stops you doing? Overlapping timers on the same channel? Three concurrent timers? Etc?
Hi JS,

I haven't been game to try. Hopefully it would just drop invalid timers. I plan to build some checking logic into the web frontend. I just need to sit down and see what checks the wiz does when entering timers.

Eric

efry
Master
Posts: 150
Joined: Thu Aug 30, 2007 22:01
Location: Sydney
Contact:

Post by efry » Thu Feb 14, 2008 08:51

Hi Tony,

I've found the problem with your svc.dat file

I was assuming the number of channels was a 32bit number but it turns out it is only 16bit.

I will make the change to the wizremote daemon tonight.

Eric

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Thu Feb 14, 2008 08:58

Yeah, most STBs only support the storage of 2000 channels, so it makes sense to be 16bit only (not that it stops silly proggers from making everything 32bit for the hell of it!)
Tony

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Thu Feb 14, 2008 11:55

has anybody talked to trapper about putting teds on to the Wiz yet?

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Thu Feb 14, 2008 12:03

I am thinking of porting another app and run in cygwin and/or on the slug which does keyword search etc. It exists for the Toppy, but given TED generally works, I haven't persued using it, but now might as I don't like some of the quirks TED has with its VDS garbage (all those silly runtime errors when something isn't quite right).
And then I have full control of how I want it to behave, and avoid encryption of fave silliness, avoid the backwards compat isssues of faves from newer versions etc that TED has.
Regards
Tony

User avatar
Gully
Moderator
Posts: 7736
Joined: Thu Aug 30, 2007 22:08
Location: Melbourne

Post by Gully » Thu Feb 14, 2008 12:14

Kezza wrote:has anybody talked to trapper about putting teds on to the Wiz yet?

Kezza
Yes :)
Cheers
Gully
_____________
Beyonwiz U4
Logitech Harmony Elite
Google Pixel 6 Pro

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Thu Feb 14, 2008 14:27

Gully wrote:
Kezza wrote:has anybody talked to trapper about putting teds on to the Wiz yet?

Kezza
Yes :)
and the out come is?
does he know about the recent hacks to the firmware?

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
Gully
Moderator
Posts: 7736
Joined: Thu Aug 30, 2007 22:08
Location: Melbourne

Post by Gully » Thu Feb 14, 2008 14:36

Kezza wrote:
Gully wrote:
Kezza wrote:has anybody talked to trapper about putting teds on to the Wiz yet?

Kezza
Yes :)
and the out come is?
does he know about the recent hacks to the firmware?

Kezza
He knows some of it and will check out more recent developments.
Cheers
Gully
_____________
Beyonwiz U4
Logitech Harmony Elite
Google Pixel 6 Pro

cwiggles
Master
Posts: 284
Joined: Wed Aug 01, 2007 21:37
Location: Sassafras, Victoria, Australia

Post by cwiggles » Thu Feb 14, 2008 15:51

Just a quick question relating to this topic. Given the BW does have a working HTTP server, why can't the code being developed for this functionality make use of it as apposed to seting up a PC with web server software?

I'm not having a go at anyone or the work being done to date, just courious.

Regards

Craig

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Post by prl » Thu Feb 14, 2008 16:06

cwiggles wrote:Just a quick question relating to this topic. Given the BW does have a working HTTP server, why can't the code being developed for this functionality make use of it as apposed to seting up a PC with web server software? ...
Because the Beyonwiz HTTP server is embedded into one of the Beyonwiz applications (wizdvp/wizpnp), and no-one outside Beyonwiz has the source code for it.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

efry
Master
Posts: 150
Joined: Thu Aug 30, 2007 22:01
Location: Sydney
Contact:

Post by efry » Thu Feb 14, 2008 17:04

prl wrote:
cwiggles wrote:Just a quick question relating to this topic. Given the BW does have a working HTTP server, why can't the code being developed for this functionality make use of it as apposed to seting up a PC with web server software? ...
Because the Beyonwiz HTTP server is embedded into one of the Beyonwiz applications (wizdvp/wizpnp), and no-one outside Beyonwiz has the source code for it.
Hi Craig,

I thought about implementing my own little web interface but thought it would be too much overhead so I opted for a custom protocol.

You can host the wizremote.php script on any external website. So you don't need to have your computer running assuming your isp provides your with website space.

Eric

cwiggles
Master
Posts: 284
Joined: Wed Aug 01, 2007 21:37
Location: Sassafras, Victoria, Australia

Post by cwiggles » Thu Feb 14, 2008 19:57

Thanks for the replies guys. Not sure why you would need the souce code to the web server though, unless I suppose you wanted to build in some additional library support.

Anyway, lets hope BW release their API to all this soon.

Craig

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Post by prl » Thu Feb 14, 2008 20:39

cwiggles wrote:Thanks for the replies guys. Not sure why you would need the souce code to the web server though, unless I suppose you wanted to build in some additional library support.

Anyway, lets hope BW release their API to all this soon.

Craig
It's not a general purpose Web server like Apache. It's just designed for supporting playback and file transfer using WizPnP. I doubt very much it even has a CGI interface.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
Gully
Moderator
Posts: 7736
Joined: Thu Aug 30, 2007 22:08
Location: Melbourne

Post by Gully » Thu Feb 14, 2008 21:23

I was under the impression it was more than that and would support similar functions to WizRemote.
Cheers
Gully
_____________
Beyonwiz U4
Logitech Harmony Elite
Google Pixel 6 Pro

efry
Master
Posts: 150
Joined: Thu Aug 30, 2007 22:01
Location: Sydney
Contact:

Post by efry » Thu Feb 14, 2008 21:28

Hi Guys,

I've posted another update to wizremote. Version 0.6a. This version fixes the bug with loading the channel list. It goes to show I really should have looked at more than one svc.dat file before releasing v0.6. ;-)

http://www.beyonwizsoftware.net/softwar ... ;attach=35

Code: Select all

0.6a* Fixed bug in chlist command. I was reading the number of 
      channels as u32 when it should have been u16
    * Fixed php warning about undefined $_REQUEST["type"] var.

0.6 * Added update_channels.php This script fetches the channel
      list array from the wiz. If config_channels_inc.php is
      writeable by your webserver it will be updated for you.
      If not then you will need to save the resulting the channel
      list file and copy it to your web directory manually.
    * Moved web config into config_inc.php
    * Moved channel array to config_channels_inc.php
    * Moved come common php functions into wizremote_inc.php
    * Added new chlist message to wizremote daemon. Thanks
      to tonymy01 for info on the svc.dat file
If anyone else has problems with the channel list I'd be interested in seeing your svc.dat file. So far I've only seen two. So I could still be making bad assumptions.

Enjoy

Eric

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Post by prl » Thu Feb 14, 2008 21:44

Gully wrote:I was under the impression it was more than that and would support similar functions to WizRemote.
I just had a bit of a closer look at it. It seems to contain SHTTPD, which does in fact support CGI.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Thu Feb 14, 2008 23:05

Thanks Eric, all good now. The update_channels.php comes back with an error ("internet explorer cannot download update_channels.php from 192.168.0.102"), but the config_channels_inc.php is correctly updated now and with correct IDs (and the stdout of the wizremote is correct also now).
I am trying to get the toolchain installed so I can help out a bit more and experiment with some improvements (like LCN support added, mux details displayed etc), but this is proving to be a difficult task. I gave up on cygwin fairly quickly, even though it had about 3 or 4 libncurses installed, the make toolchain kept bombing out with the ncurses missing, so I am trying to build in ubuntu in vmware.... this is fun also as the gcc in ubuntu is too new for the old 2.95 cross compiler building and get an lvalue error, so installed 2.95 gcc and now all good apart from the patching bombs out... two steps forward and one back all night really.
Regards
Tony

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Thu Feb 14, 2008 23:43

do I need to set this up differently if I run it from a web server thats not on my Lan?

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Thu Feb 14, 2008 23:47

The webserver needs comms to your Wiz, can you arrange that (on port 30464 by default)?
Messy, easier to just set something quick and nasty up on winblows, or I have it setup on my SLUG (lighttpd and php) and this is pretty smiple.
Also you need to serve the wiz files to the wiz to get them onto the IDE HDD (or you can mount a SMB directory and copy it that way. The wiz will mount SMB shares for you by simply surfing to your PC in the Wiz file player interface).
Actually, I found a possible reason why sometimes writes/playback fail in the copy/move function, despite being telnetted into the Wiz, the SMB mount had hung and wouldn't let me write (but would let me read!?) and the flag was definitely RW and I was writing earlier.
Regards
Tony

j s
Master
Posts: 475
Joined: Thu Aug 30, 2007 19:40
Location: Geelong

Post by j s » Fri Feb 15, 2008 03:34

A couple of times now I've had a problem with the wizremote server app not responding. On the occasion tonight (actually last night now) it was after I'd boobooed on some TW code which caused the aes handshake to fail (because the necessary GLOBALS hadn't been set). Even efry's web code then couldn't get a response till I rebooted the Wizzes. The P1 and the S1 were the same.

I know it's obscure but it might be worth checking what the server app does if the aes handshake fails (or perhaps isn't completed)?

janilxx

Post by janilxx » Fri Feb 15, 2008 05:12

tonymy01 wrote:I am thinking of porting another app and run in cygwin and/or on the slug which does keyword search etc.
Cool! Especially if it would run on nslu2, because I am planning to buy one.
Would this application work with xmltv data so that it would work with Finnish data as well? Or maybe with TGD formatted files? I am not sure yet what data format I could get for nslu2, most probably xmltv.

And could it be possible to give you requirements about search word feature :) ?

I think I would have some requirements, as I was quite demanding also in Toppy side.
Finally I coded personally part of the UKAS's "separate timers, keep end padding" feature. When there is consecutive programs like this: 21:00-22:00 - 22:00-23:00, separate timers would be created this way: 20:59-22:03 and 22:03-23:03 (1min pre and 3min post padding is used in example).
Note, BW's soft padding might help with this.

efry
Master
Posts: 150
Joined: Thu Aug 30, 2007 22:01
Location: Sydney
Contact:

Post by efry » Fri Feb 15, 2008 06:20

j s wrote:A couple of times now I've had a problem with the wizremote server app not responding. On the occasion tonight (actually last night now) it was after I'd boobooed on some TW code which caused the aes handshake to fail (because the necessary GLOBALS hadn't been set). Even efry's web code then couldn't get a response till I rebooted the Wizzes. The P1 and the S1 were the same.

I know it's obscure but it might be worth checking what the server app does if the aes handshake fails (or perhaps isn't completed)?
Hi JS

The wizremote daemon doesn't timeout at the moment so if it starts reading and the wizremote.php doesn't send what it expects it will wait forever. Adding timeouts to reads is on my todo list. :) That should greatly improve protocol stability.

Eric

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Fri Feb 15, 2008 07:00

tonymy01 wrote:The webserver needs comms to your Wiz, can you arrange that (on port 30464 by default)?
Messy, easier to just set something quick and nasty up on winblows, or I have it setup on my SLUG (lighttpd and php) and this is pretty smiple.
Also you need to serve the wiz files to the wiz to get them onto the IDE HDD (or you can mount a SMB directory and copy it that way. The wiz will mount SMB shares for you by simply surfing to your PC in the Wiz file player interface).
Actually, I found a possible reason why sometimes writes/playback fail in the copy/move function, despite being telnetted into the Wiz, the SMB mount had hung and wouldn't let me write (but would let me read!?) and the flag was definitely RW and I was writing earlier.
Regards
I won't/can't run a http server on this pc, so any help setting this up to run from an external server would be great.

here's where I'm at:
wiz has all files on it and wizremote is running, have checked via telnet.
php files are on web server just need help with config.
home setup is:
internet ip 203.xx.xxx.xxx, to router/modem which is gate way 192.xxx.x.xxx, then wiz 192.xxx.x.xxx.
I think this is all, just not sure how to get to wiz as i'm not talking to it over a LAN, and must use port 30464.

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Fri Feb 15, 2008 07:34

You need to setup your router to port forward anything that comes in on that port from the "WAN" to the IP address of your Wiz, same port.
Janillxx:
Jim on the Topfield forums wrote it, I was going to work on improving it a bit- http://jim16.110mb.com/perltgd.html
and creates TGD & timers from xmltv using perl!
P.S. I am sure effry already has something in the pipeline, but notice the ICEguide data in the hyperspace directory on the HDD? I am thinking of enhancing the EPG to put more info into the extended description, as it seems we are pushing $h?t* uphill to get Beyonwiz to enhance this thing much at the moment. There is a possibility of understanding the protocol completely and either cache the FTA away there also (although the wizdvp setting to enable ice and thus reading from that directory will disable FTA... maybe have a xmltv way of uploading to the Wiz...? I don't want to stomp all over the ICE product because I also have ICE and want them to succeed in their business.... so initially just enhancing the data presentation for ICE will be a start).
Regards
Tony

User avatar
Jammer
Master
Posts: 320
Joined: Thu Aug 30, 2007 12:56
Location: Gold Coast, Australia

Post by Jammer » Fri Feb 15, 2008 08:43

Kezza wrote:I won't/can't run a http server on this pc, so any help setting this up to run from an external server would be great.

here's where I'm at:
wiz has all files on it and wizremote is running, have checked via telnet.
php files are on web server just need help with config.
home setup is:
internet ip 203.xx.xxx.xxx, to router/modem which is gate way 192.xxx.x.xxx, then wiz 192.xxx.x.xxx.
I think this is all, just not sure how to get to wiz as i'm not talking to it over a LAN, and must use port 30464.
Kezza, I'm thinking about doing the same thing because I don't want to leave my PC running all the time for the webserver, especially if I'm away on holidays but still want to access the Wiz. I did some searching last night and found a number of companies that host websites for free and support PHP, FTP/web browser uploads, email, passworded files, control panel etc etc (check out http://www.profusehost.net/services/index.htm and http://www.000webhost.com/ .......both seem pretty good). I figure that I'll set up some port forwarding on my router to connect directly to the Wiz from outside, and then design the site to support mobile phone access so I can set timers via phone if need be.

I'd love some feedback from others about this proposed setup :D

User avatar
Gully
Moderator
Posts: 7736
Joined: Thu Aug 30, 2007 22:08
Location: Melbourne

Post by Gully » Fri Feb 15, 2008 09:08

janilxx wrote:Finally I coded personally part of the UKAS's "separate timers, keep end padding" feature. When there is consecutive programs like this: 21:00-22:00 - 22:00-23:00, separate timers would be created this way: 20:59-22:03 and 22:03-23:03 (1min pre and 3min post padding is used in example).
Note, BW's soft padding might help with this.
I hope in anything that is done there is an option to create a single timer with joined names as well.
Cheers
Gully
_____________
Beyonwiz U4
Logitech Harmony Elite
Google Pixel 6 Pro

User avatar
Jammer
Master
Posts: 320
Joined: Thu Aug 30, 2007 12:56
Location: Gold Coast, Australia

Post by Jammer » Fri Feb 15, 2008 09:13

Gully wrote:
janilxx wrote:Finally I coded personally part of the UKAS's "separate timers, keep end padding" feature. When there is consecutive programs like this: 21:00-22:00 - 22:00-23:00, separate timers would be created this way: 20:59-22:03 and 22:03-23:03 (1min pre and 3min post padding is used in example).
Note, BW's soft padding might help with this.
I hope in anything that is done there is an option to create a single timer with joined names as well.
Agreed. There are many occasions where I'd much prefer to have a single merged recording (with joined names) rather than have 2 or more separate files with the beginning/end on one of the other files...... :?

efry
Master
Posts: 150
Joined: Thu Aug 30, 2007 22:01
Location: Sydney
Contact:

Post by efry » Fri Feb 15, 2008 09:58

Jammer wrote:
Kezza wrote:I won't/can't run a http server on this pc, so any help setting this up to run from an external server would be great.

here's where I'm at:
wiz has all files on it and wizremote is running, have checked via telnet.
php files are on web server just need help with config.
home setup is:
internet ip 203.xx.xxx.xxx, to router/modem which is gate way 192.xxx.x.xxx, then wiz 192.xxx.x.xxx.
I think this is all, just not sure how to get to wiz as i'm not talking to it over a LAN, and must use port 30464.
Kezza, I'm thinking about doing the same thing because I don't want to leave my PC running all the time for the webserver, especially if I'm away on holidays but still want to access the Wiz. I did some searching last night and found a number of companies that host websites for free and support PHP, FTP/web browser uploads, email, passworded files, control panel etc etc (check out http://www.profusehost.net/services/index.htm and http://www.000webhost.com/ .......both seem pretty good). I figure that I'll set up some port forwarding on my router to connect directly to the Wiz from outside, and then design the site to support mobile phone access so I can set timers via phone if need be.

I'd love some feedback from others about this proposed setup :D
Hi Jammer,

Just make sure your website host allows php to make outgoing socket connections. :)

Eric

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Fri Feb 15, 2008 10:46

For the whole "multimedia home" experience, it would be wise to consider a NAS device of some kind anyway, you can leave that running 24x7 and access from anywhere. For me, this is my SLUG running a 250G drive (and some mods so the drive powers the slug :-)). But there is plenty of choices out there, make sure it is an open source box with a hacking community and you can run nearly anything you want on it.
Regards
Tony

User avatar
Jammer
Master
Posts: 320
Joined: Thu Aug 30, 2007 12:56
Location: Gold Coast, Australia

Post by Jammer » Fri Feb 15, 2008 10:56

efry wrote:Hi Jammer,

Just make sure your website host allows php to make outgoing socket connections. :)

Eric
Ah, thanks Eric. I'll check it out.....this is the kind of info that I wouldn't know without advice. Much appreciated!

Cheers
Gary

User avatar
Jammer
Master
Posts: 320
Joined: Thu Aug 30, 2007 12:56
Location: Gold Coast, Australia

Post by Jammer » Fri Feb 15, 2008 11:21

tonymy01 wrote:For the whole "multimedia home" experience, it would be wise to consider a NAS device of some kind anyway, you can leave that running 24x7 and access from anywhere. For me, this is my SLUG running a 250G drive (and some mods so the drive powers the slug :-)). But there is plenty of choices out there, make sure it is an open source box with a hacking community and you can run nearly anything you want on it.
Regards
Thanks also, Tony. I'm trying not to spend any money right now (taking my family to the US for a few weeks shortly) but this is definitely the type of thing I need. Any recommendations for a low-cost NAS device?

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Fri Feb 15, 2008 11:59

Well, as I said, I am running a Linksys NSLU2 affectionately known as the SLUG, see here http://www.nslu2-linux.org
2 USB2 ports, a LAN port, and enough ram and flash to do a fair amount with even without any HDDs, all in the size of a cigarette packet. There is probably better products out there now with more features (hdd built in perhaps? raid boxes too etc), but it is a reasonable platform with great community support and can do quite a bit for its size.
Regards
Tony

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Fri Feb 15, 2008 12:38

ok I'm getting tis error from my website when running the index page:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/postm1/public_html/xxxxxxx/xxxxx/wizremote/AES.class.php on line 12

any ideas?

Kezza
Last edited by Kezza on Sat Feb 16, 2008 13:44, edited 1 time in total.
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

efry
Master
Posts: 150
Joined: Thu Aug 30, 2007 22:01
Location: Sydney
Contact:

Post by efry » Fri Feb 15, 2008 13:23

Kezza wrote:ok I'm getting tis error from my website when running the index page:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/postm1/public_html/rockbox/Kezza/wizremote/AES.class.php on line 12

any ideas?

Kezza
Hi Kezza,

Do you know what version of php you are running? Maybe the AES class is php5 only.

Eric

User avatar
Jammer
Master
Posts: 320
Joined: Thu Aug 30, 2007 12:56
Location: Gold Coast, Australia

Post by Jammer » Fri Feb 15, 2008 13:54

Guys, I've been experimenting a bit this morning and have created a free mobile website that can access WizRemote from my mobile phone. Check thissite out if you're interested in creating your own mobile website for free.

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Fri Feb 15, 2008 14:15

efry wrote:
Kezza wrote:ok I'm getting tis error from my website when running the index page:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/postm1/public_html/rockbox/Kezza/wizremote/AES.class.php on line 12

any ideas?

Kezza
Hi Kezza,

Do you know what version of php you are running? Maybe the AES class is php5 only.

Eric
yup that was it I turned on php5 and it loads the login page, yippy

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

janilxx

Post by janilxx » Fri Feb 15, 2008 18:34

Jammer wrote:
Gully wrote:
janilxx wrote:Finally I coded personally part of the UKAS's "separate timers, keep end padding" feature. When there is consecutive programs like this: 21:00-22:00 - 22:00-23:00, separate timers would be created this way: 20:59-22:03 and 22:03-23:03 (1min pre and 3min post padding is used in example).
Note, BW's soft padding might help with this.
I hope in anything that is done there is an option to create a single timer with joined names as well.
Agreed. There are many occasions where I'd much prefer to have a single merged recording (with joined names) rather than have 2 or more separate files with the beginning/end on one of the other files...... :?
Yes I have understood that my solution is not ok for Australian users. But luckily Tony can easily add possibility to merge recordings or separate them :)

User avatar
Gully
Moderator
Posts: 7736
Joined: Thu Aug 30, 2007 22:08
Location: Melbourne

Post by Gully » Fri Feb 15, 2008 19:45

janilxx wrote:Yes I have understood that my solution is not ok for Australian users. But luckily Tony can easily add possibility to merge recordings or separate them :)
There will be some people here who want separate recordings so I don't think it is a national thing, just personal.

In the poll here, almost 80% did prefer creating single consecutive timers.
Cheers
Gully
_____________
Beyonwiz U4
Logitech Harmony Elite
Google Pixel 6 Pro

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Fri Feb 15, 2008 21:31

The dates are being reported wrong:

Image

the first one on my Wiz is set for the 18th and the second for the 21st but as you can see wizremote says 17th and 20th

these timers were set on the wiz before I installed wizremote

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Fri Feb 15, 2008 21:42

its reporting the right date when editing the timer its just the display that seems to be wrong.

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

efry
Master
Posts: 150
Joined: Thu Aug 30, 2007 22:01
Location: Sydney
Contact:

Post by efry » Fri Feb 15, 2008 21:42

Kezza wrote:The dates are being reported wrong:

Image

the first one on my Wiz is set for the 18th and the second for the 21st but as you can see wizremote says 17th and 20th

these timers were set on the wiz before I installed wizremote

Kezza
Hi Kezza,

That's strange. Could you post a copy of your /tmp/config/book.xml file?

The dates are stored in modified julian date format.

Is your webserver in Australia? Maybe I'm not handling the php date functions correctly.
I remember I had to set the dates to gmt time but that might still be system clock specific.


Eric

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Fri Feb 15, 2008 21:47

efry wrote:Hi Kezza,

That's strange. Could you post a copy of your /tmp/config/book.xml file?

The dates are stored in modified julian date format.

Is your webserver in Australia? Maybe I'm not handling the php date functions correctly.
I remember I had to set the dates to gmt time but that might still be system clock specific.


Eric
no I think the web server is in the USA.
the file you want is that on the wiz or webserver?

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

efry
Master
Posts: 150
Joined: Thu Aug 30, 2007 22:01
Location: Sydney
Contact:

Post by efry » Fri Feb 15, 2008 21:47

Kezza wrote:its reporting the right date when editing the timer its just the display that seems to be wrong.

Kezza
Hi Kezza,

Sorry, my bad. I had a typo in wizremote.php

line 100 should be

Code: Select all

		echo "<tr><td>$fname</td><td>".gmdate("d-M-Y",$startdate)."</td><td>".gmdate("d-M-Y",$nextdate)."</td>";
I wasn't using the gmt date function to display. I was using date() instead of gmdate()

Eric

Post Reply

Return to “Software Developers”