Sonoff-Tasmota-Modified icon indicating copy to clipboard operation
Sonoff-Tasmota-Modified copied to clipboard

#define MOD_VERSION_STRING "mod-1.35.3"

Open mike2nl opened this issue 5 years ago • 3 comments

Have you look for this feature in other issues and in the wiki? -> yes

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. -> About your comment in sonoff.ino #define MOD_VERSION_STRING "mod-1.35.3" // Would be great to have a macro that fills this from VERSION ...

Describe the solution you'd like A clear and concise description of what you want to happen. -> in the xdrv_02_webserver,ino search for: --> String func = FPSTR(HTTP_SCRIPT_INFO_BEGIN); .. .. --> func += F(D_PROGRAM_VERSION "}2"); func += my_version;

Then add a new line: --> func += F("}1" D_PROGRAM_VERSION "}2"); func += MOD_VERSION_STRING;

It can be done also as if: #ifdef MOD_VERSION_STRING func += F("}1" D_PROGRAM_VERSION "}2"); func += MOD_VERSION_STRING; #endif

D_PROGRAM_VERSION_MOD has to be added to all the language files. This fix is for the web page only.

When it is needed in status 0 in json format then we have to add some parts in the json creation. For that i must search a little bit more in all the snprintf calls for json. That's then the define for #define D_JSON_VERSION "Version" in the file i18n.h

Here a screenshot and yes i forgot the next line command and it's the idea behind it:

information mod version

And here the corrected one and the name can be like 'Modded Version' or something else: information mod version corrected

mike2nl avatar Aug 01 '18 13:08 mike2nl