Browse Source

Fix magnitude order

fastled
Xose Pérez 6 years ago
parent
commit
7b52eb2e25
5 changed files with 1838 additions and 1824 deletions
  1. +14
    -0
      code/espurna/config/hardware.h
  2. +3
    -3
      code/espurna/config/sensors.h
  3. BIN
      code/espurna/data/index.html.gz
  4. +1820
    -1820
      code/espurna/static/index.html.gz.h
  5. +1
    -1
      code/html/custom.js

+ 14
- 0
code/espurna/config/hardware.h View File

@ -105,7 +105,9 @@
#define LED1_PIN_INVERSE 1 #define LED1_PIN_INVERSE 1
// HLW8012 // HLW8012
#ifndef HLW8012_SUPPORT
#define HLW8012_SUPPORT 1 #define HLW8012_SUPPORT 1
#endif
#define HLW8012_SEL_PIN 2 #define HLW8012_SEL_PIN 2
#define HLW8012_CF1_PIN 13 #define HLW8012_CF1_PIN 13
#define HLW8012_CF_PIN 14 #define HLW8012_CF_PIN 14
@ -146,7 +148,9 @@
#define LED1_PIN_INVERSE 0 #define LED1_PIN_INVERSE 0
// HLW8012 // HLW8012
#ifndef HLW8012_SUPPORT
#define HLW8012_SUPPORT 1 #define HLW8012_SUPPORT 1
#endif
#define HLW8012_SEL_PIN 5 #define HLW8012_SEL_PIN 5
#define HLW8012_CF1_PIN 13 #define HLW8012_CF1_PIN 13
#define HLW8012_CF_PIN 14 #define HLW8012_CF_PIN 14
@ -219,10 +223,16 @@
#define LED1_PIN_INVERSE 1 #define LED1_PIN_INVERSE 1
// Jack is connected to GPIO14 (and with a small hack to GPIO4) // Jack is connected to GPIO14 (and with a small hack to GPIO4)
#ifndef DALLAS_SUPPORT
#define DALLAS_SUPPORT 1 #define DALLAS_SUPPORT 1
#endif
#define DALLAS_PIN 14 #define DALLAS_PIN 14
#ifndef DHT_SUPPORT
#define DHT_SUPPORT 1 #define DHT_SUPPORT 1
#endif
#define DHT_PIN 14 #define DHT_PIN 14
//#define I2C_SDA_PIN 4 //#define I2C_SDA_PIN 4
//#define I2C_SCL_PIN 14 //#define I2C_SCL_PIN 14
@ -327,7 +337,9 @@
#define LED1_PIN_INVERSE 0 #define LED1_PIN_INVERSE 0
// HLW8012 // HLW8012
#ifndef HLW8012_SUPPORT
#define HLW8012_SUPPORT 1 #define HLW8012_SUPPORT 1
#endif
#define HLW8012_SEL_PIN 5 #define HLW8012_SEL_PIN 5
#define HLW8012_CF1_PIN 13 #define HLW8012_CF1_PIN 13
#define HLW8012_CF_PIN 14 #define HLW8012_CF_PIN 14
@ -1117,7 +1129,9 @@
#define RELAY2_TYPE RELAY_TYPE_NORMAL #define RELAY2_TYPE RELAY_TYPE_NORMAL
// DB18B20 // DB18B20
#ifndef DALLAS_SUPPORT
#define DALLAS_SUPPORT 1 #define DALLAS_SUPPORT 1
#endif
#define DALLAS_PIN 2 #define DALLAS_PIN 2
#define DALLAS_UPDATE_INTERVAL 5000 #define DALLAS_UPDATE_INTERVAL 5000
#define TEMPERATURE_MIN_CHANGE 1.0 #define TEMPERATURE_MIN_CHANGE 1.0


+ 3
- 3
code/espurna/config/sensors.h View File

@ -71,9 +71,9 @@
#define MAGNITUDE_POWER_ACTIVE 6 #define MAGNITUDE_POWER_ACTIVE 6
#define MAGNITUDE_POWER_APPARENT 7 #define MAGNITUDE_POWER_APPARENT 7
#define MAGNITUDE_POWER_REACTIVE 8 #define MAGNITUDE_POWER_REACTIVE 8
#define MAGNITUDE_ENERGY 9
#define MAGNITUDE_ENERGY_DELTA 10
#define MAGNITUDE_POWER_FACTOR 11
#define MAGNITUDE_POWER_FACTOR 9
#define MAGNITUDE_ENERGY 10
#define MAGNITUDE_ENERGY_DELTA 11
#define MAGNITUDE_ANALOG 12 #define MAGNITUDE_ANALOG 12
#define MAGNITUDE_DIGITAL 13 #define MAGNITUDE_DIGITAL 13
#define MAGNITUDE_EVENTS 14 #define MAGNITUDE_EVENTS 14


BIN
code/espurna/data/index.html.gz View File


+ 1820
- 1820
code/espurna/static/index.html.gz.h
File diff suppressed because it is too large
View File


+ 1
- 1
code/html/custom.js View File

@ -43,7 +43,7 @@ function magnitudeType(type) {
var types = [ var types = [
"Temperature", "Humidity", "Pressure", "Temperature", "Humidity", "Pressure",
"Current", "Voltage", "Active Power", "Apparent Power", "Current", "Voltage", "Active Power", "Apparent Power",
"Reactive Power", "Energy", "Energy (delta)", "Power Factor",
"Reactive Power", "Power Factor", "Energy", "Energy (delta)",
"Analog", "Digital", "Events", "Analog", "Digital", "Events",
"PM1.0", "PM2.5", "PM10", "CO2" "PM1.0", "PM2.5", "PM10", "CO2"
]; ];


Loading…
Cancel
Save