How do I edit the main Heatermeter display page


 

Gerard H

New member
I would like to remove the blue overlay on the main heatermeter page but I can't figure out what to edit when I SSH into the Pi. I can edit the elements from Chrome on my local computer to remove them but of course when I refresh the blue comes back. I've attached two screen shots of how it looks normal and how it looks after I edit it in Chrome.

UKpvtCi.png


244Sesc.png
 
Just look in the source for the style definition "div.content" and delete the line. Then a little below that in the HTML, there's a part that says "style="background: rgba(76,135,199,0.5)"". Just remove that style. If there's anything else that's still blue, just look for "background" anywhere in the file and remove any that aren't #000.
 
Last edited:
Im a bit of a noob with HTML. How do i open that file? In text editor or word? Do i put the IP address first? Just looking for a bit more granular instructions on how to get the file opened for editing. I'm good from there.
 
1) download putty, it is a free telnet/ssh client
2) run putty, enter the ip of the heatermeter and click on open.
3) you'll probably get a message about encryption and trusting the target, this is normal, click ok
4) log in with your username and password
5) type vi /usr/lib/lua/luci/view/linkmeter/index.htm
6) here's where is is a little tough for windows users, vi is an old editor and the commands to make changes are well, different. Here is a guide http://heather.cs.ucdavis.edu/~matloff/UnixAndC/Editors/ViIntro.html
7) use cursor keys to navigate to where you want to edit
8) hit the insert key, you should now see I in the lower left
9) make the changes you want
10) hit esc
11) type ZZ (those will be capital letters)
 
I would like to remove the blue overlay on the main heatermeter page but I can't figure out what to edit when I SSH into the Pi. I can edit the elements from Chrome on my local computer to remove them but of course when I refresh the blue comes back. I've attached two screen shots of how it looks normal and how it looks after I edit it in Chrome.

UKpvtCi.png


244Sesc.png

Are you willing to share your index.htm ? I can't seem to find the blower speed font color, neither the color overlay on the probes.
 
Thanks RJ. The guide should help, but not necessarily easy. I dont know if it's easier to copy Gerard H's htm if he shares, or make the changes. But I'll give it a try.

Do you know, can you edit the word 'Current' in the HTM file or is that embedded somewhere else in the code?

Matt
 

Yes, download works, placing it on my rpi now :)

[edit]
Nope, first of all, there are ^M's in the file (you edited it in dos formatting) which gives an error and the file can't be parsed.
When I fix that, it seems I'm missing stuff in the htm page, the 'flames' cut off @ probes bar and lineup of text is incorrect (pit setpoint).

[edit]
Argh, it seems that the 'compatibility' mode of IE screws things up. retesting...

[edit]
Works now :) I'm a happy man.
Only problem is that with the current file (from your dropbox) you need something like dos2unix to convert the file to get parsed.
 
Last edited:
You can probably remove and reinstall the linkmeter version 2 package
Code:
opkg remove linkmeter
opkg install http://capnbry.net/linkmeter/release/2/packages/linkmeter_2_brcm47xx.ipk
 
You can probably remove and reinstall the linkmeter version 2 package
Code:
opkg remove linkmeter
opkg install http://capnbry.net/linkmeter/release/2/packages/linkmeter_2_brcm47xx.ipk
It removed and downloads tries to install and I get:


Downloading http://capnbry.net/linkmeter/release/2/packages/linkmeter_2_brcm47xx.ipk.
Installing linkmeter (2) to root...
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for linkmeter:
* avrdude *
* opkg_install_cmd: Cannot install package linkmeter.
 

 

Back
Top