ESP Easy Mega

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Forum rules
You have entered the experimental forum, beware!!!
Message
Author
Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Mega

#51 Post by Shardan » 21 Feb 2017, 21:24

Hello,

I tried it, loaded down the git repository and installed Arduino IDE on a newly installed computer so everything should be clean.
Added the board manager, libs etc as usual of course.

Compiling ends up in a "missing SSD1306.h" error. i can't find the header file anywhere so this message is correct.

Where can i find the file?

Regards
Shardan

Addendum:
I just tried to get atom and platformio to run on Win-7.
I can open the cloned file folder and files, that's it.
F7 just does nothing, it is not connected to any action in the settings.
Seems that it needs Python (v2? v3?) and maybe some more things on top?

Addendum2
Installed atom and git on my Server running SuSE Leapfrog , cloned the git.
Result: starting "atom ESPEasy-platformio" does nothing. Just the prompt comes back at once, that's all.
No error message, nothing in the log file.

Seems this needs some reworking.....
Regards
Shardan

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Mega

#52 Post by Shardan » 22 Feb 2017, 18:47

Hello again,

meanwhile i got atom starting on my linux machine, was my fault.

But anyways..... starting "atom ESPEasy-platformio opens atom and the cloned repository.
Pressing [F7] does just nothing as with windows.

There is something missing on standard installations.
Regards
Shardan

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Mega

#53 Post by Shardan » 22 Feb 2017, 22:07

Hello again...

The description is somewhat short about some installation points:

I managed to get platformio to run with Win-7. You have to install clang (LLVM), python 2.7.x and git.
Then open atom, go to file -> settings -> install and sear for "platformio-ide", install it.
With the first run it installed the tool chain without error messages but complaioned about missing source files.
I copied the source files manually, then it complained about libraries:
"fatal: Not a git repository (or any of the parent directories): .git"
This appears on different libraries debending on the build (Mini...)

That's an issue that should be fixed as many people use windows.

At least i got it to work on one of my SuSE servers.
With SuSE you have to install clang (LLVM) which is not installed by default.
Then open atom, click edit -> preferences -> install and search for "platformio-IDE", install it.

Should be mentioned that the compiled files are under ./<home folder>/ESPEasy-Platformio/.pioenvs/<version>/firmware.bin
(version = dev, mini, normal or test).

Regards
Shardan
Regards
Shardan

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#54 Post by psy0rz » 22 Feb 2017, 23:35

thanks for trying and for all the info.

will try to make a nice windows howto on the wiki this weekend. tried it myself and there where a lot of little issues indeed.

(so far i used linux and had everything setup already)
Please support ESPEasy development via Patreon or buy us a coffee.

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#55 Post by psy0rz » 25 Feb 2017, 23:24

People, i made some changes, so the released zip-file has the same layout as people where used to:

https://github.com/letscontrolit/ESPEas ... 2.0.0-dev2

This should allow people to use at least the Arduini IDE to compile the sources. (until I documented some more about the new stuff with platform io)

Please let me know how it works for you. (for now testing,dev and stable all have the same plugins, I still have to add plugin sets support to version 2)

Edwin
Please support ESPEasy development via Patreon or buy us a coffee.

frank
Normal user
Posts: 116
Joined: 15 Oct 2016, 20:17
Location: Nederland

Re: ESP Easy Mega

#56 Post by frank » 26 Feb 2017, 14:58

I am testing the ESPEasy_v2.0.0-dev2_test_ version. Installing was no problem.
I hope you will give the 2560 version some attention to (the i2c part of it)

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#57 Post by psy0rz » 26 Feb 2017, 19:43

You mean the arduino mega 2560?
Please support ESPEasy development via Patreon or buy us a coffee.

frank
Normal user
Posts: 116
Joined: 15 Oct 2016, 20:17
Location: Nederland

Re: ESP Easy Mega

#58 Post by frank » 26 Feb 2017, 20:55

psy0rz wrote:You mean the arduino mega 2560?
i meant this side project
http://www.letscontrolit.com/wiki/index.php/ArduinoEasy

viewtopic.php?f=18&t=2234

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#59 Post by psy0rz » 26 Feb 2017, 21:38

I didnt know about this project, and for some it can be a bit confusing: We have ESPEasy mega, which is actually for the ESP8266. (I renamed it to ESPEasy version 2 for clearance)

