From 762c17ca8e14a9b76619981e69627b9f4e117486 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Tue, 17 Jan 2023 19:48:24 +0100 Subject: [PATCH] Updated readme and example ini file --- README.md | 4 ++-- platformio-user.ini-example | 17 +++++++---------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index c32a12f7..fb052922 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# AMS MQTT Bridge +# AMS Reader This code is designed to decode data from electric smart meters installed in many countries in Europe these days. The data is presented in a graphical web interface and can also send the data to a MQTT broker which makes it suitable for home automation project. Originally it was only designed to work with Norwegian meters, but has since been adapter to read any IEC-62056-7-5 or IEC-62056-21 compliant meters. -Later development have added Energy usage graph for both day and month, as well as future energy price (Prices only available for ESP32). The code can run on any ESP8266 or ESP32 hardware which you can read more about in the [WiKi](https://github.com/gskjold/AmsToMqttBridge/wiki). If you don't have the knowledge to set up a ESP device yourself, have a look at the shop at [amsleser.no](https://amsleser.no/). +Later development have added Energy usage graph for both day and month, as well as future energy price. The code can run on any ESP8266 or ESP32 hardware which you can read more about in the [WiKi](https://github.com/gskjold/AmsToMqttBridge/wiki). If you don't have the knowledge to set up a ESP device yourself, have a look at the shop at [amsleser.no](https://amsleser.no/). diff --git a/platformio-user.ini-example b/platformio-user.ini-example index 276bb8a1..a6c816ce 100644 --- a/platformio-user.ini-example +++ b/platformio-user.ini-example @@ -2,19 +2,16 @@ default_envs = dev [env:dev] -platform = espressif8266 +platform = espressif8266@3.2.0 +framework = arduino board = esp12e board_build.ldscript = eagle.flash.4m2m.ld -framework = arduino -lib_deps = ${common.lib_deps} -lib_ignore = ${common.lib_ignore} +build_flags = ${common.build_flags} -D DEBUG_MODE=1 +lib_ldf_mode = off lib_compat_mode = off -build_flags = - -D WEBSOCKET_DISABLED=1 - -D DEBUG_MODE=1 -extra_scripts = - pre:scripts/addversion.py - scripts/makeweb.py +lib_deps = ESP8266WiFi, ESP8266mDNS, ESP8266WebServer, ESP8266HTTPClient, ESP8266httpUpdate, ${common.lib_deps} +lib_ignore = ${common.lib_ignore} +extra_scripts = ${common.extra_scripts} monitor_speed = 115200 ; If serial port is shared with HAN, use baud and parity configured for meter monitor_flags = --parity