-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #380 from IgorYbema/main
release v3.2
- Loading branch information
Showing
31 changed files
with
2,647 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,11 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Update version.h | ||
if: github.ref != 'refs/heads/main' #do not change version in main branch run | ||
run: cd HeishaMon && echo "static const char *heishamon_version = \"Alpha-$(git rev-parse --short HEAD)\";" > version.h && cat version.h | ||
shell: bash | ||
|
||
- name: Setup Arduino CLI | ||
uses: arduino/[email protected] | ||
|
@@ -25,7 +30,7 @@ jobs: | |
run: arduino-cli lib install ringbuffer pubsubclient doubleresetdetect arduinojson dallastemperature onewire WebSockets | ||
|
||
- name: Compile Sketch | ||
run: cd HeishaMon && arduino-cli compile --output-dir . --fqbn=esp8266:esp8266:d1_mini:xtal=160,vt=flash,ssl=basic,mmu=3216,non32xfer=safe,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 --vid-pid=1A86_7523 --warnings=none --verbose HeishaMon.ino | ||
run: cd HeishaMon && arduino-cli compile --output-dir . --fqbn=esp8266:esp8266:d1_mini:xtal=160,vt=flash,ssl=basic,mmu=3216,non32xfer=safe,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 --warnings=none --verbose HeishaMon.ino | ||
|
||
- name: Add MD5 checksum | ||
run: cd HeishaMon && MD5=`md5sum HeishaMon.ino.bin | cut -d\ -f1` && mv HeishaMon.ino.bin HeishaMon-alpha-$MD5.bin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#ifndef _HEISHA_OT_H_ | ||
#define _HEISHA_OT_H_ | ||
|
||
#include <PubSubClient.h> | ||
#include "src/common/webserver.h" | ||
|
||
// opentherm | ||
const int inOTPin = 3; //RX pin from ESP8266 | ||
const int outOTPin = 1; //TX pin from ESP8266 | ||
|
||
// mqtt | ||
extern const char* mqtt_topic_opentherm; | ||
|
||
#define TBOOL 1 | ||
#define TFLOAT 2 | ||
|
||
typedef struct heishaOTDataStruct_t { | ||
const char *name; | ||
uint8_t type; | ||
union { | ||
bool b; | ||
float f; | ||
} value; | ||
uint8_t rw; | ||
} heishaOTDataStruct_t; | ||
|
||
extern struct heishaOTDataStruct_t heishaOTDataStruct[]; | ||
|
||
void HeishaOTSetup(); | ||
void HeishaOTLoop(char *actDat, PubSubClient &mqtt_client, char* mqtt_topic_base); | ||
void mqttOTCallback(char* topic, char* value); | ||
void openthermTableOutput(struct webserver_t *client); | ||
void openthermJsonOutput(struct webserver_t *client); | ||
|
||
#endif |
Oops, something went wrong.