And now it seems there is actually a port of ESPEasy for the Arduino Mega. (and it ISNT called ESPEasy Mega...wait wut?)

I dont think i have the time and interest to support that version, nor do I have practical use myself for an arduino with ethernet. It also means yet another repository to support and fix bugs on.

If someone would extend the ESPEasy code base to also support Arduino Megas (with a bunch of ifdefs), i would be interested to merge it into ESPEasy.

Offcourse its always possible someone else will continue development of EasyArduino. (please contact Martinus if you do)

Edwin
Please support ESPEasy development via Patreon or buy us a coffee.

NietGiftig
Normal user
Posts: 103
Joined: 16 Sep 2015, 20:32

Re: ESP Easy Mega

#60 Post by NietGiftig » 26 Feb 2017, 23:11

nor do I have practical use myself for an arduino with ethernet.
Quite right, Arduino is a little bit obsolete with esp8266
Mega + ethernet shield cost + size cannot match the new solutions

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#61 Post by psy0rz » 01 Mar 2017, 22:04

I was working on a howto for Windows when I realized that working with submodule is making things much more complex.

So i'm going to rearrange the files in the ESPEasy mega-branch in such a way that its compatible with platformio and then make a nice howto for it.

Releases will still be in the zip-file format that people are used to.

The Howto about installing platformio on windows is ready: http://www.letscontrolit.com/wiki/index ... Platformio
Please support ESPEasy development via Patreon or buy us a coffee.

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#62 Post by psy0rz » 02 Mar 2017, 23:54

Ok that escalated quickly into multiple howtos and a complete course ;)

The links to the howtos are on the bottom of this page: http://www.letscontrolit.com/wiki/index ... evelopment

It explains everything about Atom, platformio, Github and pull requests.

Please let me know if its usefull and understandable.

Edwin
Please support ESPEasy development via Patreon or buy us a coffee.

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: ESP Easy Mega

#63 Post by JR01 » 03 Mar 2017, 07:43

Wow, excellent piece of work on the documentation, very clear, now I understand these concepts that have eluded me for a long time ! Thank you!

Although I saw platformio in my research more than a year ago, I did not see a need, and as Martinus went the self-build / create route on Arduino, I did not understand the need, this probably goes for others in the community as well.

On this site: http://www.ikravets.com/computer-life/p ... ergia-ides I get a nice summary of 'why platformio'.
PlatformIO Library Manager makes it extremely simple to find, install and keep libraries up-to-date.
What is more, PlatformIO is an awesome and smart cross-platform code builder. You have no need to install any IDE or compile any tool chains. PlatformIO has pre-built different development platforms including: compiler, debugger, uploader (for embedded) and many other useful tools.
It thus makes sense why you are taking us to it !

Anything else you could add to set our minds at ease of going platformio? I assume the build and compile process, and updating of libs are so much easier?

Last thing, what does the inclusion of platformio do to our GNU general public license? Does it influence that?

Thank you for your dedication and hard work, again !
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#64 Post by psy0rz » 03 Mar 2017, 12:15

Ill post more later (type on phone)

just want to say that i also want to keep the current way of working with Arduino available. so people that dont like the new way do not have to worry its going to be 100% platformio only. (thats why im not yet using the library dependency functions of platformio for example)

i will test Arduino ide later and update the wiki accordingly.
Please support ESPEasy development via Patreon or buy us a coffee.

andymelichar
New user
Posts: 1
Joined: 04 Mar 2017, 02:32

Re: ESP Easy Mega

#65 Post by andymelichar » 04 Mar 2017, 02:35

Anyone able to explain how the different rulesets work? Are they just more space, or can you swap entire rule sets in mega?

I.e., I could set up Ruleset #1 with time events for every half hour, and ruleset #2 with time events for once every hour. Then I can send a command to tell the firmware to operate on ruleset #1, then two days later send a command, and have it operate on ruleset #2?

Thanks!
Andy

albertobonati
Normal user
Posts: 40
Joined: 13 Dec 2016, 15:25

Re: ESP Easy Mega

#66 Post by albertobonati » 13 Mar 2017, 16:25

Hi.
It look like ESP Easy Mega don't work with a SENSOR_TYPE_TRIPLE and Domoticz HTTP...
I tested new I2C Soil Moisture device and have this problem, no data sent to Domoticz.
Anyone know about this?
Regards
alberto

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#67 Post by psy0rz » 13 Mar 2017, 16:30

