Emonwrt3 Command line guide: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
= | =Terminal access= | ||
To access the terminal of the emonwrt3 use [https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html putty]. | To access the terminal of the emonwrt3 use [https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html putty]. | ||
Line 17: | Line 17: | ||
/etc/init.d/emonwrt3 stop | /etc/init.d/emonwrt3 stop | ||
Stopping the emonwrt3 service will be required for some commands. | |||
Likewise start the service again like this. | Likewise start the service again like this. | ||
/etc/init.d/emonwrt3 start | /etc/init.d/emonwrt3 start | ||
=Command list= | |||
==emonwrt3-dbdump== | |||
emonwrt3-dbdump | |||
This dumps the rolling database. The output will look as follow | |||
root@emeter:~# emonwrt3-dbdump | |||
CONFIG: Configuration loaded ok. | |||
DB: Using rolling database /tmp/emonwrt3.db | |||
(0) 0 1550094926 6 -0.00 0.00 0.00 0.11 26.76 -127.00 | |||
(1) 0 1550094936 6 0.00 0.00 0.22 0.00 17.37 -127.00 | |||
(2) 0 1550094946 6 0.00 0.00 0.04 0.08 4.20 -127.00 | |||
(3) 0 1550094957 6 0.00 0.00 0.29 0.08 4.20 -127.00 | |||
(4) 0 1550094967 6 0.00 0.00 1.00 0.03 5.11 -127.00 | |||
KISSDB_get failed (5) (1) | |||
The ''KISSDB_get failed'' just means the record has not been filled yet. |
Revision as of 11:03, 14 February 2019
Terminal access
To access the terminal of the emonwrt3 use putty. Use hostname OpenWrt (or the ip address). Connection type ssh. Port 22.
If you are already on a linux type computer just issue a ssh command
ssh root@OpenWrt
If the password has never been set from the web interface then use telnet instead.
telnet OpenWrt
Start/Stop service
The Emonwrt3 service can be stopped with the following command.
/etc/init.d/emonwrt3 stop
Stopping the emonwrt3 service will be required for some commands.
Likewise start the service again like this.
/etc/init.d/emonwrt3 start
Command list
emonwrt3-dbdump
emonwrt3-dbdump
This dumps the rolling database. The output will look as follow
root@emeter:~# emonwrt3-dbdump CONFIG: Configuration loaded ok. DB: Using rolling database /tmp/emonwrt3.db (0) 0 1550094926 6 -0.00 0.00 0.00 0.11 26.76 -127.00 (1) 0 1550094936 6 0.00 0.00 0.22 0.00 17.37 -127.00 (2) 0 1550094946 6 0.00 0.00 0.04 0.08 4.20 -127.00 (3) 0 1550094957 6 0.00 0.00 0.29 0.08 4.20 -127.00 (4) 0 1550094967 6 0.00 0.00 1.00 0.03 5.11 -127.00 KISSDB_get failed (5) (1)
The KISSDB_get failed just means the record has not been filled yet.