2004-07-19, 18:03
i can zap the channel of the dreambox, but i can't stream yet?
anny idee? the log say's unable to connect.
tia
anny idee? the log say's unable to connect.
tia
Quote:################################################################
# xbmc geminiserver dreambox-tv v0.28 beta!
#
# comments:
# - this is my first python script guys..
# - if some one own a dreambox and good in python..
# he is welcome to help to create..
# - it is very beta, this means there are some bugs in
# it.. but i think for testing it is ok!
################################################################
#
# installation:
# - copy this py to [xbmc]\scripts\dreambox-tv\*.*
# 1. add in the script your dreambox settings
# ip = '192.168.0.110'
# user = 'root'
# password = 'dreambox'
#
# 2. do not switch chnl on dreambox during streaming
# 3. some chnls can't be stream [don't know why!! dream bug!]
# 4. if the script hang, juste restart xbmc and the script!
# 5. this script ist testet on image release. 1.07.4!
# 6. the record function only write the stream to the hdd
# 7. you can a.t.m only stream [view], or recorder! not both!
# 8. the dbox2 will follow!
# 9. there must be a folder temp in dreambox-tv!!
################################################################
#
# w.i.p: work in process and future features:
# - is to make better vapid detection
# - make a audio stream choosing, like ac3, ger, eng...
# - create epg view for that channel
# - show doing process [where what]
# - implement error detection is something goes wrong
# - better ui menu: like zap, controll, config, info
# - timeschift for recording..
# - on zap also show in background the current screen shot!
# - fixing bugs....
# - and more features;)
#
#################################################################
version history dreambox-tv
v0.28: released!
add.- some ui tweaks..
add.- lcd view during zap;)!
add.- lcd-shot on ui
add.- all temp files now and must be in \temp
add.- new folder in dreambox-tv root temp!!
add.- base config.ini [but w.i.p]
v0.27:
add.- set name for each recordet file tdate!
add.- start recording choose yesno
add.- show error is vapid not avaiblible on the current chnl
add.- ask yn if you want to exit on [back!]
v0.26:
add. - switch from channel back to bouquets <>
add. - dreambox controll: onscreendisplay [osdp] shot and show the picture
add. - create dreambox controll: lcd display shot and show the picture
add. - record to hdd [current with python, only for testing! but i will implement this
function directly into xbmc, so it will be then easy to start and stop the
recording during view! it will also possible to stream another channel and
record another one! if they im the same network.]
v0.25:
add. - dreambox controll: standby
add. - dreambox controll: wakeup
add. - dreambox controll: screenshot and show the picture
add. - zapto the channel
add. - receive all channels and bouquets
add. - analyse an create the channel list..
v0.24:
add. - create ui
v0.1x:
add. - connect and get the current stream
add. - initial release
Quote:pids = urllib.urlopen(url+'/control/zapto?getpids')
dec_vpid = pids.readline()
dec_apid = pids.readline()
pids.close()
vpid = hex(int(dec_vpid))[2:]
apid = hex(int(dec_apid))[2:]
Quote:url+'/body'you will get the bouquetrefs, channel and channelrefs on newer img's and go arround the "frames" problem.
(kaisersose @ july 21 2004,22:28 Wrote:@GeminiServeri have the same problem, i get no channel list, and screenshots don´t work, too.
the only problem im having at the moment is that no bouquets or channel lists come up when i select it. can u put up your bouquet files or something or does the script retrieve it from the dreambox each time its started? i know the recording is in alpha stage but when it does work its great. i've been holding out on buying a harddrive for my dreambox and was planning to get one for the xbox, so thanks to you all my problems will be solved.
(bulldog64 @ july 21 2004,22:15 Wrote:i have a code example how to fetch apid+vpid witch don't need the html index file from db.
Quote:pids = urllib.urlopen(url+'/control/zapto?getpids')
dec_vpid = pids.readline()
dec_apid = pids.readline()
pids.close()
vpid = hex(int(dec_vpid))[2:]
apid = hex(int(dec_apid))[2:]
also if you useQuote:url+'/body'you will get the bouquetrefs, channel and channelrefs on newer img's and go arround the "frames" problem.
Quote:/share/tuxbox/enigma/htdocs/zapdata.js
Quote:var channels = new array();
var channelrefs = new array();
var bouquets = new array(
#bouquets#
);
var bouquetrefs = new array(
#bouquetrefs#
);
var currentbouquet = #currentbouquet#;
var currentchannel = #currentchannel#;
function init()
{
#channels#
#channelrefs#
loadbouquets(currentbouquet);
loadchannels(currentbouquet, currentchannel);
}
Quote:22-07-2004 23:50:49 -->python initialized<--
22-07-2004 23:50:49
22-07-2004 23:50:49 sys:1: deprecationwarning: non-ascii character '\xe4' in file q:\scripts\dreambox-tv\dreambox-tv.py on line 132, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
22-07-2004 23:51:04 1.opening the dreambox url:http://root:[email protected]
22-07-2004 23:51:04
22-07-2004 23:51:04 2.created the tmp file: dreambox-tv.html
22-07-2004 23:51:04
22-07-2004 23:51:04 3.finding the apid and vpid line
22-07-2004 23:51:04
22-07-2004 23:51:30 stop all
22-07-2004 23:51:30 stop webserver
22-07-2004 23:51:30 stop python
22-07-2004 23:51:30 stop dvd detect media
22-07-2004 23:51:30 stop lcd
22-07-2004 23:51:30 stop time server
22-07-2004 23:51:30 unload skin
22-07-2004 23:51:31 launch xbe:harddisk0\partition2 d:\evoxdash.xbe
22-07-2004 23:51:31 mount harddisk0\partition2 as d:
22-07-2004 23:51:31 launch xbe:d:\evoxdash.xbe
Quote:@geminiserver:
here is a part of the xbmc-log that i have.
i hope this can help you.
tia
Quote:var channels = new array();
var channelrefs = new array();
var bouquets = new array(
#bouquets#
);
var bouquetrefs = new array(
#bouquetrefs#
);
var currentbouquet = #currentbouquet#;
var currentchannel = #currentchannel#;
var autobouquetchange = #autobouquetchange#;
function init()
{
#channels#
#channelrefs#
loadbouquets(currentbouquet);
loadchannels(currentbouquet, currentchannel);
}
Quote:23-07-2004 01:19:52 -->python initialized<--
23-07-2004 01:19:52
23-07-2004 01:19:52 sys:1: deprecationwarning: non-ascii character '\xe4' in file q:\scripts\dreambox-tv\dreambox-tv v0.28.py on line 132, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
23-07-2004 01:20:31 1.opening the dreambox url:http://root:[email protected]
23-07-2004 01:20:31
23-07-2004 01:20:31 2.created the tmp file: dreambox-tv.html
23-07-2004 01:20:31
23-07-2004 01:20:31 3.finding the apid and vpid line
23-07-2004 01:20:31
23-07-2004 01:20:40 1.opening the dreambox url:http://root:[email protected]
23-07-2004 01:20:40
23-07-2004 01:20:40 2.created the tmp file: dreambox-tv.html
23-07-2004 01:20:40
23-07-2004 01:20:40 3.finding the apid and vpid line
23-07-2004 01:20:40
23-07-2004 01:32:46 1.opening the dreambox url:http://root:[email protected]
23-07-2004 01:32:46
23-07-2004 01:32:46 2.created the tmp file: dreambox-tv.html
23-07-2004 01:32:46
23-07-2004 01:32:46 3.finding the apid and vpid line
23-07-2004 01:32:46