Please support ESPEasy development via Patreon or buy us a coffee.

albertobonati
Normal user
Posts: 40
Joined: 13 Dec 2016, 15:25

Re: ESP Easy Mega

#68 Post by albertobonati » 13 Mar 2017, 17:21

Well...It's incredible how fast is fixing ESP Easy bugs.... :D
Great work!
Regards
Alberto

starfish
Normal user
Posts: 38
Joined: 16 Feb 2017, 23:46

Re: ESP Easy Mega

#69 Post by starfish » 13 Mar 2017, 17:56

finally I got platformio running, but when opening the directory containing the unzipped release 6 I find empty library folders. Consequently compilaton isn´t possible. Am I the only one? how can I download a complete zip-archive?

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#70 Post by psy0rz » 13 Mar 2017, 18:01

did you download the correct zip? (espeasy...zip)

sourcecode.zip is the wrong one (github creates that automaticly)
Please support ESPEasy development via Patreon or buy us a coffee.

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#71 Post by psy0rz » 13 Mar 2017, 18:01

albertobonati wrote: 13 Mar 2017, 17:21 Well...It's incredible how fast is fixing ESP Easy bugs.... :D
Great work!
Regards
Alberto
we have many great contributors :)
Please support ESPEasy development via Patreon or buy us a coffee.

starfish
Normal user
Posts: 38
Joined: 16 Feb 2017, 23:46

Re: ESP Easy Mega

#72 Post by starfish » 13 Mar 2017, 18:32

"did you download the correct zip? (espeasy...zip)"
yes, and crosschecked several times before posting. Problem disappeared after using winzip instead of winrar. thanks for answering.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Mega

#73 Post by Shardan » 13 Mar 2017, 19:53

Hello,

any progress with a HowTo for compiling on Arduino IDE?

Regards
Shardan
Regards
Shardan

albertobonati
Normal user
Posts: 40
Joined: 13 Dec 2016, 15:25

Re: ESP Easy Mega

#74 Post by albertobonati » 14 Mar 2017, 08:33

Hi.
What about this annoyng message?
FS : Daily flash write rate exceeded!
I read somethingh in this forum but don't understand if I can disable it or have to wait 24 hours..
Best regards
Alberto

albertobonati
Normal user
Posts: 40
Joined: 13 Dec 2016, 15:25

Re: ESP Easy Mega

#75 Post by albertobonati » 14 Mar 2017, 13:25

Hi, I answer myself, this line in ESPEasy.ino set value:

#define MAX_FLASHWRITES_PER_DAY 100 // per 24 hour window
No way to reset it other then change value on file?

regards
alberto

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#76 Post by psy0rz » 14 Mar 2017, 13:27

Yep you can just change it.

Its to protect your flash in case something goes wrong with a plugin. This way it cant write 100.000.000 times a day in such cases. ;)

Maybe we should make the default higher though.

Edwin
Please support ESPEasy development via Patreon or buy us a coffee.

starfish
Normal user
Posts: 38
Joined: 16 Feb 2017, 23:46

Re: ESP Easy Mega

#77 Post by starfish » 14 Mar 2017, 13:54

Great concept. just managed to flash mega to a 1M sonoff device. Where can I find info on howto trigger notifications using rules?

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#78 Post by psy0rz » 15 Mar 2017, 02:15

Shardan wrote: 13 Mar 2017, 19:53 Hello,

any progress with a HowTo for compiling on Arduino IDE?

Regards
Shardan
Sorry it took so long. Use at least v2.0.0-dev7 and the changes i made here: https://www.letscontrolit.com/wiki/inde ... are_Upload
Please support ESPEasy development via Patreon or buy us a coffee.

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#79 Post by psy0rz » 15 Mar 2017, 02:19

starfish wrote: 14 Mar 2017, 13:54 Great concept. just managed to flash mega to a 1M sonoff device. Where can I find info on howto trigger notifications using rules?
I think I saw some explanation somewhere from martinus, but i dont know where anymore.

I didnt actually test notifications myself yet.
Please support ESPEasy development via Patreon or buy us a coffee.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Mega

#80 Post by Shardan » 18 Mar 2017, 21:32

Hello,

i just tried the Arduino IDE with the 2.0.0.dev7....

