|  | @@ -1,6 +1,6 @@
 | 
											
												
													
														|  |  # Energy Meter Logger
 |  |  # Energy Meter Logger
 | 
											
												
													
														|  |  Log your Energy Meter data on a Raspberry Pi and plot graphs of your energy consumption.
 |  |  Log your Energy Meter data on a Raspberry Pi and plot graphs of your energy consumption.
 | 
											
												
													
														|  | -Its been verified to work with a Raspberry Pi with a Linksprite RS485 shield and reading values from a WEBIQ131D / SDM120. By changing the meters.yml file and making a corresponding [model].yml file it should be possible to use other models.
 |  | 
 | 
											
												
													
														|  | 
 |  | +Its been verified to work with a Raspberry Pi with a Linksprite RS485 shield and reading values from WEBIQ131D / SDM120 and WEBIQ343L / SDM630. By changing the meters.yml file and making a corresponding [model].yml file it should be possible to use other modbus enabled models.
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  ### Requirements
 |  |  ### Requirements
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -20,35 +20,10 @@ Its been verified to work with a Raspberry Pi with a Linksprite RS485 shield and
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  ### Prerequisite
 |  |  ### Prerequisite
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -* [Download Raspbian Stretch Lite](https://www.raspberrypi.org/downloads/raspbian/) and Flash on SD-card, e.g. by using Etcher
 |  | 
 | 
											
												
													
														|  | -* Mount the RS485 shield on the Raspberry Pi’s GPIO header and connect the RS485 cables.
 |  | 
 | 
											
												
													
														|  | -* Power up Rasberry Pi and setup password (passwd) and SSH, localization, network etc. using
 |  | 
 | 
											
												
													
														|  | -    ```sh
 |  | 
 | 
											
												
													
														|  | -    $ sudo raspi-config
 |  | 
 | 
											
												
													
														|  | -    ```
 |  | 
 | 
											
												
													
														|  | -* With raspi-config open, go to
 |  | 
 | 
											
												
													
														|  | -    `5 Interfacing Options` -> `P6 Serial` and `Disable serial login shell` and `Enable serial port hardware` (i.e. NO and then YES)
 |  | 
 | 
											
												
													
														|  | -* To be able to use the UART you need to disable the built in Bluetooth since it shares the UART. To do so, add the following lines to `/boot/config.txt` [source](http://www.briandorey.com/post/Raspberry-Pi-3-UART-Boot-Overlay-Part-Two)
 |  | 
 | 
											
												
													
														|  | -    ```sh
 |  | 
 | 
											
												
													
														|  | -    # Disable built in Bluetooth
 |  | 
 | 
											
												
													
														|  | -    dtoverlay=pi3-miniuart-bt
 |  | 
 | 
											
												
													
														|  | -    ```
 |  | 
 | 
											
												
													
														|  | -* To disable the serial console, you need to edit the /boot/cmdline.txt file to look like the following row. [source](http://www.briandorey.com/post/Raspberry-Pi-3-UART-Boot-Overlay-Part-Two)
 |  | 
 | 
											
												
													
														|  | -    ```sh
 |  | 
 | 
											
												
													
														|  | -    dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
 |  | 
 | 
											
												
													
														|  | -    ```
 |  | 
 | 
											
												
													
														|  | -* Install Python Package Manager PIP if not already installed (not installed on Raspbian Lite):
 |  | 
 | 
											
												
													
														|  | -    ```sh
 |  | 
 | 
											
												
													
														|  | -    $ sudo apt-get install python-pip
 |  | 
 | 
											
												
													
														|  | -    ```
 |  | 
 | 
											
												
													
														|  | -* Install Git if not already installed (not installed on Raspbian Lite):
 |  | 
 | 
											
												
													
														|  | -    ```sh
 |  | 
 | 
											
												
													
														|  | -    $ sudo apt-get install git
 |  | 
 | 
											
												
													
														|  | -    ```    
 |  | 
 | 
											
												
													
														|  | 
 |  | +This project has been documented at [Hackster](https://www.hackster.io/samuelphy/energy-meter-logger-6a3468). Please follow the instructions there for more detailed information.
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  ### Installation
 |  |  ### Installation
 | 
											
												
													
														|  | -#### Install InfluxDB
 |  | 
 | 
											
												
													
														|  | -[source](https://docs.influxdata.com/influxdb/v1.3/introduction/installation/)
 |  | 
 | 
											
												
													
														|  | 
 |  | +#### Install InfluxDB*
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  ##### Step-by-step instructions
 |  |  ##### Step-by-step instructions
 | 
											
												
													
														|  |  * Add the InfluxData repository
 |  |  * Add the InfluxData repository
 | 
											
										
											
												
													
														|  | @@ -71,9 +46,9 @@ Its been verified to work with a Raspberry Pi with a Linksprite RS485 shield and
 | 
											
												
													
														|  |      CREATE DATABASE db_meters
 |  |      CREATE DATABASE db_meters
 | 
											
												
													
														|  |      exit
 |  |      exit
 | 
											
												
													
														|  |      ```
 |  |      ```
 | 
											
												
													
														|  | 
 |  | +[*source](https://docs.influxdata.com/influxdb/v1.3/introduction/installation/)
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -#### Install Grafana
 |  | 
 | 
											
												
													
														|  | -[source](http://docs.grafana.org/installation/debian/)
 |  | 
 | 
											
												
													
														|  | 
 |  | +#### Install Grafana*
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  ##### Step-by-step instructions
 |  |  ##### Step-by-step instructions
 | 
											
												
													
														|  |  * Add APT Repository
 |  |  * Add APT Repository
 | 
											
										
											
												
													
														|  | @@ -99,6 +74,7 @@ Its been verified to work with a Raspberry Pi with a Linksprite RS485 shield and
 | 
											
												
													
														|  |      $ sudo systemctl enable grafana-server.service
 |  |      $ sudo systemctl enable grafana-server.service
 | 
											
												
													
														|  |      ```
 |  |      ```
 | 
											
												
													
														|  |  * Go to http://localhost:3000 and login using admin / admin (remember to change password)
 |  |  * Go to http://localhost:3000 and login using admin / admin (remember to change password)
 | 
											
												
													
														|  | 
 |  | +[*source](http://docs.grafana.org/installation/debian/)
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  #### Install Energy Meter Logger:
 |  |  #### Install Energy Meter Logger:
 | 
											
												
													
														|  |  * Download and install from Github
 |  |  * Download and install from Github
 |