You are not logged in.
- Topics: Active | Unanswered
#126 2010-02-19 15:05:21
- Ultima
- Administrator
Re: µTorrent Sidebar Gadget Beta
@Yochanan: http://sites.google.com/site/ultimasite … edirects=0
http://forum.utorrent.com/viewtopic.php … 56#p457156
This one should hopefully behave more similarly to the old one.
It turns out this thing always did poll the backend on connection failure. Which is still bad, as I mentioned earlier, but oh well I don't want to break/change the experience, so I'm just going to implement it that way anyway.
[size=0.85][ Tweaking Checklist | User Manual | BEE | MiniUI | µTA ][/size]
Offline
#127 2010-02-19 15:26:11
- Yochanan
- Member
Re: µTorrent Sidebar Gadget Beta
I run µTorrrent 24/7 anyway, so it's not so bad on my end. Thanks!
EDIT: I noticed that about every 30 seconds it says 'Error: Check Settings' for a few seconds then goes back to normal.
Last edited by Yochanan (2010-02-19 20:34:04)
Offline
#128 2010-02-19 17:49:42
- Tattvalis
- Member
Re: µTorrent Sidebar Gadget Beta
When I try to create a new profile, enter all the information
( MyWebUI, Tattva, Password, 127.0.0.1, 47810, 15000, 1000)
and then I hit Save, but nothing happens.
I am using Windows 7 x64.
I hope someone can help me!
Thank you in advance
Best regards
Tattva
Offline
#129 2010-02-20 09:33:11
- Ultima
- Administrator
Re: µTorrent Sidebar Gadget Beta
@Tattvalis: Make sure you're using the updated gadget -- see the link below in this post.
@Yochanan: Ugh. I tried to model the changes after the existing code, but modeled it sloppily. It should be fixed for real now... Sorry for all the stupid bugs!
[size=0.85](I'd like to blame the fact that I'm not completely familiar with this codebase, but that's hardly an excuse
)[/size]
http://sites.google.com/site/ultimasite … edirects=0
I went ahead and also incorporated the first half of doone's fix for the torrent line overflow for both skins. (Second half I left alone because IE's CSS support can't handle inserting ellipses on truncated strings, which that shorten() manually does)
[size=0.85][ Tweaking Checklist | User Manual | BEE | MiniUI | µTA ][/size]
Offline
#130 2010-02-20 13:13:12
- Yochanan
- Member
Re: µTorrent Sidebar Gadget Beta
The bandwidth limit has been exceeded on your Google Sites account. I'll try again later. Thanks again for working on it.
Offline
#131 2010-02-20 13:30:42
- Ultima
- Administrator
Re: µTorrent Sidebar Gadget Beta
[size=0.85][ Tweaking Checklist | User Manual | BEE | MiniUI | µTA ][/size]
Offline
#132 2010-02-25 01:20:43
- lefteris82
- Member
Re: µTorrent Sidebar Gadget Beta
Since I update the mtorrent to 2.0 version the sidebar stopped working. It cannot connect at all
any solution for this????
![]()
Offline
#133 2010-02-25 02:22:21
- DreadWingKnight
- I never claimed to be nice.
Re: µTorrent Sidebar Gadget Beta
@Tattvalis: Make sure you're using the updated gadget -- see the link below in this post.
@Yochanan: Ugh. I tried to model the changes after the existing code, but modeled it sloppily. It should be fixed for real now... Sorry for all the stupid bugs!
[size=0.85](I'd like to blame the fact that I'm not completely familiar with this codebase, but that's hardly an excuse)[/size]
http://sites.google.com/site/ultimasite … edirects=0
I went ahead and also incorporated the first half of doone's fix for the torrent line overflow for both skins. (Second half I left alone because IE's CSS support can't handle inserting ellipses on truncated strings, which that shorten() manually does)
Offline
#134 2010-02-25 02:23:35
- Yochanan
- Member
Re: µTorrent Sidebar Gadget Beta
Try downloading the updated version Ultima posted right above. ![]()
EDIT: DreadWingKnight beat me to it. ![]()
Last edited by Yochanan (2010-02-25 02:24:51)
Offline
#135 2010-02-25 02:29:56
- lefteris82
- Member
Re: µTorrent Sidebar Gadget Beta
thank you guys .I installed the version above. It connects for 1sec, show upload/download speed and then goes back to 'error check settings'. ![]()
edit: i replaced with the latest webUI and it works! ![]()
Last edited by lefteris82 (2010-02-25 02:39:28)
Offline
#136 2010-02-25 18:28:58
- Ultima
- Administrator
Re: µTorrent Sidebar Gadget Beta
O_o
As far as I know, webui.zip has absolutely nothing to do with the gadget... I don't see any reason why updating WebUI would help. Sounds more like coincidence to me, but good enough ![]()
[size=0.85][ Tweaking Checklist | User Manual | BEE | MiniUI | µTA ][/size]
Offline
#137 2010-02-27 01:02:39
- Tattvalis
- Member
Re: µTorrent Sidebar Gadget Beta
Still not working. Same error. It won't save what I enter.
Offline
#138 2010-03-15 22:09:16
- nateap87
- Member
Re: µTorrent Sidebar Gadget Beta
i can't get any of this to work for the life of me. check settings. connectivity error...blah blah blah
Offline
#139 2010-03-20 02:16:26
- giogio1
- Member
Re: µTorrent Sidebar Gadget Beta
I have only one problem, when I resume the system from the hibernate state the gadget stop working.
Every time I resume the system from ibernate state i must open and close the gadget configuration and the gadget return to work.
Last edited by giogio1 (2010-03-20 02:21:45)
Offline
#140 2010-03-20 17:47:59
- Ultima
- Administrator
Re: µTorrent Sidebar Gadget Beta
Probably because the cached token expired, and I was too lazy to implement token re-requesting. I can't say if/when I'll get around to messing with it again, but at the moment, I'm tight on leisure time.
[size=0.85][ Tweaking Checklist | User Manual | BEE | MiniUI | µTA ][/size]
Offline
#141 2010-03-21 02:11:23
- giogio1
- Member
Re: µTorrent Sidebar Gadget Beta
Probably because the cached token expired, and I was too lazy to implement token re-requesting. I can't say if/when I'll get around to messing with it again, but at the moment, I'm tight on leisure time.
.
I understand, however, is not a big deal, I'll wait for a possible fix, thanks for your help and for your useful gadgets.
Offline
#142 2010-04-06 14:25:07
- Quitch
- Member

Re: µTorrent Sidebar Gadget Beta
Unfortunately while I can connect to WebUI through my browser I can't get the plugin to connect. I've entered the username, password, webui URL is 127.0.0.1 and the webport is set to use 8080 (setup as the default listening port), but on saving I get an error stating it cannot connect.
I've updated to the latest version of the gadget, tried a guest account, tried a simpler password, tried using the PC IP instead of the localhost IP. No ball.
Last edited by Quitch (2010-04-06 14:37:30)
Offline
#143 2010-05-19 07:34:45
- 3o3
- Member

Re: µTorrent Sidebar Gadget Beta
I'll try to code the re-requesting token when expired myself but I am not very used to this token system and can you tell me how can I understand the token is expired so that I can add a check and re-request function to the places that throw an exception.
Or at least can you tell me how long it takes for a token to expire?
Offline
#144 2010-05-19 23:08:53
- Lord Alderaan
- Member

Offline
#145 2010-05-24 05:44:46
- 3o3
- Member

Re: µTorrent Sidebar Gadget Beta
thanks for the info.
is there a way to manually flush token cache so that I can test instantly instead of waiting?
Offline
#146 2010-05-24 14:23:25
- Firon
- Administrator
Re: µTorrent Sidebar Gadget Beta
Restart the client. That invalidates all tokens.
Offline
#147 2010-05-25 12:03:32
- 3o3
- Member

Re: µTorrent Sidebar Gadget Beta
Okay thanks.
Anyone who suffers token expiration problem on the sidebar gadget, the following instructions will probably help you. ( I am using Windows 7 ).
- Open an explorer window ( simply open Computer )
- Type "%localappdata%\Microsoft\Windows Sidebar\Gadgets\" without the brackets
- Get into the folder that includes "utorrent" in its name
- Get into the "js" folder and open "main.js" with notepad or some other text editor
- Find the function named "getData()", press CTRL+F and write "function getData" without brackets to find it
- Find the following part, it will be a few lines below the "function getData()..":
if (XMLHttp.readyState == 4){
if (XMLHttp.status == 200) {
clearTimeout(cTimeout);
cTimeout = null;
checkSettings = false;
setGetDataTimeout();
parseData();
}
else{
timeoutRequest();
}
}- Replace the part with the following:
if (XMLHttp.readyState == 4){
if (XMLHttp.status == 200) {
clearTimeout(cTimeout);
cTimeout = null;
checkSettings = false;
setGetDataTimeout();
parseData();
}
else if (XMLHttp.status == 400) {
document.getElementById("dockedDonwload").innerHTML = "Trying to renew the token...";
globaltoken = "";
getToken(function () {
getData();
});
}
else{
timeoutRequest();
}
}Save and exit the text editor, restart the gadget and you probably won't have hanging problems any more.
Last edited by 3o3 (2010-06-08 08:05:48)
Offline
#148 2010-05-26 07:34:31
- giogio1
- Member
Re: µTorrent Sidebar Gadget Beta
Anyone who suffers token expiration problem on the sidebar gadget, the following instructions will probably help you. ( I am using Windows 7 ). ...
Thanks for your tip it worked fine, even after the resumption of the Hibernate State system.
Last edited by giogio1 (2010-05-26 07:41:02)
Offline
#149 2010-05-26 09:29:31
- Quitch
- Member

Re: µTorrent Sidebar Gadget Beta
When I replace that code segment (tried twice in case of cock-up) my gadget now appears as a tiny grey box.
Just to check, my function now appears as follows
function getData(){
XMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
globalURL = globalReqUrl + "&list=1" ;
if(cTimeout != null)
clearTimeout(cTimeout);
cTimeout = setTimeout(timeoutRequest, globaltimeout);
if (XMLHttp.readyState == 4){
if (XMLHttp.status == 200) {
clearTimeout(cTimeout);
cTimeout = null;
checkSettings = false;
setGetDataTimeout();
parseData();
}
else if (XMLHttp.status == 400) {
document.getElementById("dockedDonwload").innerHTML = "Trying to renew the token...";
globaltoken = "";
getToken(function () {
getData();
});
}
else{
timeoutRequest();
}
}
}
XMLHttp.open("GET", globalURL, true);
XMLHttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
XMLHttp.send(null);
function timeoutRequest(){
XMLHttp.abort();
setGetDataTimeout();
checkSettings = true;
document.getElementById("dockedDonwload").innerHTML = Resources.Error;
document.getElementById("dockedDonwloadCount").innerHTML = Resources.Check;
document.getElementById("dockedDonwloadSpeed").innerHTML = "";
document.getElementById("dockedUpload").innerHTML = Resources.Settings;
document.getElementById("dockedUploadCount").innerHTML = "";
document.getElementById("dockedUploadSpeed").innerHTML = "";
}
function setGetDataTimeout(){
if(getDataTimeout != null)
clearTimeout(getDataTimeout);
getDataTimeout = setTimeout(getData, globalrate);
}
}Last edited by Quitch (2010-05-26 09:30:07)
Offline
#150 2010-05-26 12:18:36
- 3o3
- Member

Re: µTorrent Sidebar Gadget Beta
There is one extra paranthesis, you probably misselected it during the replacement.
else{
timeoutRequest();
}
}
} <--- this one
XMLHttp.open("GET", globalURL, true);
XMLHttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
XMLHttp.send(null);remove that and should work fine.
Offline
