Cheap Internet temperature logger
- alexlark
- Under the Table
- Posts: 1403
- Joined: Thu May 02, 2013 12:29 pm
- Location: Rhondda, South Wales
Re: Cheap Internet temperature logger
I,ll report back any probs with the relays once I've built it.
I've put a powerline plug in my shed and an old router running as an access point. Strong WiFi!
I've put a powerline plug in my shed and an old router running as an access point. Strong WiFi!
- Andy
- Virtually comatose but still standing
- Posts: 8716
- Joined: Fri Nov 18, 2005 1:00 pm
- Location: Ash, Surrey
- Contact:
Re: Cheap Internet temperature logger
Perfect, thanks Jamie. I'll add that into the code. I've forked Vito's github repo and have fixed the date format + some other niggles I've noticed.JabbA wrote:I've noticed the same with my setup Andy. The WiFi is right at the limit of the signal to the shed and will drop out regularly. I changed the WiFi connect routine which enabled it to re-connect.
This is in the main loop:
Cheers,Code: Select all
if (WiFi.status() != WL_CONNECTED) { wifidrop++; //increments WiFi drop counter setup_wifi(); return; } if (!client.connected()) { long now = millis(); if (now - lastReconnectAttempt > 5000) { lastReconnectAttempt = now; // Attempt to reconnect MQTT if (reconnect()) { lastReconnectAttempt = 0; } } } else { client.loop();
Jamie
https://github.com/allthepies/BrewPiLess
Edit: Looking at your code, it's very different to that in BrewPiLess i.e. there's no setup_wifi() function. Are you definitely talking about modifications to Vito's BrewPiLess ?
Dan!
Re: Cheap Internet temperature logger
Ahh, no sorry. I've not had chance to have a look at the BrewPiLess code as yet, that's a snippet from my controller code I've lashed together from various examples. I assumed he'd base his code on the examples out there for the ESP8266.Andy wrote:Looking at your code, it's very different to that in BrewPiLess i.e. there's no setup_wifi() function. Are you definitely talking about modifications to Vito's BrewPiLess ?
Cheers,
Jamie
Re: Cheap Internet temperature logger
I'm shooting in the dark a bit here but I've just had a quick look; In WiFiSetup.h try changing _maxReconnect=0 to something other than zero.
Cheers,
Jamie
Cheers,
Jamie
- alexlark
- Under the Table
- Posts: 1403
- Joined: Thu May 02, 2013 12:29 pm
- Location: Rhondda, South Wales
Re: Cheap Internet temperature logger
0 could mean unlimited too.
Re: Cheap Internet temperature logger
Indeed it could, worth a try though! Caveat- I'm by no means a programmer and lash my code together whist standing on the shoulders of giants!alexlark wrote:0 could mean unlimited too.
Cheers,
Jamie
- Andy
- Virtually comatose but still standing
- Posts: 8716
- Joined: Fri Nov 18, 2005 1:00 pm
- Location: Ash, Surrey
- Contact:
Re: Cheap Internet temperature logger
_maxReconnect = 0 causes the WifiSetup stayConnected method to continue trying to connect i.e. as alex mentioned, unlimited reconnection attempts.
So, having looked at the code, it should attempt to reconnect if Wifi is lost.
Just hooked it up to a 20x4 LCD which is displaying the same details as the pseudo-lcd in top left of the main webpage.
So, having looked at the code, it should attempt to reconnect if Wifi is lost.
Just hooked it up to a 20x4 LCD which is displaying the same details as the pseudo-lcd in top left of the main webpage.
Dan!
- alexlark
- Under the Table
- Posts: 1403
- Joined: Thu May 02, 2013 12:29 pm
- Location: Rhondda, South Wales
Re: Cheap Internet temperature logger
Looking good Andy! My screen is due back any day now. Did you use a logic shifter with the screen?
- Andy
- Virtually comatose but still standing
- Posts: 8716
- Joined: Fri Nov 18, 2005 1:00 pm
- Location: Ash, Surrey
- Contact:
Re: Cheap Internet temperature logger
No, it's directly plugged into the NodeMCU so most probably below spec on the input voltage but it works....
If I were boxing it up for proper use then I'd probably supply Vcc with 5v and investigate if I then needed to go through level shifters for the data lines.
If I were boxing it up for proper use then I'd probably supply Vcc with 5v and investigate if I then needed to go through level shifters for the data lines.
Dan!
- alexlark
- Under the Table
- Posts: 1403
- Joined: Thu May 02, 2013 12:29 pm
- Location: Rhondda, South Wales
Re: Cheap Internet temperature logger
I'm thinking on the same lines. I got a level shifter ready. Still can't believe how cheap these components are!
-
- Telling imaginary friend stories
- Posts: 5229
- Joined: Sun Oct 16, 2011 1:49 pm
- Location: Cowley, Oxford
Re: Cheap Internet temperature logger
careful buying uber cheap logic level shifters off ebay etc some can arrive without any printed indication of direction needing a magnifying glass to inspect the orientation of components..
ist update for months n months..
Fermnting: not a lot..
Conditioning: nowt
Maturing: Challenger smash, and a kit lager
Drinking: dry one minikeg left in the store
Coming Soon Lots planned for the near future nowt for the immediate
Fermnting: not a lot..
Conditioning: nowt
Maturing: Challenger smash, and a kit lager
Drinking: dry one minikeg left in the store
Coming Soon Lots planned for the near future nowt for the immediate
- alexlark
- Under the Table
- Posts: 1403
- Joined: Thu May 02, 2013 12:29 pm
- Location: Rhondda, South Wales
Re: Cheap Internet temperature logger
Yea it is pretty small, I can make it out. Think I need a magnifying glass for the lot though! Lol
- Andy
- Virtually comatose but still standing
- Posts: 8716
- Joined: Fri Nov 18, 2005 1:00 pm
- Location: Ash, Surrey
- Contact:
Re: Cheap Internet temperature logger
I enabled the LCD backlight timeout capability in BrewPiLess so the LCD switches off (well the backlight does) after 5 mins. Putting a push-button switch between D3 and ground allows me to turn the light back on again. I'm thinking of replacing the switch with a small PIR module so the backlight will come on if it detects movement in the vicinity.
Dan!
- MonsieurBadgerCheese
- Steady Drinker
- Posts: 46
- Joined: Wed Dec 23, 2015 8:01 pm
Re: Cheap Internet temperature logger
Hi,
Been reading this thread with interest. Does anyone have an 'idiots guide'? Biggest question - do any of these wi-fi things receive a signal from within a fermentation-fridge?
MBC
Been reading this thread with interest. Does anyone have an 'idiots guide'? Biggest question - do any of these wi-fi things receive a signal from within a fermentation-fridge?
MBC
-
- Telling imaginary friend stories
- Posts: 5229
- Joined: Sun Oct 16, 2011 1:49 pm
- Location: Cowley, Oxford
Re: Cheap Internet temperature logger
https://github.com/universam1/iSpindelMonsieurBadgerCheese wrote:Hi,
Been reading this thread with interest. Does anyone have an 'idiots guide'? Biggest question - do any of these wi-fi things receive a signal from within a fermentation-fridge?
MBC
ist update for months n months..
Fermnting: not a lot..
Conditioning: nowt
Maturing: Challenger smash, and a kit lager
Drinking: dry one minikeg left in the store
Coming Soon Lots planned for the near future nowt for the immediate
Fermnting: not a lot..
Conditioning: nowt
Maturing: Challenger smash, and a kit lager
Drinking: dry one minikeg left in the store
Coming Soon Lots planned for the near future nowt for the immediate