Really: Many, many thanks!

Works like a charme.
--------------------------------------------------------------------

Don't count your chickens
It compiles like a charme and uploads but it does not work.
Settings: ESP-12E / 1 M SPIFFS, uploaded without a problem but it does not boot.
This is the result:

Code: Select all

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v09826c6d
~ld
ªU


INIT : Booting version: (custom)
FS   : Mount successful
Resetting factory defaults...
RESET: Reboot count: 103
RESET: To many reset attempts

PID:0
Version:0
INIT : Incorrect PID or version!
Resetting factory defaults...
RESET: Reboot count: 103
RESET: To many reset attempts

Exception (0):
epc1=0x40106f65 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3fff4160 end: 3fff43d0 offset: 01a0

>>>stack>>>
3fff4300:  0000001c 00000000 3fff32e4 401004d8  
3fff4310:  3fff32e4 3fff32e4 3fff550c 40202e39  
3fff4320:  00000000 00000001 00000116 4010020c  
3fff4330:  0000001c 00000000 3fff32e4 00000000  
3fff4340:  0000001c 00000000 3fff32e4 402389c8  
3fff4350:  00000001 3fff3184 3fff33b0 3fff3184  
3fff4360:  3fffdad0 3fff33a0 4023a4bc 3fff33a0  
3fff4370:  3fffdad0 3fff32e4 3fff1a50 40207de5  
3fff4380:  3fffdad0 3fff32e4 3fff1a50 4022212d  
3fff4390:  feefeffe feefeffe feefeffe 3fff551c  
3fff43a0:  0000002f 00000023 feefeffe feefeffe  
3fff43b0:  3fffdad0 00000000 3fff339a 4023a500  
3fff43c0:  feefeffe feefeffe 3fff33b0 40100718  
<<<stack<<<
This is a misbehaviour of the Arduino IDE, not one from the sketch!

The following workaround works:
I've used the "Ctrl - Alt + S" (export compiled binary) comand from Arduino IDE.
It builds a -bin-File in the same folder the ESPEasy.ino resides in.
I copied the .bin to my old flash tool from the R14x-versions and renamed it to ESPEasy_R200_4096.bin
Then i was able to flash it to my testing nodeMCU without issues:

Code: Select all

INIT : Booting version: (custom)
FS   : Mount successful
INIT : Free RAM:24952
INIT : I2C
INIT : SPI not enabled
WIFI : No SSID!
WIFI : No SSID!
INIT : Normal boot
WD   : Uptime 0 ConnectFailures 0 FreeMem 19728
WD   : Uptime 1 ConnectFailures 0 FreeMem 19696
WD   : Uptime 1 ConnectFailures 0 FreeMem 19560
WD   : Uptime 2 ConnectFailures 0 FreeMem 19560
Last edited by Shardan on 19 Mar 2017, 13:14, edited 2 times in total.
Regards
Shardan

larduino
New user
Posts: 5
Joined: 19 Mar 2017, 05:15

Re: ESP Easy Mega

#81 Post by larduino » 19 Mar 2017, 05:23

Hi,
I am a bit of a novice at playing with the ESP8266 and flashing stuff.
I have successfully flashed the V2 dev 7 using the flashtool in the download. I have tried loading up separate Arduino as in Tutorial which I couldn't really get to work right ( conflicts with exisiting arduino) so then I loaded up Atom and sort of have that working though still don't think I know how to flash correctly with that.
What I really want to do is be able to use the SHT30 temperature wemos shield and I see that there is an alpha plugin for it
https://github.com/dzikus/ESPEasyPlugin ... _SHT3X.ino
I have tried to include this and compile it along with others but no success so far. Could you please add this to one of your new testing builds ?
Thanks

maluko
Normal user
Posts: 112
Joined: 02 Sep 2015, 00:49

Re: ESP Easy Mega

#82 Post by maluko » 19 Mar 2017, 13:59

hi,

its any change to continuos develop more fautures for MCP23017?

because with 12 task we are limited and mcp have 16 ports, ok i know that can control it by http but inst the same, because every guys how have sonoff relay board wih push swict inside can put all work because 1 task is for relay and other for push switch, so in my case 8 task for relay and 8 for pushswitch.
if 12 are ok so we can think about control gpio or mcpgpio by rules like this:

if [mcpgio,1]=1 or if [gpio,12]=1
and
on mcpio,1 do or on gpio,12 do

