diff --git a/.travis/push.sh b/.travis/push.sh index ff2e613..93e3719 100755 --- a/.travis/push.sh +++ b/.travis/push.sh @@ -63,6 +63,8 @@ commit_website_files() { git add ${BRANCH}/${VERSION}-changelog.txt echo "
${VERSION}
" > ${BRANCH}/update-info.html git add ${BRANCH}/update-info.html + ${MYPATH}/scripts/makefsupdate.py ${MYPATH}/RX_FSK/data/ > ${BRANCH}/update.fs.bin + git add ${BRANCH}/update.fs.bin git commit --message "Travis build: $TRAVIS_BUILD_NUMBER" } upload_files() { diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index ffeedfa..c4f526f 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -21,6 +21,8 @@ #include "src/geteph.h" #include "src/rs92gps.h" #include "src/aprs.h" +#include "src/ShFreqImport.h" + #if FEATURE_MQTT #include "src/mqtt.h" #endif @@ -58,6 +60,7 @@ WiFiClient client; #define SONDEHUB_STATION_UPDATE_TIME (60*60*1000) // 60 min #define SONDEHUB_MOBILE_STATION_UPDATE_TIME (30*1000) // 30 sec WiFiClient shclient; // Sondehub v2 +char shImportInterval = 0, shImport = 0; unsigned long time_last_update = 0; /* SH_LOC_OFF: never send position information to SondeHub SH_LOC_FIXED: send fixed position (if specified in config) to sondehub @@ -146,6 +149,11 @@ String processor(const String& var) { if (var == "VERSION_ID") { return String(version_id); } + if (var == "FULLNAMEID") { + char tmp[128]; + snprintf(tmp, 128, "%s-%c%d", version_id, SPIFFS_MAJOR+'A'-1, SPIFFS_MINOR); + return String(tmp); + } if (var == "AUTODETECT_INFO") { char tmpstr[128]; const char *fpstr; @@ -258,9 +266,18 @@ void HTMLSAVEBUTTON(char *ptr) { const char *createQRGForm() { char *ptr = message; strcpy(ptr, HTMLHEAD); - strcat(ptr, ""); + strcat(ptr, ""); HTMLBODY(ptr, "qrg.html"); //strcat(ptr, "