jeanrocco / Espressiot_Fritzing

Fritzing views of my version of Espressiot
0 stars 0 forks source link

Autonomous portable temperature display - Code available? #1

Open VastSky opened 4 years ago

VastSky commented 4 years ago

Hello jeanrocco,

Your display solution sounds great!

Are you running a MQTT broker to that the autonomous portable temperature display subscribes to, or does the ESP8266 subscribe directly to the MQTT stream?

FYI - I found a great free MQTT tool: http://mqtt-explorer.com/

Wondering if you might publish your ESP8266 code used for the display so I might attempt to make it work for myself.

Thanks,

Ed

jeanrocco commented 4 years ago

Hello Ed,

On Aug 5, 2019, at 03:15, VastSky notifications@github.com wrote:

Hello jeanrocco,

Your display solution sounds great!

Are you running a MQTT broker to that the autonomous portable temperature display subscribes to, or does the ESP8266 subscribe directly to the MQTT stream?

I already had (have) an MQTT broker; “ Mosquitto”, running for "Home Assistant" on a dedicated Raspberry Pi. The ESP8266 running Espressiot publishes to topic "ESPressIoT/temp” and the other ESP8266 subscribes to it.

FYI - I found a great free MQTT tool: http://mqtt-explorer.com/ http://mqtt-explorer.com/

I’m running MQTT.fx.app on a Mac now and then, your’s looks interesting though. I normally use the command line mosquitto_pub and mosquitto_sub . Wondering if you might publish your ESP8266 code used for the display so I might attempt to make it work for myself.

I will do that as soon as I get back home, after Aug. the 14th, unfortunately I cannot "wake on lan" the machine where the code is right now. I will post how I modified Espressiot to slow down the publish to 1 sec. too. I’m using the standard https://github.com/olikraus/u8g2 https://github.com/olikraus/u8g2 library. So till then !

Cheer ! jrb.

Ed

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jeanrocco/Espressiot_Fritzing/issues/1?email_source=notifications&email_token=AC764ZSPR3EKUGEWLW5WKOTQC55L7A5CNFSM4IJGWUM2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDITH3A, or mute the thread https://github.com/notifications/unsubscribe-auth/AC764ZVL2MO2M623ZKVF42TQC55L7ANCNFSM4IJGWUMQ.

jeanrocco commented 4 years ago

Hello ED,

Ok I uploaded my code to github, it is very crude but it works. I will try to clean it when I get home.

jrb.

On Aug 5, 2019, at 03:15, VastSky notifications@github.com wrote:

Hello jeanrocco,

Your display solution sounds great!

Are you running a MQTT broker to that the autonomous portable temperature display subscribes to, or does the ESP8266 subscribe directly to the MQTT stream?

FYI - I found a great free MQTT tool: http://mqtt-explorer.com/ http://mqtt-explorer.com/ Wondering if you might publish your ESP8266 code used for the display so I might attempt to make it work for myself.

Thanks,

Ed

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jeanrocco/Espressiot_Fritzing/issues/1?email_source=notifications&email_token=AC764ZSPR3EKUGEWLW5WKOTQC55L7A5CNFSM4IJGWUM2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDITH3A, or mute the thread https://github.com/notifications/unsubscribe-auth/AC764ZVL2MO2M623ZKVF42TQC55L7ANCNFSM4IJGWUMQ.

jeanrocco commented 4 years ago

Hello Ed., are you receiving this message ???

I just saw that our friend Schm1tz1 locked the "Non blocking oled driver" repository where we were chatting...

About your MQTT broker question, as I explain in my Espressiot_Fritzing's README, I'm using an already existing broker/server running on a Raspberry pi. This was the easiest way for me since I'm running a Docker Home_Assistant app. (https://www.home-assistant.io/docs/installation/docker/) on that Raspberry pi, which contains the Mosquitto MQTT broker.