another think is have a inversed button on them.

MCP23017 its a great tool to estent gpio so why not bring more things.

appreciate a lot

maluko

ESSCHENK
New user
Posts: 1
Joined: 16 Jan 2017, 18:53

Re: ESP Easy Mega

#83 Post by ESSCHENK » 19 Mar 2017, 17:31

Hello,

I have updated 2 Wemos D1 UNITS, FROM GIT version: v2.0.0-dev4 to dev7.
now the NTP time is not working any more.
is this a know problem.
It give this Local Time:1970-01-01 0:17

Thanks in advanced

Ed

krikk
Normal user
Posts: 118
Joined: 28 Feb 2017, 07:57
Location: Austria
Contact:

Re: ESP Easy Mega

#84 Post by krikk » 19 Mar 2017, 19:15

ESP Easy only tries 3 times to get a reply from ntp server, if these fail, you get not time... i had this a few times also... so, just try again.. other reason could also be a firewall which blocks ntp...

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Mega

#85 Post by Shardan » 19 Mar 2017, 19:31

maluko wrote: 19 Mar 2017, 13:59 hi,

its any change to continuos develop more fautures for MCP23017?

because with 12 task we are limited and mcp have 16 ports, ok i know that can control it by http but inst the same, because every guys how have sonoff relay board wih push swict inside can put all work because 1 task is for relay and other for push switch, so in my case 8 task for relay and 8 for pushswitch.
if 12 are ok so we can think about control gpio or mcpgpio by rules like this:

if [mcpgio,1]=1 or if [gpio,12]=1
and
on mcpio,1 do or on gpio,12 do

another think is have a inversed button on them.

MCP23017 its a great tool to estent gpio so why not bring more things.

appreciate a lot

maluko
I'd support this as i use several devices that have 8 switching chanels on a PCF8574 and 8 current metering channels.

But there might be a problem.

As far as i understood the tasks use up RAM which is a very limited ressource with the ESP8266.
I'm not sure if it is possible to extend the number of possible tasks without running into collisions
with other processes and their needs for RAM.

Regards
Shardan
Regards
Shardan

Jotoc
New user
Posts: 3
Joined: 25 Mar 2017, 10:05

Re: ESP Easy Mega

#86 Post by Jotoc » 25 Mar 2017, 10:18

Hello Martinus,

I'm trying to get the e-mail notification, but I do not have the syntax for the rules.
Could you give me the code?

Many Thanks
Jotoc

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Mega

#87 Post by Shardan » 04 Apr 2017, 18:45

Hello,

i've just noticed that the IR-library is disabled due to a bug.

When will it be back?


Regards
Shardan
Regards
Shardan

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: ESP Easy Mega

#88 Post by tozett » 04 Apr 2017, 21:30

this new road is a good road for espeasy,
i follow espeasy since some early builds.

but the new way has the same different places to look for getting it going as in the old days...

looking around the forum, looking around the wiki,
and (tanks good) now looking in the github issues.

but also hard to get to know that actually only ver200-dev7 compiles ok in arduino ide.
than also getting (on windows) the libs together.
and this is called to be the same valid alternative to platform.io.

i had it compiled, but after all (like in the old days) still dazzled where to discuss bug-fixing with the devs..
forum? git-hub issues to dev7, or only binaries?....

well, lets see how this develops..
and still, like the old days: good work!!! keeep on going, devs!!

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#89 Post by psy0rz » 04 Apr 2017, 21:36

Shardan wrote: 04 Apr 2017, 18:45 Hello,

i've just noticed that the IR-library is disabled due to a bug.

When will it be back?


Regards
Shardan
it wasn't actually a bug. with the new IR library we just hit our IRAM limit it seems. (and there is only 2-3k of IRAM to start with)

I created an overview of the different plugin sizes: https://github.com/letscontrolit/ESPEas ... _sizes.txt

I'm currently trying to reduce memory usage of the various plugins, but we might have to disable some plugins by default in the next versions.

The question then is: which one(s) do we disable. only the ones that use IRAM make sense. in somecases the IRAM is used by libraries, like the neopixel libs. In that case we would have to disable all the neopixel plugins to get that memory back.
Please support ESPEasy development via Patreon or buy us a coffee.

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#90 Post by psy0rz » 04 Apr 2017, 21:39

