ESP Easy Mega
Moderators: rtenklooster, Voyager, BertB, Stuntteam
Forum rules
You have entered the experimental forum, beware!!!
You have entered the experimental forum, beware!!!
Re: ESP Easy Mega / Unknown or restricted command with OLED
While the OLED Framed device works with R148 it does not accept http-commands with v. 2.0.0-dev8 when sending http://<ESP IP>/control?cmd=device,1,text
I get the reply "Unknown or restricted command" . Did the command syntax change or is it simply not functional yet? (sketch uploaded using platformio and all bin files using flasher).
I get the reply "Unknown or restricted command" . Did the command syntax change or is it simply not functional yet? (sketch uploaded using platformio and all bin files using flasher).
Re: ESP Easy Mega
did not test it, but the command should be:
Code: Select all
http://<ESP IP address>/control?cmd=OLEDFRAMEDCMD,<row>,<col>,<text>
Re: ESP Easy Mega
wrong...
only this will work:
only this will work:
Code: Select all
http://<ESP IP address>/control?cmd=OLEDFRAMEDCMD,on
http://<ESP IP address>/control?cmd=OLEDFRAMEDCMD,off
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
Re: ESP Easy Mega
Is there someboy who can help me, i'am trying to compile the newest github version using serveral Arduino IDE's , but everytime the same compile error :
Code: Select all
Sd2PinMap.h:510:2: error: #error Architecture or board not supported. term
Re: ESP Easy Mega / Unknown or restricted command with OLED
That feature was removed after migrating the playground version to the default branch, as it updates flash memory on every command that's being send. If this command would be run from some automated controller script, it would kill your ESP flash chip in a very short period of time. This part of the code is something that needs to be avoided in a plugin write command:starfish wrote: ↑13 May 2017, 08:23 While the OLED Framed device works with R148 it does not accept http-commands with v. 2.0.0-dev8 when sending http://<ESP IP>/control?cmd=device,1,text
I get the reply "Unknown or restricted command" . Did the command syntax change or is it simply not functional yet? (sketch uploaded using platformio and all bin files using flasher).
Code: Select all
LoadCustomTaskSettings(event->TaskIndex, (byte*)&deviceTemplate, sizeof(deviceTemplate));
strncpy(deviceTemplate[Line - 1], Parts[2].c_str(), sizeof(deviceTemplate[Line - 1]));
SaveCustomTaskSettings(event->TaskIndex, (byte*)&deviceTemplate, sizeof(deviceTemplate));
Re: ESP Easy Mega / Unknown or restricted command with OLED
hi Martinus, sounds reasonable - but do you think an automated script updating every 30 Minutes would considerably reduce flash lifetime? Isn´t Squix doing something similar with his weatherstation ? And shouldnt the framed OLED be completely removed from 2.0.0-devx in that case?Martinus wrote: ↑13 May 2017, 11:31That feature was removed after migrating the playground version to the default branch, as it updates flash memory on every command that's being send. If this command would be run from some automated controller script, it would kill your ESP flash chip in a very short period of time.
Re: ESP Easy Mega / Unknown or restricted command with OLED
Do not mix up the flash you know from SD-cards or such with the flash inside a ESP-xx.
I've just done a quick calculation. With writing the same storage cells every 30 minutes
the cells would be worn out after less then 100 days.....
"very quick" is a relative term. Compared to the possible life time of an ESP i think this is a short period.
Regards
Shardan
Regards
Shardan
Shardan
Re: ESP Easy Mega
@Shardan thanks for calculating - I didn´t take a deeper look into it but good you made it. No I really dont intend to replace the ESP 3 times a year
@psy0rz how can this be achieved? its a really good plugin and I´d not like to do without it.
![Knipoog ;)](./images/smilies/icon_e_wink.gif)
@psy0rz how can this be achieved? its a really good plugin and I´d not like to do without it.
Re: ESP Easy Mega
not sure if I understand what you mean - my application is sending changing data to the device by mqtt or html every 30 min or so - thus still needing memory to write to (not necessarily flash
![Knipoog ;)](./images/smilies/icon_e_wink.gif)
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
Re: ESP Easy Mega
Nobody who can help me with this ? I want to test the latest build on on of the Sonoff's etcthe cosmic gate wrote: ↑13 May 2017, 11:05 Is there someboy who can help me, i'am trying to compile the newest github version using serveral Arduino IDE's , but everytime the same compile error :Code: Select all
Sd2PinMap.h:510:2: error: #error Architecture or board not supported. term
Re: ESP Easy Mega
Can't test the source on Arduino-IDE at the moment as i'm @Job.the cosmic gate wrote: ↑16 May 2017, 09:38Nobody who can help me with this ? I want to test the latest build on on of the Sonoff's etcthe cosmic gate wrote: ↑13 May 2017, 11:05 Is there someboy who can help me, i'am trying to compile the newest github version using serveral Arduino IDE's , but everytime the same compile error :Code: Select all
Sd2PinMap.h:510:2: error: #error Architecture or board not supported. term
Looks like a library or the ESP-Core are missing or wrong Version.
Did you download the full .zip file from github?
All libraries copied to the IDE, ESP core installed etc?
IDE is set up according to the wiki ? ( https://www.letscontrolit.com/wiki/inde ... are_Upload )
Due to my experiences some tings may lead into issues, for example same Arduino IDE
used for Arduino and ESP in parallel (might work with taking care of dividing libraries etc)
Please follow the howto in the wiki closely.
Regards
Shardan
Regards
Shardan
Shardan
Re: ESP Easy Mega
Hello again,
i've just tested with a fresh, clean install of the arduino IDE and it compiles without errors.
Regards
Shardan
i've just tested with a fresh, clean install of the arduino IDE and it compiles without errors.
Regards
Shardan
Regards
Shardan
Shardan
Re: ESP Easy Mega
I can confirm that. Its essential to do portable install - the above mentioned tutorial is perfect. In addition I´d like to point out, that it is good to delete ALL remainings from previous non-portable installations (e.g. in windows user directory) - Arduino IDE found and even used a forgotten library there.
I also made a backup copy of that clean portable install. And for every new sketch I am creating a new portable install by copying this backup to another differently named directory. (ah and something obvious: dont make a windows file suffix association between arduino.exe and .ino endings - arduino.exe should not start when clicking on a .ino - file. Always start arduino.exe first from inside the clean install and select the .ino file from file menu).
Re: ESP Easy Mega
A backup of the portable install is a good idea.starfish wrote: ↑17 May 2017, 11:29 I can confirm that. Its essential to do portable install - the above mentioned tutorial is perfect. In addition I´d like to point out, that it is good to delete ALL remainings from previous non-portable installations (e.g. in windows user directory) - Arduino IDE found and even used a forgotten library there.
I also made a backup copy of that clean portable install. And for every new sketch I am creating a new portable install by copying this backup to another differently named directory. (ah and something obvious: dont make a windows file suffix association between arduino.exe and .ino endings - arduino.exe should not start when clicking on a .ino - file. Always start arduino.exe first from inside the clean install and select the .ino file from file menu).
One point should be mentioned with the Arduino IDE installing tutorial:
Download the .zip-File, not the .exe!
Just unpack it and follow the tutorial.
Regards
Shardan
Regards
Shardan
Shardan
Re: ESP Easy Mega
i just updated to dev 9 with OTA, it worked.
but: i used #systime# in my LCD1602 display to view the time, now it shows the online time of the controller.
does some variables changed?
but: i used #systime# in my LCD1602 display to view the time, now it shows the online time of the controller.
does some variables changed?
Re: ESP Easy Mega
Updated today to DEV9, and DHT22 shows 'nan' now in device list. Reverted to DEV8 and all is ok again.
Hope we don't have to wait over a month for the next update to fix that....
![Bedroeft :(](./images/smilies/icon_e_sad.gif)
Re: ESP Easy Mega
just did a quickcheck on a breadboard with a nodemcu and a LCD2004 - time works fine with that.
Did you activate NTP?
The only thing i noticed is that showing seconds with a time display refreshing every minute gives not too much sense.
Regards
Shardan
Last edited by Shardan on 28 May 2017, 20:45, edited 2 times in total.
Regards
Shardan
Shardan
Re: ESP Easy Mega
@Shardan I think, this was the wrong reply to.
Your answer fits to one post earlier....
![Mr. Groen :mrgreen:](./images/smilies/icon_mrgreen.gif)
Re: ESP Easy Mega
i'll update my own dht22 tomorrow to see whats going on.
i hope that in the future we can prevent regressions like these with The Rig: https://www.letscontrolit.com/forum/vie ... =18&t=3141
i hope that in the future we can prevent regressions like these with The Rig: https://www.letscontrolit.com/forum/vie ... =18&t=3141
Re: ESP Easy Mega
@psy0rz I see now that krikk was fiddling at DHT in DEV9. Maybe he broke it....
krikk (13):
....
addHelpButton Function and a new Help Button for the Rules and Hardware Page (#282)
DHT plugin fix 'NaN' issue (#285)
i don't like hidden features, added a json button to the tools menu, next to the advanced button (#292)
....
krikk (13):
....
addHelpButton Function and a new Help Button for the Rules and Hardware Page (#282)
DHT plugin fix 'NaN' issue (#285)
i don't like hidden features, added a json button to the tools menu, next to the advanced button (#292)
....
Re: ESP Easy Mega
mqtt update in framed oled still not working ... but found a video tutorial elsewhere showing the use of MQTT-import device together with framed oled. Is this recommended?
Re: ESP Easy Mega
Thanks for the fast solution. It seems to work again for now. But I have one wish: In the main view table please change the build number notation from 20000 to 2.0.0-10. With my up to 20 Sonoffs in use this would be helpful to see what module is up to date and which one not. ![Knipoog ;)](./images/smilies/icon_e_wink.gif)
![Knipoog ;)](./images/smilies/icon_e_wink.gif)
Re: ESP Easy Mega
i would love to..but that number is only 16 bits. so it can be 65535 max. maybe its better if we change it to the builddate instead of version. we cant just make it more bits since that is part of the protocol. (wouldnt be backwards compatible)
Re: ESP Easy Mega
Ok.... Must it be numeric? And when you make it alphanumeric? So it is a text variable....
Re: ESP Easy Mega
Hi guys
I have a "little" request....
is there a possibility to implement a password (root vs user) switch between full control of the Espeasy ( all settings ) and lets say just main settings. I have installed for a couple of my friends the wemos d1 and BME280 sensors around their houses and some of them are poking around the settings and messing with configuration, so I would like to limit them to only be able to set some setting ( SSID, SSID password, etc because some are not really found of giving me their wifi passwords ).
Thanks...
BR
I have a "little" request....
is there a possibility to implement a password (root vs user) switch between full control of the Espeasy ( all settings ) and lets say just main settings. I have installed for a couple of my friends the wemos d1 and BME280 sensors around their houses and some of them are poking around the settings and messing with configuration, so I would like to limit them to only be able to set some setting ( SSID, SSID password, etc because some are not really found of giving me their wifi passwords ).
Thanks...
BR
Re: ESP Easy Mega
If we change it, the older nodes wouldn't be able to display it correctly.
Re: ESP Easy Mega
Ok, another idea: And when we add a new variable for a small 'sub-build' number up to 255? The output could be like build+'-'+sub_build (20000-10). So it would be compatible to the older nodes, because the orig. build number is not touched.
Or, the easiest way, we take the last 2 digits from the actual build number as dev version (e.g. 20010). The variable could stay numeric and the new builds convert it to alphanumeric (e.g. 2.0.0-dev10). Looks not so bad, I mean....![Knipoog ;-)](./images/smilies/icon_e_wink.gif)
Or, the easiest way, we take the last 2 digits from the actual build number as dev version (e.g. 20010). The variable could stay numeric and the new builds convert it to alphanumeric (e.g. 2.0.0-dev10). Looks not so bad, I mean....
![Knipoog ;-)](./images/smilies/icon_e_wink.gif)
Re: ESP Easy Mega
The build number is internally used to do a numeric compare so it would be inconvenient to have this as a string.
It was designed that the build number is increased with every individual commit to the source repository so that we can distinguish between each minor changed version.
So having the same '20000' build number for different commits was not planned.
(the mechanism originates from the time when we were using SVN where the Rxxx number is automatically increased by the repository on each commit)
It was designed that the build number is increased with every individual commit to the source repository so that we can distinguish between each minor changed version.
So having the same '20000' build number for different commits was not planned.
(the mechanism originates from the time when we were using SVN where the Rxxx number is automatically increased by the repository on each commit)
Re: ESP Easy Mega
As I wrote in a previous post, it would be nice to see different dev-version numbers in the main view table. It make it much easier to see what ESP is not up to date. This is since Mega version. Your versions increased this number with each release and I miss this now.... ![Bedroeft :-(](./images/smilies/icon_e_sad.gif)
![Bedroeft :-(](./images/smilies/icon_e_sad.gif)
Re: ESP Easy Mega
Hello all,
easy way for numbering:
For this a 5 digit number can be used: 200 for version 2.0.0,
the two digits at the end 00-99 could be used for development stages.
This keeps compatibility with old devices, disadvantage is the limited release versions numbering range.
A more difficult but more flexible way:
Use two variables. Keep the "20000" for compatibility with older devices
and a bigger numbering range for subversions.
Add a second variable for the dev-stage number.
The disatvantage: Old devices can't show the dev-stage number...
well, i could live with that.
Regards
Shardan
easy way for numbering:
For this a 5 digit number can be used: 200 for version 2.0.0,
the two digits at the end 00-99 could be used for development stages.
This keeps compatibility with old devices, disadvantage is the limited release versions numbering range.
A more difficult but more flexible way:
Use two variables. Keep the "20000" for compatibility with older devices
and a bigger numbering range for subversions.
Add a second variable for the dev-stage number.
The disatvantage: Old devices can't show the dev-stage number...
well, i could live with that.
Regards
Shardan
Regards
Shardan
Shardan
Re: ESP Easy Mega
@Shardan: That is nearly the same what I posted in #184...
Re: ESP Easy Mega
perhals we should do that. when we're finally at 20900 (v2.0.9) or something, it might be ok to break compatibilty and fix it properly. by that time everyone should be running version 2.
Re: ESP Easy Mega
Hello all,
i miss the Checkbox "Send to Controller" for the Device Ina219.
Is this planned?
Greetings
Jotoc
i miss the Checkbox "Send to Controller" for the Device Ina219.
Is this planned?
Greetings
Jotoc
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: ESP Easy Mega
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
![Idee :idea:](./images/smilies/icon_idea.gif)
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
![Idee :idea:](./images/smilies/icon_idea.gif)
![Idee :idea:](./images/smilies/icon_idea.gif)
![Idee :idea:](./images/smilies/icon_idea.gif)
Re: ESP Easy Mega
Thank you
I will waiting.
Jotoc
I will waiting.
Jotoc
Re: ESP Easy Mega
we know: https://github.com/letscontrolit/ESPEasy/issues/321
it might be fixed already, try compiling the current github sources. if its fixed i can release dev11.
Re: ESP Easy Mega
did flash this software on my Sonoff dual.
Looks great, only cannot get the switches find, what gpio are they use.
I try all the gpio pins...
Switch them with a dummy sensor in Domoticz. [ like my other esp, with Espaeasy ]
Only no switching relay...
Is there something else i need to do?
And what are the other pins i can use for a DHT?
Like to hear
Thanks already
Looks great, only cannot get the switches find, what gpio are they use.
I try all the gpio pins...
Switch them with a dummy sensor in Domoticz. [ like my other esp, with Espaeasy ]
Only no switching relay...
Is there something else i need to do?
And what are the other pins i can use for a DHT?
Like to hear
Thanks already
Re: ESP Easy Mega
Hi, after a while I decided to start experiment with ESPEasy mega or 2.0.x.x.
First thingh I did it is to download dev10 package, flash an ESP8266-12 with the dev-4096 BIN file and all was ok, I tested it with different sensors, experiment the new features, no big issues...
Then due to the fact I realize _P038 Neopixel plugin is broken in the DEV I setup ArduinoIDE to compile ESPEasyMega in order to play with the other NeoPixel plugins (_117 and _121), I succesfully compiled and uploaded to the same ESP8266 but it reboots as plain new, I've lost all settings I've saved in previous days (no wifi ID/PW, no rules, no devices, nothing!!).
I compiled it as 4M(3M SPIFF) as I've always compiled V148 so I woudl like to know where I'm doing wrong.
As a further test I relfahsed the dev-4096 BIN and again, all settings losts! So definitely I'm doing somethign wrong in the way I compile the source from my Arduino IDE.
Any clues??
First thingh I did it is to download dev10 package, flash an ESP8266-12 with the dev-4096 BIN file and all was ok, I tested it with different sensors, experiment the new features, no big issues...
Then due to the fact I realize _P038 Neopixel plugin is broken in the DEV I setup ArduinoIDE to compile ESPEasyMega in order to play with the other NeoPixel plugins (_117 and _121), I succesfully compiled and uploaded to the same ESP8266 but it reboots as plain new, I've lost all settings I've saved in previous days (no wifi ID/PW, no rules, no devices, nothing!!).
I compiled it as 4M(3M SPIFF) as I've always compiled V148 so I woudl like to know where I'm doing wrong.
As a further test I relfahsed the dev-4096 BIN and again, all settings losts! So definitely I'm doing somethign wrong in the way I compile the source from my Arduino IDE.
Any clues??
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
Re: ESP Easy Mega
Hello DylantjeDylantje wrote: ↑09 Jun 2017, 20:44 did flash this software on my Sonoff dual.
Looks great, only cannot get the switches find, what gpio are they use.
I try all the gpio pins...
Switch them with a dummy sensor in Domoticz. [ like my other esp, with Espaeasy ]
Only no switching relay...
Is there something else i need to do?
And what are the other pins i can use for a DHT?
Like to hear
Thanks already
Sorry to say, but the sonoff dual does not work this way.
The GPIO's are not connected to the relays in a direct way.
They use a little chip to control the relays, the chip is driven by a serial data protocol from the ESP.
As far as i know the "dual" is actually not supported by ESPEasy.
Regards
Shardan
Regards
Shardan
Shardan
Re: ESP Easy Mega
Hi papparone,
See this page in the Wiki: https://www.letscontrolit.com/wiki/inde ... are_Upload
"For 4M boards: Select 1M SPIFF"
(I have to say I don't fully understand why this is. My first thought, like you, was to use 3M SPIFFS. But I used the recommendation above and it worked.)
HTH
Andrew
See this page in the Wiki: https://www.letscontrolit.com/wiki/inde ... are_Upload
"For 4M boards: Select 1M SPIFF"
(I have to say I don't fully understand why this is. My first thought, like you, was to use 3M SPIFFS. But I used the recommendation above and it worked.)
HTH
Andrew
Re: ESP Easy Mega
Thanks Andrew, honestly I did not look the wiki, just compiled as I used to do in R148 and beforeAndrewJ wrote: ↑15 Jun 2017, 19:33 Hi papparone,
See this page in the Wiki: https://www.letscontrolit.com/wiki/inde ... are_Upload
"For 4M boards: Select 1M SPIFF"
(I have to say I don't fully understand why this is. My first thought, like you, was to use 3M SPIFFS. But I used the recommendation above and it worked.)
HTH
Andrew
![Lach :)](./images/smilies/icon_e_smile.gif)
G.
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
Re: ESP Easy Mega
I have the same issue here, so I tried some other firmware (Espruna) and with this firmware the dual is functioning perfect . So hopefully somebody can use this Espruna sketch to build a pluggin for espeasy. This also because of that I don't want to change everything to MQTT just for using the sonoff dualShardan wrote: ↑15 Jun 2017, 19:23Hello DylantjeDylantje wrote: ↑09 Jun 2017, 20:44 did flash this software on my Sonoff dual.
Looks great, only cannot get the switches find, what gpio are they use.
I try all the gpio pins...
Switch them with a dummy sensor in Domoticz. [ like my other esp, with Espaeasy ]
Only no switching relay...
Is there something else i need to do?
And what are the other pins i can use for a DHT?
Like to hear
Thanks already
Sorry to say, but the sonoff dual does not work this way.
The GPIO's are not connected to the relays in a direct way.
They use a little chip to control the relays, the chip is driven by a serial data protocol from the ESP.
As far as i know the "dual" is actually not supported by ESPEasy.
Regards
Shardan
Who is online
Users browsing this forum: No registered users and 2 guests