Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding at least SmartConfig to enter credentials? #415

Open
rin67630 opened this issue Oct 13, 2024 · 5 comments
Open

Adding at least SmartConfig to enter credentials? #415

rin67630 opened this issue Oct 13, 2024 · 5 comments

Comments

@rin67630
Copy link

Hi,
TasmoCompiler is a great resource to generate builds for devices no supported by the standard Tasmota builts.
The caveat is however that it generates a build with fixed credentials.

Integrating a credentials initialization like the standard builts may be too demanding, but could it be possible at least to include ESP's SmartConfig to make a build that can be distributed with variable credentials?

Thank you for considering.
Regards
Laszlo

@benzino77
Copy link
Owner

Hi Laszlo!

Glad to hear you found TasmoCompiler useful ;)

Can you elaborate more about "it generates a build with fixed credentials"? TasmoCompiler will:

  • add your WiFi credentials only when you provide them during build (second step) - you DON'T need to provide them
  • add your MQTT creds only when you put them via Custom parameters

@rin67630
Copy link
Author

OK sorry, it was a misundestanding.
That was not clear to me.

@rin67630 rin67630 reopened this Oct 13, 2024
@rin67630
Copy link
Author

Just a question:
if one can enter the MQTT credentials via Custom parameters, maybe one can enter the timezone and the longitude/latitude too?

I have written a Python tool that patches ESP binaries and is able to automatically patch this information together with the WiFi credentials, then flash a ready to use ESP device, with all the user specific information already populated.

You may want to have a look at https://github.com/rin67630/ESP_Binary_patcher

@benzino77
Copy link
Owner

if one can enter the MQTT credentials via Custom parameters, maybe one can enter the timezone and the longitude/latitude too?

Custom parameters are for your own #define/#undef/#if/#ifndef/#endif's clauses which will be placed at the very end of user_config_override.h file before compilation starts. You can put there ANY #define/#undef/#if/#ifndef/#endif accepted by Tasmota.

You can download user_config_override.h file to see its content after the successful compilation by clicking appropriate button.

@rin67630
Copy link
Author

rin67630 commented Oct 13, 2024

Thank you, i will test if my Python patcher can be used / adapted to patch custom generated .bin files with user parameters.
The aim is to free end-users from any need to care about syntaxes.
The owner of the build populates the data with predefined dummies. then compiles and diestibutes the compiled .bin toether with PythonPatcher.py to the end-user.
That one just copies the generated .bin code into the PythonPatcher-py directory,. starts the Python patcher, choses the .bin file.
Then he gets asked about each user parameter one by one, the geo-data gets automatically pre populated,.
When all info is gathered, the file gets patched, saved and then uploaded into the ESP and the tasmota device is ready to use directly.

I will return once it is tested...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants