Skip to content

Commit

Permalink
V2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nightflyer88 committed Jan 28, 2020
1 parent 23e80c5 commit 1ce3c18
Show file tree
Hide file tree
Showing 29 changed files with 369 additions and 165 deletions.
496 changes: 333 additions & 163 deletions CG_scale.ino

Large diffs are not rendered by default.

Binary file added Doc/img/cgscale_V2_homeconfig2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/img/cgscale_V2_homeconfig3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/img/cgscale_V2_homeext.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/img/json_lib_V2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/img/nodeMCUpyFlasher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/img/webupdate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/CG_scale_mechanics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed data/CG_scale_mechanics.png.gz
Binary file not shown.
Binary file added data/Resistor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed data/battery.png
Binary file not shown.
Binary file removed data/bootstrap.min.css.gz
Binary file not shown.
Binary file removed data/bootstrap.min.js.gz
Binary file not shown.
Binary file added data/fw190.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed data/home.png
Binary file not shown.
Binary file modified data/index.html.gz
Binary file not shown.
Binary file removed data/jquery-3.3.1.slim.min.js.gz
Binary file not shown.
Binary file modified data/models.html.gz
Binary file not shown.
Binary file added data/pc6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/pc7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/settings.html.gz
Binary file not shown.
25 changes: 24 additions & 1 deletion defaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,27 @@ enum {
};


#if defined(ESP8266)
// https update
enum {
PROBE_UPDATE,
UPDATE_FIRMWARE,
UPDATE_SPIFFS
};


// console msg type
enum {
T_BOOT,
T_RUN,
T_ERROR,
T_WIFI,
T_UPDATE,
T_HTTPS
};
#endif


// EEprom parameter addresses
enum {
P_NUMBER_LOADCELLS = 1,
Expand All @@ -74,7 +95,9 @@ enum {
P_SSID_AP = P_PASSWORD_STA + MAX_SSID_PW_LENGHT + 1,
P_PASSWORD_AP = P_SSID_AP + MAX_SSID_PW_LENGHT + 1,
P_MODELNAME = P_PASSWORD_AP + MAX_SSID_PW_LENGHT + 1,
EEPROM_SIZE = P_MODELNAME + MAX_MODELNAME_LENGHT + 1
P_ENABLE_UPDATE = P_MODELNAME + MAX_MODELNAME_LENGHT + 1,
P_ENABLE_OTA = P_ENABLE_UPDATE + 1,
EEPROM_SIZE = P_ENABLE_OTA + 1
#endif
};

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added img/measuring.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
13 changes: 12 additions & 1 deletion settings_ESP8266.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,22 @@ U8G2_SH1106_128X64_NONAME_1_HW_I2C oledDisplay(U8G2_R0, /* reset=*/ U8X8_PIN_NON
const char ip[4] = {1,2,3,4}; // default IP address

#define ENABLE_MDNS true // enable mDNS to reach the webpage with hostname.local
#define ENABLE_OTA true // enable over the air update



// **** https update settings ****

#define ENABLE_UPDATE true
#define HTTPS_PORT 443
#define HOST "github.com"
#define URL "/nightflyer88/CG_scale/releases/latest"



// **** Model memory settings ****

#define MAX_MODELNAME_LENGHT 32 // max chars
#define DEFAULT_NAME "Model" // default model name
#define MODEL_FILE "/models.json" // file to store models
#define JSONBUFFER_SIZE 20000 // max file size in bytes
#define JSONDOC_SIZE 20000 // max file size in bytes

0 comments on commit 1ce3c18

Please sign in to comment.