Jim Neeland
2009-Feb-05 07:09 UTC
[Nut-upsuser] Adding a 'refresh' value to the upsstats web page
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.
Scott Evans
2009-Feb-05 08:31 UTC
[Nut-upsuser] Adding a 'refresh' value to the upsstats web page
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. <META HTTP-EQUIV="refresh" CONTENT="15"> 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 at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuserScott Evans VK7HSE Phone: +61362291658 Mobile: +61417586157 scott at 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20090205/0b9d541d/attachment.htm
Arjen de Korte
2009-Feb-06 08:55 UTC
[Nut-upsuser] Adding a 'refresh' value to the upsstats web page
Citeren Jim Neeland <nuts op neeland.net>:> 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