Difference between revisions of "EmonPi"

From OpenEnergyMonitor Wiki
Jump to: navigation, search
(Disable Pi Serial Console)
Line 7: Line 7:
  
 
==Disable Pi Serial Console==
 
==Disable Pi Serial Console==
 +
 +
Simple script to easily enable & disable the Raspberry Pi's serial
 +
console. Disabling the serial console is required if you want to use
 +
the Raspberry Pi's serial port (UART) to talk to other devices e.g.
 +
microcontrollers (see <http://elinux.org/RPi_Serial_Connection> for more
 +
information).
  
 
[https://github.com/lurch/rpi-serial-console https://github.com/lurch/rpi-serial-console]
 
[https://github.com/lurch/rpi-serial-console https://github.com/lurch/rpi-serial-console]
  
<code> $sudo wget https://raw.github.com/lurch/rpi-serial-console/master/rpi-serial-console -O /usr/bin/rpi-serial-console && sudo chmod +x /usr/bin/rpi-serial-console
+
<code>  
 +
$sudo wget https://raw.github.com/lurch/rpi-serial-console/master/rpi-serial-console -O /usr/bin/rpi-serial-console && sudo chmod +x /usr/bin/rpi-serial-console
 +
 
 
$ sudo rpi-serial-console disable
 
$ sudo rpi-serial-console disable
 +
 
$ sudo reboot
 
$ sudo reboot
rpi-serial-console status
+
 
 +
$ rpi-serial-console status
 +
 
 
</code>
 
</code>
  

Revision as of 18:26, 27 April 2014

Raspberry Pi Energy Monitoring Shield


Development Thread=

http://openenergymonitor.org/emon/node/3937 http://openenergymonitor.org/emon/node/3937 [G+ Development Photos Album]

Disable Pi Serial Console

Simple script to easily enable & disable the Raspberry Pi's serial console. Disabling the serial console is required if you want to use the Raspberry Pi's serial port (UART) to talk to other devices e.g. microcontrollers (see <http://elinux.org/RPi_Serial_Connection> for more information).

https://github.com/lurch/rpi-serial-console

$sudo wget https://raw.github.com/lurch/rpi-serial-console/master/rpi-serial-console -O /usr/bin/rpi-serial-console && sudo chmod +x /usr/bin/rpi-serial-console

$ sudo rpi-serial-console disable

$ sudo reboot

$ rpi-serial-console status

Setting Up Wifi

Using How to Edimax EW-7811

$ sudo nano /etc/network/interfaces

Interfaces file looks like this. Commented out three lines and added the third lines at the bottom. auto lo

iface lo inet loopback iface eth0 inet dhcp

allow-hotplug wlan0

  1. iface wlan0 inet manual
  2. wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
  3. iface default inet dhcp

iface wlan0 inet dhcp wpa-ssid <YOUR SSID> wpa-psk <YOUR PASSPHRASE/KEY>


[CTRL] + [X] to save and exit nano

either reboot the Pi or just reboot the adapter

$ sudo ifdown wlan0; sudo ifup wlan0

Script to check for working wifi connection and restart wifi if needed https://github.com/dweeber/WiFi_Check