reef-pi :: An opensource reef tank controller based on Raspberry Pi.

reef-pi dummy checking in. I made some timers for my light outlets, using both the starting time and a timer to turn them off, and then deleted those and tried a timer to turn the outlet on, and then another to turn it back off. I have deleted all timers associated with the outlet, and I cannot get it to stay off when I turn it off. I have rebooted the rpi to be sure the timers changes took effect. Still can't get the outlet to turn off. What am I doing wrong?

Further, what is the proper way to make timers to turn on at a certain time of every day and then back off at a certain time?

Thanks for any help!
 
reef-pi dummy checking in. I made some timers for my light outlets, using both the starting time and a timer to turn them off, and then deleted those and tried a timer to turn the outlet on, and then another to turn it back off. I have deleted all timers associated with the outlet, and I cannot get it to stay off when I turn it off. I have rebooted the rpi to be sure the timers changes took effect. Still can't get the outlet to turn off. What am I doing wrong?

Further, what is the proper way to make timers to turn on at a certain time of every day and then back off at a certain time?

Thanks for any help!

This helped me a lot understanding the Cron format

https://crontab.guru/
 
Can someone check my sanity with this bread board circuit, about to start soldering some header pins for the PWM GPIO pins 13 and 18 but want to make sure that the logic for the PWM circuit is correct.

The yellow jumper which is up in the air would be connected to pin 13 or 18 goes through a 1K resistor to the fet gate, then then the yellow wire then goes from the fet drain to the plug (-) , fet source is tied to pi ground. +12v is fed from the pi to the plug (+).

:/ hopefully that makes some sense, see attached picture.
IMG_20190103_200948.jpg
 
reef-pi dummy checking in. I made some timers for my light outlets, using both the starting time and a timer to turn them off, and then deleted those and tried a timer to turn the outlet on, and then another to turn it back off. I have deleted all timers associated with the outlet, and I cannot get it to stay off when I turn it off. I have rebooted the rpi to be sure the timers changes took effect. Still can't get the outlet to turn off. What am I doing wrong?

Further, what is the proper way to make timers to turn on at a certain time of every day and then back off at a certain time?

Thanks for any help!

One thing I can do is help troubleshoot linux based stuff in my sleep, so fyi you rarely should have to reboot, take a peak at your crontab and see what you have listed in there. If you delete all of your timers then it should be blank, here is a good thread that will give you some additional background on cron - https://www.raspberrypi.org/forums/viewtopic.php?t=187223

btw feel free to ask linux based questions, im a noob at the electronics stuff but I'm a long time linux user and should be able to help with those kind of questions :)
 
The power controller guides goes over the timer section, both on adafruit - https://learn.adafruit.com/reef-pi-power-controller/configure-and-test and github - https://reef-pi.github.io/build-guides/power/

If you have deleted all your timers you just check crontab and ensure that all of them have been removed, if not maybe there is a bug etc...
I think my timers are fine, but crontab isn't showing anything at all which is confusing. I logged in via my normal profile, and I checked as root as well. Nothing showing up in crontab.
 
One thing I can do is help troubleshoot linux based stuff in my sleep, so fyi you rarely should have to reboot, take a peak at your crontab and see what you have listed in there. If you delete all of your timers then it should be blank, here is a good thread that will give you some additional background on cron - https://www.raspberrypi.org/forums/viewtopic.php?t=187223

btw feel free to ask linux based questions, im a noob at the electronics stuff but I'm a long time linux user and should be able to help with those kind of questions :)
That explains why crontab wasn't showing anything even though I have some timers configured! But I am not smart enough to figure out what to type in terminal to get to the reef-pi crontab.
 
I think my timers are fine, but crontab isn't showing anything at all which is confusing. I logged in via my normal profile, and I checked as root as well. Nothing showing up in crontab.

Well I haven't had a chance to dig into and see how they are using cron, there are lots of ways of doing it....maybe this might help, read through this and look at all of the cron locations and see what turns up - https://www.cyberciti.biz/faq/linux-show-what-cron-jobs-are-setup/
 
reef-pi dummy checking in. I made some timers for my light outlets, using both the starting time and a timer to turn them off, and then deleted those and tried a timer to turn the outlet on, and then another to turn it back off. I have deleted all timers associated with the outlet, and I cannot get it to stay off when I turn it off. I have rebooted the rpi to be sure the timers changes took effect. Still can't get the outlet to turn off. What am I doing wrong?

Further, what is the proper way to make timers to turn on at a certain time of every day and then back off at a certain time?

Thanks for any help!
can you share a screenshot of your timer and the use case, like when you want to turn it on/off etc. We can then review your timer configuration
 
The power controller guides goes over the timer section, both on adafruit - https://learn.adafruit.com/reef-pi-power-controller/configure-and-test and github - https://reef-pi.github.io/build-guides/power/

If you have deleted all your timers you just check crontab and ensure that all of them have been removed, if not maybe there is a bug etc...
though reef-pi uses cron like syntax to represent timers, it does not use cron itself , so you wont see anything in linux crontab etc. Cron is implemented purely in go inside reef-pi, using a library (yay to opensource).
 
I think my timers are fine, but crontab isn't showing anything at all which is confusing. I logged in via my normal profile, and I checked as root as well. Nothing showing up in crontab.
That is as expected. reef-pi does not uses linux cron jobs for timer, it just utilizes the familiar syntax. Cron is implemented purely in go lang inside reef-pi, using another opensource library
 
lol, nevermind...make sense, so its all stored in the db? - Reading this https://godoc.org/github.com/robfig/cron
nope.. its in-memory. reef-pi uses boltdb for persistence, where all the timer specs are kept, upon startup (or updates) the in-memory cron store is synced with persistent store. we try to reduce disk i/o as much as possible, since sd cards are one of the biggest reliability concerns in Raspberry pi
 
nope.. its in-memory. reef-pi uses boltdb for persistence, where all the timer specs are kept, upon startup (or updates) the in-memory cron store is synced with persistent store. we try to reduce disk i/o as much as possible, since sd cards are one of the biggest reliability concerns in Raspberry pi

Makes sense...
 
can you share a screenshot of your timer and the use case, like when you want to turn it on/off etc. We can then review your timer configuration
Here is the configuration presently. Seems to be working fine on the "blue channel" but the "white channel" seems to be on a 15s time constant. I can turn it off manually in the equipment tab but it turns right back on after a max of around 14s. I made a dummy timer to turn it off and it turns off, then right back on after 15s. I can't delete the outlet or the equipment because equipment is "in use."
timers.jpg



Edit: I am an idiot. I was testing the temperature control module and somehow I managed to get the white channel equipment designated as the heater. My apologies to all!
 
Last edited:
Here is the configuration presently. Seems to be working fine on the "blue channel" but the "white channel" seems to be on a 15s time constant. I can turn it off manually in the equipment tab but it turns right back on after a max of around 14s. I made a dummy timer to turn it off and it turns off, then right back on after 15s. I can't delete the outlet or the equipment because equipment is "in use."

Edit: I am an idiot. I was testing the temperature control module and somehow I managed to get the white channel equipment designated as the heater. My apologies to all!

Glad you found it, happens to all of us...:)
 
Here is the configuration presently. Seems to be working fine on the "blue channel" but the "white channel" seems to be on a 15s time constant. I can turn it off manually in the equipment tab but it turns right back on after a max of around 14s. I made a dummy timer to turn it off and it turns off, then right back on after 15s. I can't delete the outlet or the equipment because equipment is "in use."
timers.jpg



Edit: I am an idiot. I was testing the temperature control module and somehow I managed to get the white channel equipment designated as the heater. My apologies to all!
No worries :-) . I assume its working as expected now?
 
Glad you found it, happens to all of us...:)
yeah.. with macro theres a high risk of messing things up as well. I am still thinking what user experience improvements we can do to avoid this as much as possible. This whole thing will get complicated once we have macro spanning across reef-pi's
 
yeah.. with macro theres a high risk of messing things up as well. I am still thinking what user experience improvements we can do to avoid this as much as possible. This whole thing will get complicated once we have macro spanning across reef-pi's

Yeah for sure, some kind of clustering arrangement, I'm sure you thought about it, lots of clustering stuff out there, just need to figure out what's makes the most sense and is simple but powerful..keep it simple if possible :)

You see my breadboard posting, I think I have it laid out correct, about to turn in but will do some soldering tomorrow.
 
No worries :) . I assume its working as expected now?
Perfectly! As expected when a dolt isn't organizing things.... my shame and embarrassment will sting for a while from this one.

Perhaps an "idiot check" summary page would help folks like me? Being able to see what module is controlling the outlets, inlets and jacks might have helped without having to look through every module. This shouldn't be necessary because I shouldn't have made this mistake, but I am afraid there are others like me. I have zero idea if this would take 15 minutes of programming or much much longer. Please ignore if it would be an inconvenience.
 

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 26 63.4%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 15 36.6%
Back
Top
Home
Post thread…
Market
What's new