tozett wrote: 04 Apr 2017, 21:30 this new road is a good road for espeasy,
i follow espeasy since some early builds.

but the new way has the same different places to look for getting it going as in the old days...

looking around the forum, looking around the wiki,
and (tanks good) now looking in the github issues.

but also hard to get to know that actually only ver200-dev7 compiles ok in arduino ide.
than also getting (on windows) the libs together.
and this is called to be the same valid alternative to platform.io.

i had it compiled, but after all (like in the old days) still dazzled where to discuss bug-fixing with the devs..
forum? git-hub issues to dev7, or only binaries?....

well, lets see how this develops..
and still, like the old days: good work!!! keeep on going, devs!!
We're tring to do our best, but i understand that it can be a bit chaotic at times.

Do you have any suggestions on how we can make things more clear, so that we can save other people some time?

A hint or url at the right places might help a lot: the problem is that the people like me are deep into the code right now. So it gets hard to see where hints, documentation or links are needed after a certain point.

Currently we're trying to get a stable and usable version 2.0.0 for everybody to work with.
Please support ESPEasy development via Patreon or buy us a coffee.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Mega

#91 Post by Shardan » 04 Apr 2017, 21:41

psy0rz wrote: 04 Apr 2017, 21:36
Shardan wrote: 04 Apr 2017, 18:45 Hello,

i've just noticed that the IR-library is disabled due to a bug.

When will it be back?


Regards
Shardan
it wasn't actually a bug. with the new IR library we just hit our IRAM limit it seems. (and there is only 2-3k of IRAM to start with)

I created an overview of the different plugin sizes: https://github.com/letscontrolit/ESPEas ... _sizes.txt

I'm currently trying to reduce memory usage of the various plugins, but we might have to disable some plugins by default in the next versions.

The question then is: which one(s) do we disable. only the ones that use IRAM make sense. in somecases the IRAM is used by libraries, like the neopixel libs. In that case we would have to disable all the neopixel plugins to get that memory back.
hm....
Make a kind of "choice board" so the users may choose the libs/plugins they need?
Maybe similiar to the choice of stablel/testing/dev we have nowadays in the yource.
At least for my purposes i don't need 70% of the plugins and i think it's same for many users.

Just i need the IR plugin for my remote controls ;)


Regards
Shardan
Regards
Shardan

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: ESP Easy Mega

#92 Post by tozett » 04 Apr 2017, 21:42

a system to select one/or a set of plugins would be fine.

[x] Plugin 01-function-RAMuse:0100
[x] Plugin 02-function-RAMuse:0125

...

or a parser for plugin [1,2,3-45,47...]
like in the rules...

...

or a memory set:
plugins with no memory/medium/full...

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#93 Post by psy0rz » 04 Apr 2017, 21:46

Currently you can "disable" plugins by just deleting them.

Shardan: the IR plugins have been re-enabled, but now ESPeasy doenst compile. The only way to compile it is to "disable" some plugins.

I could make a nice config-file where you can select your plugins.

Altough the point of ESPEasy is to be able to grab one binary firmware file, flash it, and then select the plugin from the build in webgui.
Please support ESPEasy development via Patreon or buy us a coffee.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: ESP Easy Mega

#94 Post by tozett » 04 Apr 2017, 21:47

psy0rz wrote: 04 Apr 2017, 21:39 Do you have any suggestions on how we can make things more clear, so that we can save other people some time?
A hint or url at the right places might help a lot: ...
Currently we're trying to get a stable and usable version 2.0.0 for everybody to work with.
i try to stay close to the new development for the coming days (except easter-holdays...,sorry),
and think over it. i have no spontaneus idea, but as soon as an idea arises, i'll come here up with it ...

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: ESP Easy Mega

#95 Post by tozett » 04 Apr 2017, 21:52

psy0rz wrote: 04 Apr 2017, 21:46 Altough the point of ESPEasy is to be able to grab one binary firmware file, flash it, and then select the plugin from the build in webgui.
i dont know if you a going this route,
but to my failing memory, i think, i suggested years ago
(for the quoted point above, to help simple "users" with all the specials of plugins),
something to have for plugins like this clickable webgui for nodemcu

https://nodemcu-build.com/

dont know, if "travis (?) can handle this, or if it is the right thing,
and overall its more work for someone to build...

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Mega

