Basic Tasmota compile issue on Gitpod

371 views
Skip to first unread message

Marcus Milburn

unread,
Jun 21, 2021, 9:55:19 AM6/21/21
to TasmotaUsers
I have successfully compiled & flashed versions of Tasmota to include the capability of using Scripts. To use Scripts I want to use Berry Script Editor.
The documentation simply says to add '#define USE_BERRY' in the user_config_override file. When I do this the compile fails and says it can't find berry.h.
But there is a berry.h file in the directories.
I have also tried this with a clean version of Tasmota without any of my modifications, to eliminate anything that I have done as causing the problem, with the same result.
As the problem is with someone elses code, I have no background on how to fix it.
Does anyone have any input on this?

Marcus

Philip Knowles

unread,
Jun 21, 2021, 10:27:34 AM6/21/21
to Marcus Milburn, TasmotaUsers

Well Berry is pre-compiled into ESP32 binaries.

You haven’t said if you are using an ESP32 but Berry is only available on ESP32. Top line on this page

Berry Scripting Language - Tasmota

Regards

 

Phil K

 

Sent from Mail for Windows 10

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/3be09d1d-8dec-4fe3-bb3b-68f52a060104n%40googlegroups.com.

 

Marcus Milburn

unread,
Jun 21, 2021, 10:44:32 AM6/21/21
to TasmotaUsers
Thank you.
This is not a good reply from me but I think I am using ESP32.
The reason I say 'think' is because I spent so long trying to solve the problem that I have been locked out as having exceeded my 50 hours so I can't do any checks unless I cough up.
All of the Berry files are in my workspace directories so I presumed the #define USE_BERRY would make them active.
I just used the basic Tasmota library and compiled without any changes so if the default isn't ESP32 then I am using something else.
If I think I can resolve this I will subscribe.

Marcus

Philip Knowles

unread,
Jun 21, 2021, 10:48:12 AM6/21/21
to Marcus Milburn, TasmotaUsers

Is the hardware an ESP32?

 

The point is that (provided the hardware is an ESP32) you don’t need to compile you can just use one of the pre-compiled bins on the releases page

ota.tasmota.com/tasmota32/release/

Marcus Milburn

unread,
Jun 21, 2021, 10:54:58 AM6/21/21
to TasmotaUsers
OK I see what you are saying. The hardware is a Sonoff 4Ch Pro. I'll try the pre compiled binary.
Many thanks for your help.
I am a retired firmware/hardware developer on data communications equipment, but this stuff is new to me.
Marcus

Philip Knowles

unread,
Jun 21, 2021, 11:07:32 AM6/21/21
to Marcus Milburn, TasmotaUsers

Berry won’t work on that device as it uses an ESP8266. You can use the ‘standard’ scripting though

 

Scripting - Tasmota

 

At the risk of being shot down by others, I only use Rules (and then only as a ‘safety net’ in the event of a control system failure).  The theory behind programming rules and scripts I understand, but there is more computing power in the control system. Tasmota doesn’t like losing MQTT so ,in the event of a system failure, the ESPs won’t function properly anyway. In my days with setting up DCSs the aim was to pass the control parameters to the remote devices so that they could control their own areas. I don’t think Tasmota is there just yet.

Reply all
Reply to author
Forward
0 new messages