Page 2 of 5

Re: ESP made easy

Posted: Tuesday 08 September 2015 19:06
by Toni
Would it be possible to add urldecode for each parameter in the function 'handle_config' in WebServer.ino? For example, my SSID includes a space, and now in the config it's set as 'part1+part2' instead of 'part1 part2'. I'd be happy to contribute if it was a Github project :)

Re: ESP made easy

Posted: Tuesday 08 September 2015 19:07
by ThinkPad
Toni wrote:Would it be possible to add urldecode for each parameter in the function 'handle_config' in WebServer.ino? For example, my SSID includes a space, and now in the config it's set as 'part1+part2' instead of 'part1 part2'. I'd be happy to contribute if it was a Github project :)
Good question, my SSID also has a space, and it seems that it can't connect due to that (it says in AP mode).

Re: ESP made easy

Posted: Tuesday 08 September 2015 19:16
by Toni
The space issue is actually pretty simple, but generally all parameters should run through the urldecode. Just add the 'ssid.replace' into 'handle_config':

Code: Select all

    strcpy(Settings.Password, tmpstring);
    ssid.replace("+", " ");
    ssid.toCharArray(tmpstring, 26);
    strcpy(Settings.WifiSSID, tmpstring);

Re: ESP made easy

Posted: Tuesday 08 September 2015 20:55
by Mediacj
Yes that would be a good addition.

My password has two # in it and they are changed to %23%23 with the result that it can't acces my Wifi router anymore. So I have to reset it to get it working again.

Re: ESP made easy

Posted: Wednesday 09 September 2015 10:42
by rtenklooster
R18 is available for download.
Issues with special characters in SSID, WPA, password, etc are fixed in this release.

Please take the download zipfile from sourceforge as we're currently migrating the ESP Easy code tree to github. (and github is not up-to-date yet)

https://sourceforge.net/projects/espeasy/files

Re: ESP made easy

Posted: Wednesday 09 September 2015 23:01
by tweaker
rtenklooster wrote:
tweaker wrote:I have two ESP unit's running now and I expected to see these units to appear in the node list on each ESP unit with their IP's, but that list is still empty.
The screenshot on sourceforge shows a list of nodes, how to get this?
You should fill-in te UDP port you want to use. As soon as that's filled in they notify eachother. Note: it may require a reboot of the units.
Which port can I use for this ? I just tried 123 and it does work, but does it matter?

Re: ESP made easy

Posted: Thursday 10 September 2015 17:12
by mvdbro
tweaker wrote:
rtenklooster wrote:
tweaker wrote:I have two ESP unit's running now and I expected to see these units to appear in the node list on each ESP unit with their IP's, but that list is still empty.
The screenshot on sourceforge shows a list of nodes, how to get this?
You should fill-in te UDP port you want to use. As soon as that's filled in they notify eachother. Note: it may require a reboot of the units.
Which port can I use for this ? I just tried 123 and it does work, but does it matter?
In theory you could use any port between 1-65535, but you should avoid conflicts with other known ports. The ESP will periodically broadcast messages on this port ( to destination ip = 255.255.255.255). So any device listening on the same port will also get these messages. So if you would use 514, your syslog server will get busy with all this traffic. So avoid well known ports for this. (I use 65500)

Re: ESP made easy

Posted: Thursday 10 September 2015 23:59
by andreo
Pulse counters working perfectly. I used some incremental counters to show the various values but is it possible to change the chart interval time from 1 hour to 1 minute? so i get a more detailed graph of the energy usage.

Re: ESP made easy

Posted: Friday 11 September 2015 10:00
by maluko
andreo wrote:Pulse counters working perfectly. I used some incremental counters to show the various values but is it possible to change the chart interval time from 1 hour to 1 minute? so i get a more detailed graph of the energy usage.
i think its because is KW/h and not KW/m, every inverter have a 1h of diference, and not live chart.

Re: ESP made easy

Posted: Sunday 13 September 2015 14:50
by rtenklooster
In case anyone is using pir sensors as actuators for domoticz, we have made a small subdevice.
It's called smart pir. This enables you to control a switch using a pir sensor. It is usable for dimmers and switches, lights dimmers don't get in pende modus because you can select the dimmer and add a value.
You can choose if - and how long the light has to remain on after last motion ended.
Of course this is all easily configurable using your web interfase:
Image
The code is currently being tested and will be available coming week.

Re: ESP made easy

Posted: Sunday 13 September 2015 19:02
by aiolos
Nice work. This weekend I tried ESPeasy on a ESP-12 board with only a ds18b20 temperature sensor. It works like a charm. I was already wondering if there would be a pir sensor available. I will try it when it comes available.

Re: ESP made easy

Posted: Sunday 13 September 2015 20:01
by tweaker
aiolos wrote:Nice work. This weekend I tried ESPeasy on a ESP-12 board with only a ds18b20 temperature sensor. It works like a charm. I was already wondering if there would be a pir sensor available. I will try it when it comes available.
Cool stuff again. But hey, if you don't want to wait for the new release, you can also get it from github
https://github.com/ESP8266nu/ESPEasy/tree/test

Re: ESP made easy

Posted: Sunday 13 September 2015 20:11
by tweaker
There's more going on. Looks like we can try things running on lipo with deep sleep support. Better follow this topic http://www.esp8266.nu/forum/viewtopic.php?f=6&t=55#p877

Re: ESP made easy

Posted: Sunday 13 September 2015 21:48
by rtenklooster
tweaker wrote:
aiolos wrote:Nice work. This weekend I tried ESPeasy on a ESP-12 board with only a ds18b20 temperature sensor. It works like a charm. I was already wondering if there would be a pir sensor available. I will try it when it comes available.
Cool stuff again. But hey, if you don't want to wait for the new release, you can also get it from github
https://github.com/ESP8266nu/ESPEasy/tree/test
Yes, there is a test branche, but using this is at own risk. So if you're facing problems with those releases, there is no support.
The files in test are far from finished. So you can't say I didn't warned you :)

Re: ESP made easy

Posted: Tuesday 15 September 2015 19:14
by jendrush
Is Esp-01 supported? It has 3GPIO, and could be used for simple tasks.

Re: ESP made easy

Posted: Tuesday 15 September 2015 20:32
by rtenklooster
jendrush wrote:Is Esp-01 supported? It has 3GPIO, and could be used for simple tasks.
It is.

Re: ESP made easy

Posted: Wednesday 16 September 2015 7:46
by Justintime
Nice Project...

I have managed to get the Pulse counter working.
At the moment i have Mysensors running which can show the actual power consumption.

Is it still in the roadmap to implement this? Or has it something to do with Domoticz counter?

Re: ESP made easy

Posted: Thursday 17 September 2015 16:29
by tweaker
Justintime wrote:Nice Project...

I have managed to get the Pulse counter working.
At the moment i have Mysensors running which can show the actual power consumption.

Is it still in the roadmap to implement this? Or has it something to do with Domoticz counter?
I think ESP Easy use the incremental counter and it seems that this one does not support actual power value

How does this work with your mysensors device? I guess it should keep track of counting locally on the device. What happens if power is disconnected? Does it start at zero or does it store the data somehow? Maybe this information could help getting it working for the ESPEasy.

Re: ESP made easy

Posted: Thursday 17 September 2015 16:42
by Justintime
tweaker wrote:
Justintime wrote:Nice Project...

I have managed to get the Pulse counter working.
At the moment i have Mysensors running which can show the actual power consumption.

Is it still in the roadmap to implement this? Or has it something to do with Domoticz counter?
I think ESP Easy use the incremental counter and it seems that this one does not support actual power value

How does this work with your mysensors device? I guess it should keep track of counting locally on the device. What happens if power is disconnected? Does it start at zero or does it store the data somehow? Maybe this information could help getting it working for the ESPEasy.
Yes esp uses the incremental counter.

The Mysensors node keeps track of the counting and does the math.

Also when the power is off Domoticz. The Mysensors node keeps counting. When domoticz is online he will update the counter... Off course not set on specific time.

Re: ESP made easy

Posted: Thursday 17 September 2015 18:16
by tweaker
Justintime wrote:Yes esp uses the incremental counter.

The Mysensors node keeps track of the counting and does the math.

Also when the power is off Domoticz. The Mysensors node keeps counting. When domoticz is online he will update the counter... Off course not set on specific time.
But I was actually referring to the situation where you power off the Mysensor node. Does it store the counter value in EEPROM or what? If so, would that not wear out eeprom in a short time?