#96 Post by Shardan » 04 Apr 2017, 21:59

psy0rz wrote: 04 Apr 2017, 21:46 Currently you can "disable" plugins by just deleting them.

Shardan: the IR plugins have been re-enabled, but now ESPeasy doenst compile. The only way to compile it is to "disable" some plugins.

I could make a nice config-file where you can select your plugins.

Altough the point of ESPEasy is to be able to grab one binary firmware file, flash it, and then select the plugin from the build in webgui.
For sure it's the best way if you can make an "all in one" binary.
But let me be the devil's advocate:
As the ESP has limited ressources it will run into the same problem with every new plugin comming up.
So my suggestion would be a binary with the common plugins compiled in and a
kind of config file to get the other plugins in and some common ones out.

It should work on the Arduino IDE - my platform.io has died again after it was working for a while for no obvious reason.

A solution like the one suggested by tozett would be nice too but makes it difficult to test own changes in the code.

BTW, the actual suource code from github is not working anymore if you do a fresh install - it complains about
missing libraries even before starting compilation. Compiling exits with a

Code: Select all

D:\arduino-1.6.13-Test\arduino-1.6.13\portable\sketchbook\ESPEasy\_C002.ino:9:25: fatal error: ArduinoJson.h: No such file or directory
Regards
Shardan
Regards
Shardan

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#97 Post by psy0rz » 04 Apr 2017, 22:14

Yeah, you shouldnt use the link called "Source code". Github adds that automaticly and it misses the submodules.

Use the first link instead, called ESPEasy_v2.0.0-dev7.zip.

I'll see what i can do to remove or otherwise correct that source code file.

I'll ask the nodemcu-build guy if he wants to share his code or add ESPEasy to his site. (Its from Uncle Bob, he's an awesome dude)
Please support ESPEasy development via Patreon or buy us a coffee.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Mega

#98 Post by Shardan » 04 Apr 2017, 22:32

psy0rz wrote: 04 Apr 2017, 22:14 Yeah, you shouldnt use the link called "Source code". Github adds that automaticly and it misses the submodules.

Use the first link instead, called ESPEasy_v2.0.0-dev7.zip.

I'll see what i can do to remove or otherwise correct that source code file.

I'll ask the nodemcu-build guy if he wants to share his code or add ESPEasy to his site. (Its from Uncle Bob, he's an awesome dude)
I didn't use the "Source Code" link but downloaded using the "clone / download" to get the actual version... seems to create the same thing.
Maybe just add the actual libraries to the repository so that "download .zip" gives a complete actual version?

Anyways, i can't offer help with coding. My programming knowledge is completely outdated.
But if needed i could help with Wiki and HowTo's to keep the documentation up with development.

Regards
Shardan
Regards
Shardan

psy0rz
Normal user
Posts: 232
Joined: 02 Feb 2017, 12:12

Re: ESP Easy Mega

#99 Post by psy0rz » 04 Apr 2017, 22:42

Shardan wrote: 04 Apr 2017, 22:32
I didn't use the "Source Code" link but downloaded using the "clone / download" to get the actual version... seems to create the same thing.
Maybe just add the actual libraries to the repository so that "download .zip" gives a complete actual version?

Anyways, i can't offer help with coding. My programming knowledge is completely outdated.
But if needed i could help with Wiki and HowTo's to keep the documentation up with development.

Regards
Shardan
Ah that explains it: If you use the clone/download button it also creates an incomplete zipfile.

I could indeed just add the libraries instead of using submodules to work around these problems. I like the idea of submodules, but there are also many problems with them.

You can one of these things:

- Use the git commandline to actually clone it: git clone --recursive https://github.com/letscontrolit/ESPEasy.git
- Use the git desktop app like explained on the wiki to clone it for you.
- Use the latest release zip-file that conains everything (ESPEasy_v2.0.0-dev7.zip)
- Just use the sourcecode zip file you have and add the libraries from ESPEasy_v2.0.0-dev7.zip to it. However we just updated some libraries so i dont know if that works.

So yeah..maybe we just need to stop using submodules to get out of this mess for good. ;)
Please support ESPEasy development via Patreon or buy us a coffee.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESP Easy Mega

#100 Post by Shardan » 04 Apr 2017, 22:48

Would it work if one installs the dev7-zipfile and copy the newer libs and sources over the existing dev7-directories?
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests