General area when it fits no where else

Moderator: Mmiscool

User avatar
By Electroguard
#52057 @joeman2116, have you thought what you are trying to do? - May be best to either control your nodes resources locally with local (dht) sensors, or control the local resources remotely by another nodes sensors, but trying to control something with both local and remote sensors must inevitably result in one sensor conflicting with the other and probably causing unexpected results.

Regarding a PIR sensor node (for sending triggers to a Relay node), the 4 cheap commonly available PIR modules I tried all needed higher operating voltages than the ESP modules, so unless you can find a usable 3v PIR you're going to have to play around with additional supplies and level-matching. You'll also want to build in some sort of periodic watchdog facility to give confidence that your sensor nodes are still online. I was going to achieve this using a 'controller' node (possibly a voice announcer node) that periodically polled around whatever sensor nodes it was aware of.

Anyway, I'm glad you've noticed the EasyNet concept sufficient to see some of the possible potential, cos I don't remember anybody else voicing an interest.


@cicciocb - I hope you are keeping well matey... you are missed.


@Oldbod, from one old bod to another, I appreciate your comments, geezer. Yep, ESP_Basic is here to stay, and that's for sure. The problem is, it took months to progress V2 to the point where it was almost bug free and very usable as A24, but all that effort was effectively abandoned when V2 was frozen in deference to an immature and buggy V3, which also was not adequately documented.

I'm not knocking all the fantastic effort that has been put into every aspect of mmiscools marvellous ESP_Basic, but V3 is already up to Alpha twenty-something, and still largely without appropriate examples, and who knows when it all may be abandoned again in deference for a V4, or V40.

ESP_Basic could (and should) be a great software on great hardware to allow great connectivity usage, which was great incentive for developing something like EasyNet so that anyone and everyone could benefit from effective connectivity whatever their network knowledge, or lack of. Such an easy-to-use network capability could turn an enjoyable and interesting novelty for the inexperienced into a useful real-world interconnected reality, but it requires supported continuity and adequate documentation for that to happen.

Captain mmiscool is doing a marvellous job of keeping his ship afloat, but the limited manpower available from just 1 dedicated man obviously imposes limits on what is possible, and adding new facilities when people still don't have the info to be able to use the existing facilities just causes more and more unanswered questions and unknowns.

ESP_Basic already has excellent functionality and potential, but if it is to be taken seriously and become more than just an enjoyable experimental novelty, it needs its commands and instructions to be properly illuminated by adequate documentation plus corresponding usage examples, so people can use it without having to stumble around in the dark with unanswered questions.

If there is something important to know which isn't documented, the only one qualified to fill in the missing gaps is captain mmiscool, but I'm afraid he's long been stretched far too thin and busy with bug-hunting to be able to fill in all the missing gaps for everyone.

I am saying this from painful experience of having stumbled blindly around in the dark for many wasted weeks with unanswered questions trying to get even the most basic and essential in-built functionality (such as pin interrupts) to work. And this was after me doing the Driving Lessons, all stuff that I'd gleaned for myself, and in an effort to fill in much of the unknowns for others... but then the ship changed direction without warning and left me cast adrift.

So my down-heartedness is not about ESP_Basics failure to no longer run on 512k devices (because ESPs are cheap enough to buy whatever device is required), it's about stability and adequate documentation to allow it to be used effectively by all. I hope and expect that will happen eventually, but probably not any time soon.

Anyway, I'm pleased somebody else has noticed the EasyNet concept - all the required functionality was already all working B.T.W. So now it's a matter of developing the various nodes I need. I'm too occupied by other commitments at the moment (survival), but eventually I will need to progress things again for my own purposes, so I hope to be active again with it at some point.
User avatar
By joeman2116
#52064 Electroguard, -Thanks for inputs.....

My goal is to have one sensor esp which has a working dht - -Node210 (192.168.1.210) this is done

Current setup:
When Node210 is "tocool" its turns on a relay which powers a fan to draw more air from the central a/c - this works great and screen changes from light green to Light Blue when cooling fan assist is on)

Now to send a udp to a second Node146 (192.168.1.146 IP)
This should turn on a relay on Node146 to cause this node to go turn on its fan.
Then when Node210 returns to normal mode (cooling fan assist off) it sends a udp to Node 146 to turn its relay off as well.
The idea is one main controller(Node210) with a dht - controlling the second node146 (no dht)

Your code with a few mods :

