Re: [Nut-upsuser] Adding a 'refresh' value to the upsstats web page

2009-02-06 Thread Arjen de Korte
Citeren Jim Neeland :

> I'd like to have the UPS status web page automatically refreshed.
> I've found a reference to using @REFRESH@ in the upsstats.html
> page, but as far as I can tell in looking at the code, somewhere I
> need to provide a value to the refreshdelay variable, and I see no
> way to do that other than changing the source code.  I'm using
> nut 2.2.

This value is passed to upsstats.cgi through the 'refresh' value in the URL:

 http://www.example.org/upsstats.cgi?refresh=5

You'd also need to add @REFRESH@ in 'upsstats.html' page, since that's  
not in the default one shipped so far (see 'man 5 upsstats.html' on  
how to do that).

Best regards, Arjen
-- 
Please keep list traffic on the list


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] Adding a 'refresh' value to the upsstats web page

2009-02-05 Thread Scott Evans
Try this...

Reload All By Itself
This one's nice and easy. I'll give you the code. Copy and paste it into
the document you wish to reload. Once in there, change the number of
seconds you wish the page to wait before starting the reloading process.
This code goes in between the HEAD tags. 




sourced from
http://www.htmlgoodies.com/tutorials/getting_started/article.php/3479551


On Wed, 2009-02-04 at 23:09 -0800, Jim Neeland wrote:

> I'd like to have the UPS status web page automatically refreshed.
> I've found a reference to using @REFRESH@ in the upsstats.html
> page, but as far as I can tell in looking at the code, somewhere I
> need to provide a value to the refreshdelay variable, and I see no
> way to do that other than changing the source code.  I'm using
> nut 2.2.
> 
> 
> ___
> Nut-upsuser mailing list
> Nut-upsuser@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Scott Evans VK7HSE
Phone: +61362291658
Mobile: +61417586157
sc...@vk7hse.hobby-site.org
http://www.vk7hse.hobby-site.org
PGP/GPG Key ID 74639624


--
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately 
by e-mail if you have received this e-mail by mistake and delete this e-mail 
from your system. If you are not the intended recipient you are notified 
that disclosing, copying, distributing or taking any action in reliance on the 
contents of this information is strictly prohibited.
___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

[Nut-upsuser] Adding a 'refresh' value to the upsstats web page

2009-02-04 Thread Jim Neeland
I'd like to have the UPS status web page automatically refreshed.
I've found a reference to using @REFRESH@ in the upsstats.html
page, but as far as I can tell in looking at the code, somewhere I
need to provide a value to the refreshdelay variable, and I see no
way to do that other than changing the source code.  I'm using
nut 2.2.


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser