|
2012-02-28
, 16:39
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#22
|
So the webremote you get if you enter the ip into your browser is also unable to send a correct keycode for the info button, too?
The second is a vague idea. It depends on the possibility to find a way to include a qml file into my ui in a crash protected way. At the moment the whole app crashes if there is a error in a included qml file. I would prefer a error message instead. But my inquiries about this topic were about 30 minutes... perhaps I will continue next month to search a solution.
Or have you already a good idea how to implement something like this?
function createObject(sourceFile, parentObject) { var component = Qt.createComponent(sourceFile); if (component.status == Component.Ready) { var guiObject = component.createObject(parentObject); if (guiObject == null) { console.log("Error creating object"); } else { return guiObject } } else { console.log(component.errorString()); } }
The Following User Says Thank You to marxian For This Useful Post: | ||
|
2012-02-28
, 20:31
|
Posts: 13 |
Thanked: 12 times |
Joined on Feb 2012
@ Czech Republic
|
#23
|
http://<dreamboxAddr>/cgi-bin/rc?358
http://<dreamboxAddr>/body?mode=controlScreenShot
http://<dreamboxAddr>/root/tmp/screenshot.jpg
The Following User Says Thank You to sanmob For This Useful Post: | ||
|
2012-02-28
, 20:42
|
Posts: 13 |
Thanked: 12 times |
Joined on Feb 2012
@ Czech Republic
|
#24
|
http://<dreamboxAddr>/body?mode=controlFBShot
http://<dreamboxAddr>/body?mode=controlLCDShot
http://<dreamboxAddr>/root/tmp/osdshot.png
The Following User Says Thank You to sanmob For This Useful Post: | ||
|
2012-02-28
, 23:51
|
|
Posts: 543 |
Thanked: 802 times |
Joined on Apr 2010
@ Germany
|
#25
|
|
2012-02-29
, 00:22
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#26
|
Thanks for your post, sanmob. This helps me a lot.
The different file extention is a small problem for me. Perhaps I need to identify before if it is a 500 / 600 or a 7000. I will see if I have a idea during the night how to handle this issue.
connect(reply, SIGNAL(finished()), this, SLOT(downloadFinished())); void ImageDownloader::downloadFinished() { if (reply->error()) { //handle error if (reply->error() == QNetworkReply::ContentNotFoundError) { qDebug() << "Image not found" // try .jpg format if not already attempted } } else { //write image to file } }
Image { id: image property string imageFormat: source.toString().slice(-3) source: "http://<dreambox_ip>/root/tmp/screenshot.bmp" onStatusChanged: { if (image.status == Image.Error) { if (image.imageFormat == "bmp") { image.source = "http://<dreambox_ip>/root/tmp/screenshot.jpg"; } else { console.log("No image found, using placeholder"); image.source = <placeholder_image>; } } }
The Following User Says Thank You to marxian For This Useful Post: | ||
|
2012-02-29
, 02:15
|
|
Posts: 543 |
Thanked: 802 times |
Joined on Apr 2010
@ Germany
|
#27
|
Are you downloading the image using QNetworkAccessManager, or simply setting the source of a QML Image object? In either case, it shouldn't be too difficult to handle the error if the URI doesn't exist. Let's say you try .bmp first, with QNetworkAccessManager, you can catch the error when the QNetworkReply* emits the finished() signal, i.e
http://<IP>/grab?format=jpg
void appLogic::replyScreenshotFinished(QNetworkReply* r) { if (r->error() == QNetworkReply::NoError) { QFile jpg("tmp.jpg") jpg.write(r.readAll()); jpg.close(); } else { // errorhandling } disconnect(&manager, SIGNAL(finished(QNetworkReply*)),this, SLOT(replyScreenshotFinished(QNetworkReply*))); }
|
2012-02-29
, 23:46
|
|
Posts: 543 |
Thanked: 802 times |
Joined on Apr 2010
@ Germany
|
#28
|
|
2012-03-03
, 23:06
|
Posts: 13 |
Thanked: 12 times |
Joined on Feb 2012
@ Czech Republic
|
#29
|
The Following User Says Thank You to sanmob For This Useful Post: | ||
|
2012-03-04
, 10:29
|
|
Posts: 543 |
Thanked: 802 times |
Joined on Apr 2010
@ Germany
|
#30
|
I have upgraded and tried the screenshot function for Enigma 1 on my DM 7000. Unfortunately it still doesn't work, there is message "no response" in red framed label
Another functions work well....I do not know If you have finished some working version of screen function for Enigma1 yet, so just giving feedback about functionalily...
Another thing: Video text button is disabled also for Enigma1, should it be?
Tags |
dreambox, network, neutrino, remote, remote control |
|
Thanks for investigating. The commands are quite different.
I (hopefully) fixed in the meantime the aegis related bug. I would say lets see if the Enigma1 webremote would also accept the new Enigma2 command. Perhaps it works now. If it fails I will integrate your command in the next release.
The first was new for me. Thanks. I know the second but it is outdated in some parts. Mostly regarding the additional row of buttons at the newest remote type. And dream multimedia is still changing stuff and breaking old. As the videotext blocking while shown the webremote.
It feels like the old bug to get a green screen while accessing the egp during watching a record.
I've done already some testing into this direction to prepare myself. Look at my BashOrgQuotations application. It parses the content of a website into a list. Works good as long as the webmaster wouldn't change his site.
But my main priority is at the moment to get everything I have currently integrated working flawless. As soon as the screenshot works you will already be able to add a timer to your box from a different room even if it is painfully slow.
Planned features before egp and timer lists/edit:
The second is a vague idea. It depends on the possibility to find a way to include a qml file into my ui in a crash protected way. At the moment the whole app crashes if there is a error in a included qml file. I would prefer a error message instead. But my inquiries about this topic were about 30 minutes... perhaps I will continue next month to search a solution.
Or have you already a good idea how to implement something like this?
Please DONATE if you like my work!