- Thread starter
- #721
odam2k
Well-Known Member
Had to change the details of when it writes to the cache files. I was ending up with them being overwritten by empty data
In any case, it seems to be working reliably now.
Here's a log of the Switch Module booting up when I've changed the password on the MySql user so it has no access.
You can see it states that both the moduleConfig and the lightConfig were loaded from cache, and not from MySql
You can also see the delay while it waits out the Hot Start delay, which I've set at 5 minutes.
I'll set this up in my clone booth, I've got a couple seeds germinating, and will be doing more clones. I'll set the light to 18/6, it will be a good test for this. I'll monitor the light with a photoresistor to ensure it's actually working when I'm not looking
That sort of wraps up another project...
I think I know what I'm gonna work on next, stay tuned to find out...
In any case, it seems to be working reliably now.
Here's a log of the Switch Module booting up when I've changed the password on the MySql user so it has no access.
You can see it states that both the moduleConfig and the lightConfig were loaded from cache, and not from MySql
You can also see the delay while it waits out the Hot Start delay, which I've set at 5 minutes.
I'll set this up in my clone booth, I've got a couple seeds germinating, and will be doing more clones. I'll set the light to 18/6, it will be a good test for this. I'll monitor the light with a photoresistor to ensure it's actually working when I'm not looking
Code:
Opening port
Port open
[M0] 2019/5/3 09:56:16 > Grow by Wire
[M0] 2019/5/3 09:56:16 > Switch Module
[M0] 2019/5/3 09:56:16 > Free Memory: 4.48KB
[M0] 2019/5/3 09:56:16 > Mega 2560 Code Compiled on May 3 2019 at 09:theband:55
[M0] 2019/5/3 09:56:17 > ESP8266 Code Compiled on May 3 2019 at 09:cough:51
[M0] 2019/5/3 09:56:18 > MAC Address: CC:scratchinghead:E3:0C:7C:82
[M0] 2019/5/3 09:56:18 > IP Address : 192.168.1.23
[M0] 2019/5/3 09:56:18 > RSSI : -65dBm (70%)
[M3] 2019/5/3 09:56:19 > moduleCfg loaded from cache
[M3] 2019/5/3 09:56:19 > Module has Switches: 0, and Lights: 1
[M3] 2019/5/3 09:56:19 > Module setup() Complete
[M3] 2019/5/3 09:56:26 > LightCfg loaded from cache
[M3] 2019/5/3 09:56:26 > Light #1 [HPS 400W Flower] is ON
[M3] 2019/5/3 09:56:26 > Delay for 244 more seconds to prevent Hot Start
[M3] 2019/5/3 09:rasta:17 > LightCfg loaded from cache
[M3] 2019/5/3 09:rasta:17 > Light #1 [HPS 400W Flower] is ON
[M3] 2019/5/3 09:rasta:17 > Delay for 193 more seconds to prevent Hot Start
[M3] 2019/5/3 09:rocker:22 > LightCfg loaded from cache
[M3] 2019/5/3 09:rocker:22 > Light #1 [HPS 400W Flower] is ON
[M3] 2019/5/3 09:rocker:22 > Delay for 128 more seconds to prevent Hot Start
[M3] 2019/5/3 09:59:22 > LightCfg loaded from cache
[M3] 2019/5/3 09:59:22 > Light #1 [HPS 400W Flower] is ON
[M3] 2019/5/3 09:59:22 > Delay for 67 more seconds to prevent Hot Start
[M3] 2019/5/3 10:00:17 > LightCfg loaded from cache
[M3] 2019/5/3 10:00:17 > Light #1 [HPS 400W Flower] is ON
[M3] 2019/5/3 10:00:17 > Delay for 13 more seconds to prevent Hot Start
[M3] 2019/5/3 10:01:16 > moduleCfg loaded from cache
[M3] 2019/5/3 10:01:22 > LightCfg loaded from cache
[M3] 2019/5/3 10:01:22 > Light #1 [HPS 400W Flower] is ON
That sort of wraps up another project...
I think I know what I'm gonna work on next, stay tuned to find out...