DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-09-25 23:53:46

philw
Member
Registered: 2008-09-19
Posts: 41
Website

Windows Vista Gadget

This is now pretty much done, downloadable from here. You can monitor the 323 plus shut it down/ restart it from your vista desktop.

Offline

 

#2 2008-09-26 09:31:52

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Windows Vista Gadget

Very neat, I will will check it out when I get home.


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#3 2008-09-26 12:41:06

index monkey
Member
From: UK
Registered: 2007-06-14
Posts: 112

Re: Windows Vista Gadget

Hello philw,
this is smart. sell it to dlink!
would it be possible to have some custom buttons that could be used to run scripts on the box?
so for example I could have a button to stop the transmission service without using telnet (ie the missus could stop transmission using all the bandwidth so she can shop for shoes on line without unplugging my dns from the network)?


DNS-323, HW B1, 2 x 2TB WD green, fw 1.08, fun_plug 0.5, transmission, automatic, nzbget newsreader & rsync time machine backup.

Offline

 

#4 2008-09-26 12:52:06

philw
Member
Registered: 2008-09-19
Posts: 41
Website

Re: Windows Vista Gadget

That's all pretty easy to do, so long as you can run the command from http. You could just add those things in, or if I know the commands and the expected responses I can add them. If I don't have the [custom] scripts on my box it would be hard for me to test though.

It would also be possible to make a gadget telnet to the box and then run a script on it; I'm not precisely sure how to do that from html/javascript but it should be possible.

I was thinking of adding a little history graph for space usage and temperature sometime.

Offline

 

#5 2008-09-26 14:59:17

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Windows Vista Gadget

index monkey wrote:

ie the missus could stop transmission using all the bandwidth

With a good router (like DD-WRT) you should be able to set up bandwith quotas in order to have some juice left for web browsing!


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#6 2008-09-26 15:04:19

index monkey
Member
From: UK
Registered: 2007-06-14
Posts: 112

Re: Windows Vista Gadget

well if I could just have a button that would run customscript.sh i could then put whatever i liked in the script, I wouldnt expect the gadget to show any responses.  thanks for applying total sweetness.

Last edited by index monkey (2008-09-26 15:24:57)


DNS-323, HW B1, 2 x 2TB WD green, fw 1.08, fun_plug 0.5, transmission, automatic, nzbget newsreader & rsync time machine backup.

Offline

 

#7 2008-09-26 16:56:21

philw
Member
Registered: 2008-09-19
Posts: 41
Website

Re: Windows Vista Gadget

Well I can just put an optional button on there which "runs" whatever you script in (say) a text box in the settings. I need to know only what the http:// request looks like to do that... if you can't run it from http then that's more of a problem...

Offline

 

#8 2008-09-26 20:26:59

RunaR
Member
Registered: 2008-08-14
Posts: 49

Re: Windows Vista Gadget

Nice! It also works on a CH3SNAS. Except the uptime. It reports NaN:NaN:NaN and there is an error Maint_TTLD error 404. In the user interface there is no page that shows the uptime, so that might be the problem.

Offline

 

#9 2008-09-26 21:00:31

Shotgun
New member
From: US
Registered: 2008-09-26
Posts: 3

Re: Windows Vista Gadget

Is there any way to port your Vista gadget to a Mac OS X widget?

Offline

 

#10 2008-09-27 11:14:41

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: Windows Vista Gadget

It looks nice, again, good work! A few things:

1. How do you set the scale of the temp bar? Max seems to be 50 centigrades but mine is always 'round 49 so I would like to set it to perhaps 60.
2. If I click reboot or shutdown, will I get a confirm question or will it fire right away? (I know, it's easy to try but I don't want to reboot)
3. The net and os tabs are a bit cluttered.


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#11 2008-09-27 12:25:32

philw
Member
Registered: 2008-09-19
Posts: 41
Website

Re: Windows Vista Gadget

CH3SNAS. Except the uptime. [...] In the user interface there is no page that shows the uptime [...]

