Emonwrt3 Install on OpenWrt: Difference between revisions

From lechacal
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:


 
This is a guide for installing Emonwrt3 software on a fresh OpenWrt Chaos Calmer installation.
This is a guide for installing Emonwrt3 software on a fresh OpenWRt installation.


=Prerequisites=
=Prerequisites=
* OpenWrt is freashly installed with Chaos Calmer version.
* OpenWrt is freshly installed with Chaos Calmer version.
* User has both access to the web interface and ssh/telnet.
* User has both access to the web interface and ssh/telnet.
* The unit is connected to the internet to access lechacal.com.
* The unit is connected to the internet to access lechacal.com.
Line 17: Line 16:
  printf "#::askconsole:/bin/ash --login\n" >> /etc/inittab
  printf "#::askconsole:/bin/ash --login\n" >> /etc/inittab
  head -n -1 /etc/opkg.conf > /tmp/x; mv /tmp/x /etc/opkg.conf
  head -n -1 /etc/opkg.conf > /tmp/x; mv /tmp/x /etc/opkg.conf
  printf "src/gz chaos_calmer_lechacal http://lechacal.com/repo/emonwrt3\n#option check_signature 1\n" >>/etc/opkg.conf
  printf "src/gz chaos_calmer_lechacal http://lechacal.com/repo/emonwrt3 \n#option check_signature 1\n" >>/etc/opkg.conf
  opkg update
  opkg update
  opkg install emonwrt3 emonwrt3-luci
  opkg install emonwrt3 emonwrt3-luci
Line 24: Line 23:


  reboot & exit
  reboot & exit
The web interface now shows the Emonwrt3 tab.
If the Arduino has a different configuration than the web interface then go to '''Emonwrt3''' | '''Channels''' and submit the page has it is shown.

Latest revision as of 16:18, 30 April 2019

This is a guide for installing Emonwrt3 software on a fresh OpenWrt Chaos Calmer installation.

Prerequisites

  • OpenWrt is freshly installed with Chaos Calmer version.
  • User has both access to the web interface and ssh/telnet.
  • The unit is connected to the internet to access lechacal.com.

Installation via command line

Connect to the unit using telnet or ssh. We recommend to use Putty for this purpose.

Then copy paste these commands below in the terminal.

head -n -1 /etc/inittab > /tmp/x; mv /tmp/x /etc/inittab
printf "#::askconsole:/bin/ash --login\n" >> /etc/inittab
head -n -1 /etc/opkg.conf > /tmp/x; mv /tmp/x /etc/opkg.conf
printf "src/gz chaos_calmer_lechacal http://lechacal.com/repo/emonwrt3 \n#option check_signature 1\n" >>/etc/opkg.conf
opkg update
opkg install emonwrt3 emonwrt3-luci

Then if you do not see any error reboot the unit like so

reboot & exit

The web interface now shows the Emonwrt3 tab.

If the Arduino has a different configuration than the web interface then go to Emonwrt3 | Channels and submit the page has it is shown.