I just quickly glanced at some Google'd results and found out at "https://github.com/martin-ger/uMQTTBroker/tree/master/examples/uMQTTBrokerSampleOOFull" an interesting MQTT Arduino ESP8266 server that might work for you. I suppose you could just set up this server on the Oled Display ESP8266, since it is not very busy... and use it's built in MQTT client to subscribe to the local host 127.0.0.1 temperature topic. The other ESP8266 running Espressiot_PID would simply have to connect to this broker(server) as it currently does now for 192.168.1.120, in my case.

If you fell like doing this, let me know, I might be interested by this since it would be simpler to run the 2 ESP8266 without implying a third MQTT broker.

.... now that I think about it, when I'll be finished with my Rancillio project, I might look more closely at that... that is an interesting solution... we'll keep in touch then.

jrb

VastSky commented 4 years ago

Hey jeanrocco,

ed.rilkoff@ (google's popular email platform) I thought we might leave Github for conversation.

I recently began to look ESP to ESP communication without the need for a router. ESP-now may do this.

https://forum.arduino.cc/index.php?topic=551310.0

https://www.reddit.com/r/arduino/comments/azlh6u/just_played_around_with_espnow_a_little_its/

I am going to look at using a ESP8266 as a MQTT broker. but, for now I must take care of home maintenance before poor weather arrives.

I have also been spending too much time trying to get a 6 hour 3D print in PETG to succeed. It is torturing me!

Ed

VastSky commented 3 years ago

Hey jeanrocco,

ed.rilkoff@ (google's popular email platform) I thought we might leave Github for conversation.

I recently began to look ESP to ESP communication without the need for a router. ESP-now may do this.

https://forum.arduino.cc/index.php?topic=551310.0

https://www.reddit.com/r/arduino/comments/azlh6u/just_played_around_with_espnow_a_little_its/

I am going to look at using a ESP8266 as a MQTT broker. but, for now I must take care of home maintenance before poor weather arrives.

Ed

Hello jeanrocco,

I finally set up mosquito on my RPi, and built your autonomous portable temperature display. Everything works FANTASTIC!! The response of the web interface is also much faster when accessing the IP of the EspressIoT - did you fix this?

I also updated to us your tuning with the "MaxUpperT=0, MaxLowerT=0" changes.

Would you have PID settings for the Miss Silvia that you like? I would love to try them.

Would you have any recommendations to use the PID tuning?

Thanks! - Ed

jeanrocco commented 3 years ago

Hello Ed,

I haven't played with that code for awhile, I got bored by instabilities, and finally bought a Dual boiler Breville all pid controlled... had a good price (1000 can$) last year I couldn't resist ... not as solid as the Rancillio, but makes an excellent coffee.

So the whole arduino pid just now sits in the forgotten pile... on my desk. I spend my time on " Leaf firewall " development which gives you a good firewall.

Ok my best wishes for 2021,

jrb.

On Sun, Jan 24, 2021, 17:19 VastSky, notifications@github.com wrote:

Hey jeanrocco,

ed.rilkoff@ (google's popular email platform) I thought we might leave Github for conversation.

I recently began to look ESP to ESP communication without the need for a router. ESP-now may do this.

https://forum.arduino.cc/index.php?topic=551310.0

https://www.reddit.com/r/arduino/comments/azlh6u/just_played_around_with_espnow_a_little_its/

I am going to look at using a ESP8266 as a MQTT broker. but, for now I must take care of home maintenance before poor weather arrives.

Ed

Hello jeanrocco,

I finally set up mosquito on my RPi, and built your autonomous portable temperature display. Everything works FANTASTIC!! The response of the web interface is also much faster when accessing the IP of the EspressIoT - did you fix this?

I also updated to us your tuning with the "MaxUpperT=0, MaxLowerT=0" changes.

Would you have PID settings for the Miss Silvia that you like? I would love to try them.

Would you have any recommendations to use the PID tuning?

Thanks! - Ed

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jeanrocco/Espressiot_Fritzing/issues/1#issuecomment-766449259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC764ZSCCVDDCW4T73NJZGLS3SMFTANCNFSM4IJGWUMQ .

VastSky commented 3 years ago

Hey jeanrocco,

I agree that PID on a the miss Silvia single boiler will never be successful, but it is still an improvement over the mechanical thermostat. I enjoyed going through your contributions to the EspressIoT.

Glad you are enjoying the Breville. It is nice to have something that just works!

All the best,

Ed

jeanrocco commented 3 years ago

Hello Ed,

Just not to let you believe I abandoned the ESP’s and Raspberry PIs, I still play with them, but a bit less. For the ESPs (esp8266 and esp32) I was happy to have found epressiot's application since right now, I have not found further interesting projects for them. My fondness for the PIs is still there, but I discarded it as a reliable platform, I now use a APU2E4 ( any APU2.. ) PC engine for my home assistant platform. This Soc is rock solid and never crashes. I run Ubuntu server on it and the Docker version of Home Assistant. I was doing the same last year with a PI but it crashed while I was vacationing down south (Florida :-)… and that’s a No No !!! Those APU2 are a very good inexpensive alternative compared to the Intel NUCs (pricy pricy ) and other Chinese equivalents that don’t necessarily have the encryption AES-NI hardware.

I gave you a hint of my current interest in the LEAF firewall, which runs here on a APU2C2 as my home firewall. If you look at https://bering-uclibc.zetam.org/wiki/Main_Page https://bering-uclibc.zetam.org/wiki/Main_Page at the version 5, 6 and 7 of the documentation you will have a glimpse at what I’m talking about. I’m currently, slowly, working on https://bering-uclibc.zetam.org/wiki/Bering-uClibc_7.x_-_User_Guide https://bering-uclibc.zetam.org/wiki/Bering-uClibc_7.x_-_User_Guide documentation, and if you read the chapters involving the PIs, you will see that installing a LEAF OS on one makes it a very reliable platform since everything from then on runs in RAM, no failure prone writes to the SD card anymore … You see there are still hopes for the PIs used that way :-). As a matter of fact I couldn’t resist buying myself a "PI Zero W", at 12.95$ Can. even if I have no use for it :-) … I still can’t believe this 10$ (UStiny board holds a full fledge computer…

Ok so have fun with your projects, and I wish you the very best !

jrb.

On Jan 25, 2021, at 13:52, Jean-Roch Blais blaisjeanroch@gmail.com wrote:

On Jan 24, 2021, at 22:31, VastSky notifications@github.com wrote:

Hey jeanrocco,

I agree that PID on a the miss Silvia single boiler will never be successful, but it is still an improvement over the mechanical thermostat. I enjoyed going through your contributions to the EspressIoT.

Glad you are enjoying the Breville. It is nice to have something that just works!

All the best,

Ed

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jeanrocco/Espressiot_Fritzing/issues/1#issuecomment-766516714, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC764ZWO4W7PZ75GLY7IFWDS3TQYVANCNFSM4IJGWUMQ.

VastSky commented 3 years ago

Hey jeanrocco,

Thank you for sharing details on your projects!

It is very frustrating to have your remote monitoring fail when abroad.

The APU2E4 is intriguing hardware, especially with your application of hosting both home automation and LEAF firewall. That looks like a big learning curve. I intend to look at it in greater detail. What sort of home automation tasks have you deployed?

Reliable remote information is a must to give one peace of mind that everything is normal and secure at one's residence when you are away. I am a hobbyist that is easily distracted off course when something interesting presents, rather than maintaining focus on a project underway. I thus play with tech that is low budget like the ESP8266/32, RPi, sOnOff and ASUS wifi routers.

I buy off eBay, AliExpress and Banggood, mostly D1 mini, ESP-01S, NodeMCUv3, ESP32 DevC v4. DS18b20, BME280, BMP280, I2C OLEDs, and sOnOff.

I use ESP8266 with ESPEasy, Thingspeak, and this nice customizable HTML file to graph indoor and outdoor temperatures to confirm that the furnace is operational. This HTML file uses High Charts to create a very nice historic graph of all your Thingspeak data. It is worth looking at!

I also converted a sOnOff basic from switched 120vac to dry contact to control my garage door opener. The bad part is that I have no open/close status for the garage door, but I will work on a this.

I installed a DSC security panel pre-internet and updated it with a Envisalink device to make the security panel internet self monitoring capable. I have been very happy with this device! I also have a Wyze camera - too bad their business model was bait and switch.

Bought a 3D printer to build the MPCNC. MPCNC works well, and I intended to use it to needle cut foam board to build RC planes. The regulations for the RC hobby changed to make flying in a neighborhood park illegal, so I will repurpose the MPCNC to do something new when my interest returns to the project.

I run "Fresh Tomato" 3rd party firmware on the ASUS router. It has a built-in ad blocker similar to PiHole that works well. Very stable as well.

The RPi is the piB+ which I bought to learn MQTT. There are so platforms that can be deployed I don't know where to begin. Thanks for the info on LEAF - I will follow up on that. Here is the way I use to remote desktop into RPi to make it headless - very handy.

So all I need is the pandemic to fade so international travel is once again a reasonable thing to do. We will tow our little trailer to the Rockies to hike and bike this summer, rather than go into the US or abroad until then.

Shoot me an email ( I left clue in an earlier response) if you think we should take conversation off github.

Best regards,

Ed

jeanrocco commented 3 years ago

Hello ED,

On Jan 30, 2021, at 14:32, VastSky notifications@github.com wrote:

Hey jeanrocco,

Thank you for sharing details on your projects!

It is very frustrating to have your remote monitoring fail when abroad.

The APU2E4 is intriguing hardware, especially with your application of hosting both home automation and LEAF firewall. That looks like a big learning curve. I intend to look at it in greater detail. What sort of home automation tasks have you deployed?

Only the LEAF firewall runs on the APU2C2, the home assistant runs on a APU2E4, a different machine. The firewall is fairly easy to set up, if you follow the documentation of version 5.x which is the most complete one, you will notice that 7.x is still in progress and not complete. For home assistant on the APU2E4, I installed Ubuntu server 19.10 and the Docker version of home assistant. The APU2C2 uses an SD card to boot LEAF from, but for the APU2E4, I use a LITEONIT LMT-128 SSD ( https://www.ebay.com/p/2256106705 https://www.ebay.com/p/2256106705 ). Reliable remote information is a must to give one peace of mind that everything is normal and secure at one's residence when you are away. I am a hobbyist that is easily distracted off course when something interesting presents, rather than maintaining focus on a project underway. I thus play with tech that is low budget like the ESP8266/32, RPi, sOnOff and ASUS wifi routers.

Right, and this is why I switched for the APU2E4 for the home assistant instead of the PI… incidentally I’m also using SonOff modules and an ASUS wifi router in access point mode, the firewall runs the DHCP server (dnsmasq). I buy off eBay, AliExpress and Banggood, mostly D1 mini, ESP-01S, NodeMCUv3, ESP32 DevC v4. DS18b20, BME280, BMP280, I2C OLEDs, and sOnOff.

Yeah I do the same too, even if I hate to buy stuff from a politically immoral and un-trustable China … in most cases I can’t even find the parts I’m looking for elsewhere. I use ESP8266 with ESPEasy https://www.youtube.com/watch?v=07XukAPV20E&t=182s, Thingspeak https://thingspeak.com/, and this nice customizable HTML file https://github.com/neilh10/thingspeakmultichannel-highcharts to graph indoor and outdoor temperatures to confirm that the furnace is operational. This HTML file uses High Charts to create a very nice historic graph of all your Thingspeak data. It is worth looking at!

I also converted a sOnOff basic from switched 120vac to dry contact to control my garage door opener. The bad part is that I have no open/close status for the garage door, but I will work on a this.

I’m also using a basic SonOff module to monitor my garage door with a reed switch and a permanent magnet mounted on the sliding door. I wired a 2 screws terminal ( https://www.ebay.ca/itm/100-PCB-Screw-Terminal-Block-2-Pole-5mm-Pin-Pitch-for-22-12AWG-Wire-300V-10A/110988130413?hash=item19d768786d:g:6acAAOSwjKFZVGy5 https://www.ebay.ca/itm/100-PCB-Screw-Terminal-Block-2-Pole-5mm-Pin-Pitch-for-22-12AWG-Wire-300V-10A/110988130413?hash=item19d768786d:g:6acAAOSwjKFZVGy5) glued on the side of the SonOff to the GPIO14 and ground header pins on J1. I’m using the Tasmota ( https://tasmota.github.io/docs/Getting-Started/ https://tasmota.github.io/docs/Getting-Started/ ) firmware on the SonOffs as it interfaces well with home assistant. If you configure your Tasmota SonOff Module parameters to ( GPIO14 Sensor “Switch1 (9)” ), you will be able to read your reed switch as Switch1. I don’t control the garage door opening with the SonOff though, I do not trust it enough ... I installed a DSC security panel pre-internet and updated it with a Envisalink https://www.amazon.ca/dp/B016WQTJ4S/ref=pe_3034960_236394800_TE_dp_1 device to make the security panel internet self monitoring capable. I have been very happy with this device! I also have a Wyze camera - too bad their business model was bait and switch.

Bought a 3D printer to build the MPCNC https://www.v1engineering.com/specifications/. MPCNC works well, and I intended to use it to needle cut foam board to build RC planes. The regulations for the RC hobby changed to make flying in a neighborhood park illegal, so I will repurpose the MPCNC to do something new when my interest returns to the project.

My son is into 3D, but not me, so I use him :-) . I fly RC sailplanes mostly too. I run "Fresh Tomato" 3rd party firmware on the ASUS router. It has a built-in ad blocker similar to PiHole that works well. Very stable as well.

On my Asus ( RT-AC3100 ) I use ASUS Merlin ( https://www.asuswrt-merlin.net/ https://www.asuswrt-merlin.net/), it has all of ASUS firmware but with added features, like ssh access and cron like apps. , more flexibility, you can program scripts. I also used Tomato before on other routers but I prefer to buy ASUS routers now mostly because I can use the still maintained ASUS/Merlin firmware.

I use “ dnsmasq “ on my firewall to block ads, look at https://bering-uclibc.zetam.org/wiki/Bering-uClibc_7.x_-_User_Guide_-_Advanced_Topics_-_Setting_Up_Ad_blocking_with_dnsmasq https://bering-uclibc.zetam.org/wiki/Bering-uClibc_7.x_-_User_Guide_-_Advanced_Topics_-_Setting_Up_Ad_blocking_with_dnsmasq .

The RPi is the piB+ which I bought to learn MQTT. There are so platforms that can be deployed I don't know where to begin. Thanks for the info on LEAF - I will follow up on that. Here is the way I use to remote desktop into RPi https://www.youtube.com/watch?v=0I5DYtx2WKQ&t=50s to make it headless - very handy.

So all I need is the pandemic to fade so international travel is once again a reasonable thing to do. We will tow our little trailer to the Rockies to hike and bike this summer, rather than go into the US or abroad until then.

Shoot me an email ( I left clue in an earlier response) if you think we should take conversation off github.

Ok hope you enjoy these hints, it’s always interesting to share how we do things !

bye for now.

jrb.

Best regards,

Ed

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jeanrocco/Espressiot_Fritzing/issues/1#issuecomment-770268669, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC764ZQSTR44JYNB3B5H34LS4RNE3ANCNFSM4IJGWUMQ.

VastSky commented 3 years ago

Hello jeanrocco,

Thank you for the detailed information! I'm working through it. You really have taken HA and network security to the next level!

Do you slope or tow launch/thermal your sailplane? Are you familiar with dynamic soaring? The site I fly is slope, often with thermals. Built a few hotwire cut flying wings.

I discovered a very detailed, well documented "Espresso-PID" The setup was easy as I only needed to revise the IO, and OLED constructor to match my hardware, and it has DS18b20 as a sensor option. The project has an active discord channel as well. I have been enjoying this project.

Ed

jeanrocco commented 3 years ago

Hello Ed,

On Feb 7, 2021, at 15:45, VastSky notifications@github.com wrote:

Hello jeanrocco,

Thank you for the detailed information! I'm working through it. You really have taken HA and network security to the next level!

Just being careful :-) … and at the same time these projects keeps me abreast and aware of new technologies … Do you slope or tow launch/thermal your sailplane? Are you familiar with dynamic soaring https://www.youtube.com/watch?v=4eFD_Wj6dhk&feature=emb_logo? The site I fly is slope, often with thermals. Built a few hotwire cut flying wings.

I used a bungee for my first sailplane, a gentle lady , then switched to the much more convenient outer-runner motors and lipo batteries. Dynamic soaring requires mountains and a high degree of piloting skill, both of witch I lack :-) !!!

I climb up with the folding props electric motor to about 700 feet, and then hunt for thermals. On active days I can stay up until my transmitter battery weakens, couple of hours with my old NICad one. I used to fly at a club site for RC control airplanes, and was making everyone jealous for staying in the air that long …

I’m using arf models, like Multiplex Easy glider pro. etc ... . We had a dude in our club that used a hotwire cutter, with steppers to drive it, but I didn’t used that, not enough patience. I don’t fly as much now, my evolving cataracts are slowing me down, and I’m waiting for the operation to clarify all that, well this year hopefully.

I discovered a very detailed, well documented "Espresso-PID" http://rancilio-pid.de/ The setup was easy as I only needed to revise the IO, and OLED constructor to match my hardware, and it has DS18b20 as a sensor option. The project has an active discord channel as well. I have been enjoying this project.

Ok I zipped through that but my german is not very good, and finally found the english docs. The only thing I didn’t like is this blynk cloud gizmo where you have to register for an account … it feels awkward or silly to need a web connection for making a cup of coffee :-) ! There are probably ways to go around that. So since you tried this PID, what are your comments, is it any good, stable and converging to a steady state set-point ???

Ok bye for now, fun exchanging with you as usual… btw where do you live ?

jrb.

Ed

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jeanrocco/Espressiot_Fritzing/issues/1#issuecomment-774757513, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC764ZRQPF6HBVJPJKUVRWDS533XPANCNFSM4IJGWUMQ.

VastSky commented 3 years ago

Hello jeanrocco,

I live in Kamloops BC. You can take a look at my YT videos . Some of the scratch built stuff. I like planes that are fun and won't make me cry if I crash. Did a few tri and quadcopters too.

Google translate helped make reading through the German pretty simple. I am not using Blynk with it. It is MQTT capable, and wifi telnet serial debug capable which works nicely. Very well documented project. The single boiler of the Rancilio will never maintain a constant delivery temp of brew water, but this PID keeps the "set" temperature very stable without negligible overshoot. The Config.H is where you configure it all with good English comments. This project uses OTA flashing from the Arduino IDE which works well for configuration changes. Those Germans are overachievers!

Sorry to hear that you need to wait for the cataract surgery. I have friends that only wear weak reading glasses after surgery, and colors become vivid after surgery. If you can afford to, pay do it, and get the best surgeon and the best lenses.

Gotta run - at work and we have workers arriving that I must deal with.

Ed