404 means precisely that, so it's failing to find that page. If you just comment out the "uptime" bit that will stop happening, or if someone else is interested then I'll make it an option.

Is there any way to port your Vista gadget to a Mac OS X widget?

The last Mac I had was a Lisa, and a very fine piece of kit it was. You'd probably be better off just writing it from scratch on top of whatever they have there, but I know nothing about it I'm afraid.


vedeja wrote:

1. How do you set the scale of the temp bar? Max seems to be 50 centigrades but mine is always 'round 49 so I would like to set it to perhaps 60.
2. If I click reboot or shutdown, will I get a confirm question or will it fire right away? (I know, it's easy to try but I don't want to reboot)
3. The net and os tabs are a bit cluttered.

(1) It's hard coded. Look for that in the code and change it yourself for now; I will make it an option later, default 50 but changeable by you. I didn't think they ran that hot! I'll put this in the next version.
(2) You get a confirmation question. Hit "no" (or do something else) and it does nothing; hit "ok" and it will do the business and shut it down or bounce it.
(3) Agreed - I'll try to sex up the format there in the next version.

Offline

 

#12 2008-09-27 19:06:53

jbirney
Member
Registered: 2007-05-31
Posts: 28

Re: Windows Vista Gadget

Just wanted to say thanks for such a neat little app!

Offline

 

#13 2008-09-27 19:28:13

skull29
New member
Registered: 2007-10-01
Posts: 3

Re: Windows Vista Gadget

Thanks for such an incredible piece of gadget. It makes monitoring the DNS-323 so much easier now.

I am getting a version error404...not sure what that is?

Just thought it will also really be helpful if you are able to add alert when drive is in degraded mode.

Offline

 

#14 2008-09-27 19:37:45

philw
Member
Registered: 2008-09-19
Posts: 41
Website

Re: Windows Vista Gadget

404 means "page not found" - it's a HTTP error. "Version error..." if you look, that's probably when it's doing "/proc/version". Can you type that into a web browser: (http://<your nas address or name>/proc/version). That's what the program's effectively doing. If the NAS responds "404", that means that the page isn't there, which is odd (because it should be there.

Degraded mode - what does it look like when it's in that mode? If I know that I can parse it..

Offline

 

#15 2008-09-27 20:31:34

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: Windows Vista Gadget

philw wrote:

That's all pretty easy to do, so long as you can run the command from http.

That is the key.  I think that the goahead webserver on the dns323 won't allow you to access pages not in the firmware, so in order to do what you want you need another webserver (like lighthttpd) and configure it to allow execution of scripts (obviously this exposes a security hole, so you need to manage that security yourself).  Once that is done then Phil's gadget (or anything else that can make a http call) can execute that script.

What I would suggest is that the additional button calls a defined script nane in a defined location (the same way fun_plug works) then all the user needs to do is make a script with the appropriate name in the appropriate place (one example might be gadgetscript.sh/cgi in the root of Volume_1).

RunaR wrote:

CH3SNAS. Except the uptime. It reports NaN:NaN:NaN and there is an error Maint_TTLD error 404.

This is because it is written for the dns323.  On the whole what it does is parse the web interface pages and extracts the relevant information.  the CH3SNAS probably does not have a Maint_LLTD page (hence the http 404 error).

If anybody is using a DNS323 and getting 404 errors what firmware version are you running?  If you arn't sure either look in the web interface or go to
http://<ip of dns323>/web/debug.asp or http://<ip of dns323>/web/version.asp
lu

Offline

 

#16 2008-09-27 20:40:06

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: Windows Vista Gadget

philw wrote:

Degraded mode - what does it look like when it's in that mode? If I know that I can parse it..

I think, and this is from memory as I try and avoid that situation :-), that instead of "Sync Time Remaining: Completed" you get "Sync Time Remaining: Degraded" on your favourite page.
lu

Last edited by luusac (2008-09-27 20:40:37)