[TOOCOLD]
wprint time()
wprint "<th><h2><b> A/C COOLING ASSIST FAN </h2></b></th>"
wprint "<BR><BR>"
wprint "<b> CURRENT Temp=</b>"
wprint dht.temp()
wprint "C"
wprint "<br>"
wprint "<BR><BR>"
if dht.temp() < settemp then wprint "FAN A/C COOLING ASSIST ON " else wprint "A/C OFF COOLING ASSIST OFF "
if dht.temp() < settemp then gosub [toohotcolor] else gosub [coolcolor]
wprint "<br>"
wprint "<BR><BR>"
wprint "Set Temp Trigger> "
'wprint "<BR><BR>"
button "<" [TEMP<]
wprint " "
wprint settemp
wprint " "
button ">" [TEMP>]
if dht.temp() < settemp and io(laststat,relaypin) == relaylogic then goto [RELAYON]
if dht.temp() > settemp and io(laststat,relaypin) <> relaylogic then goto [RELAYOFF]
wprint "<BR><BR><BR>"
button "Configuration" [CONFIG]
wait

New subs:

[toohotcolor] -
' blue background page color for cooling assist on
wprint "<head>"
wprint "<meta http-equiv='refresh'content='5;URL=/input?'>"
wprint "</head>"
wprint "<body bgcolor='#0088cc'>"
wprint "</body>"
udpwrite netIP & ".255", udpport, upper("Node146") & upper("ON") ' send "on" command to Node 146
return

[coolcolor]
'green page color
wprint "<head>"
wprint "<meta http-equiv='refresh'content='5;URL=/input?'>"
wprint "</head>"
wprint "<body bgcolor='#00b386''>"
wprint "</body>"
udpwrite netIP & ".255", udpport, upper("Node146") & upper("OFF")
return


Code changes color and turns on and off local Node210 fan but does not turn Node 146 fan On or Off..??

---------------------------------------------------------------------------------------------------------------------------


PIR:

I have seen a pir mod - well not really a mod - since the pir actually runs on 3v all one has to do is feed the pir with 3v from the esp to the other side of the pir onboard 3v regulator .

Joe
User avatar
By forlotto
#52072 I think I'll stick to the road less traveled for something this simplistic.


A Combination of wget and msgbranch allow you to do communications with all of your devices connected to the same network.

This was my solution I can control any number of devices with 1 esp8266 providing the rest of the devices are connected to my router as well you could setup interrupts as well so you could say if this pin is set high trigger this wget or trigger these things to happen etc...

Cool thing about this is UDP is not even needed but I almost did not want to say anything because I am learning another angle at it as well as I have not experimented much with UDP at all.

Anyhow enjoy please ignore this if it does not apply or I am somehow misunderstanding you folks continue the discussion by all means it is nice to see others discussing things I hate when things are dead and I start to see the echo of myself on the basic forums this thing is just way too cool to put down and we can all thank mmiscool for this.

V3 is fairly rock solid right now not many bugs left that I am aware of. HTML bug appears to be a goner thanks to me pointing out that he was replacing spaces with char 160 in the code but mainly thanks for mmiscool for his patience with me pointing out things that didn't appear as correct in his code with limited knowledge just scanning lines by eye. I would suggest everyone upgrade but as always do what ever one feels is best for them.

-forlotto
User avatar
By joeman2116
#52143 forlotto,

Nice to see you again. Your inputs are always welcome.

When V3 came out, I thought this is great, but then I found out that many things in v2 were not the same syntax and nearly all current V2 projects did not work in V3.....ouch.....

With my limited coding skills, I could not progress with V3 because there is / was limited or no examples.
No projects. I spent weeks trying to work on some simple html codes etc. The current V2 stuff appeared dead as v3 projects .. no solutions, at least none that I could solve and none that appeared in the forum.

As a very basic learner - V3 looks great but there is not enough info for me to solve the coding issues.
Then I came across Electroguards piece of coding and thought, great!, lots of examples on how to do various things. .... then i found it would not work in V3.....ouch....

His program, however, allows me to learn and work with and actually do various functions, kind of a foundation to build from and it make something work.

As powerful as V3 is, its actually poorer for the guy (me)who is trying to get his feet wet.
Don't get me wrong, it is far superior and a brilliant piece of work in its capabilities and future possibilities but not very useful for the beginner.

If there was even one program like Electroguards in V3, I would switch and be a permanent V3 fan!!

Unfortunately, I struggle with V3, with limited results but learn and apply with excellent real world results in V2.
Its obviously my limitation, not the software........
------------------------------------------------------------------------------------------------------
I like the sounds of the wget and msgbranch functions to control other Esp modules.... but no clue how to apply....


Thanks
-----
joe