Offline

 

#17 2008-09-28 03:20:37

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 204
Website

Re: Windows Vista Gadget

philw wrote:

This is now pretty much done, downloadable from here. You can monitor the 323 plus shut it down/ restart it from your vista desktop.

I've installed the gadget however all that appears in the sidebar is a white box with three buttons and the status bar. Several other gadgets installed in the sidebar are working fine. Does this gadget depend on any (Java!) files that may not be installed on my PC? Would virus scanning or F/W software prevent successful operation?


Bob Blackwell
Pickering, ON

Offline

 

#18 2008-09-28 13:39:21

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: Windows Vista Gadget

The gadget is written in html and javascript, not java.  If your antivirus is stopping it from operating there should be a log entry to that effect (in your a/v software).  Try disabling the software and see what happens with the gadget!  Try uninstalling it and reinstalling.  Are you using the latest version of the gadget? f/w is only relevant in terms of what the gadget can display, e.g. if memory serves, LLTD is not available on firmware versions earlier than 1.05, therefore, the gadget can't display info on that for earlier versions.
lu

Last edited by luusac (2008-09-28 13:41:38)

Offline

 

#19 2008-09-28 17:53:13

rcblackwell
Member
From: Pickering, ON
Registered: 2008-05-19
Posts: 204
Website

Re: Windows Vista Gadget

luusac wrote:

The gadget is written in html and javascript, not java.  If your antivirus is stopping it from operating there should be a log entry to that effect (in your a/v software).  Try disabling the software and see what happens with the gadget!  Try uninstalling it and reinstalling.  Are you using the latest version of the gadget? f/w is only relevant in terms of what the gadget can display, e.g. if memory serves, LLTD is not available on firmware versions earlier than 1.05, therefore, the gadget can't display info on that for earlier versions.
lu

After a long search on the Internet I found a solution (But not the cause) to the problem; reseting IE 7.

The last message of a long thread located at http://www.vistax64.com/general-discuss … ken-5.html give me the clue. The fix is located at http://www.vistax64.com/tutorials/11431 … reset.html. The unfortunate part is now I need to reconfigure IE 7. To me that's not a big deal as my primary browser is Firefox.


Bob Blackwell
Pickering, ON

Offline

 

#20 2008-09-29 15:13:28

mykroft
Member
Registered: 2007-05-12
Posts: 83

Re: Windows Vista Gadget

What software is required to modify this Gadget?

Offline

 

#21 2008-09-29 15:16:58

philw
Member
Registered: 2008-09-19
Posts: 41
Website

Re: Windows Vista Gadget

Um, notepad? There is a teeny-weeny copyright issue too, but I probably won't send the lawyers 'round if you're nice. Or poor.

Offline

 

#22 2008-09-29 17:35:00

mykroft
Member
Registered: 2007-05-12
Posts: 83

Re: Windows Vista Gadget

I was looking at the .gadget file which I didnt realize was a zip file sad

Offline

 

#23 2008-09-29 17:36:06

mykroft
Member
Registered: 2007-05-12
Posts: 83

Re: Windows Vista Gadget

Only thing I wanted to modify was support for both seperate drives - you only have it configured for the 1st drive.  If your going to add this, then I wont mess with it

Offline

 

#24 2008-09-29 17:38:43

mykroft
Member
Registered: 2007-05-12
Posts: 83

Re: Windows Vista Gadget

come to think of it, since you mention copyright here, and no where on the monitor page.....

I will just write my own that supports all 3+ of my boxes.....

Offline

 

#25 2008-09-29 17:43:38

philw
Member
Registered: 2008-09-19
Posts: 41
Website

Re: Windows Vista Gadget

Well, as you'll be aware it's not necessary to actually do anything to assert copyright ownership in the UK, but as you're asking it's in the xml file (so it's in the installer) and in the "about" section.

I don't have a NAS with two separate drives so I can't test that; if someone writes something do it then I'll happily incorporate it.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB