Code Monkey home page Code Monkey logo

old_growberry_pi's People

Watchers

 avatar  avatar

Forkers

growberry

old_growberry_pi's Issues

Adafruit DHT22 repository requires access to .python-eggs

ExtractionError: Can't extract file(s) to egg cache

The following error occurred while trying to extract file(s) to the Python egg
cache:

[Errno 13] Permission denied: '/root/.python-eggs'

The Python egg cache directory is currently set to:

/root/.python-eggs

Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.

only happens on non-pi users (nimrod from growberry-webserver)

No handlers could be found for logger "pins"

Something is wrong with the logging handler. Not catching the pins.py logger.

No handlers could be found for logger "pins"

is printed to the console after manually starting growberry with python growberry

Image capture delay to prevent dim photos

After reboots, the images are taken too quickly, and the lights are not on all the way, so the image appears dim.

Just add a delay upon bootup. Might tie in with the other issue that detects power outages.

Too many errors for not being able to read a sensor (DHT22 stuff)

There are too many errors for that specific log.

[WARNING] __main__ 2018-08-03 02:20:15,647 one of the sensors could not be read, defaults used.
[ERROR] pins 2018-08-03 02:21:24,072 internal-DHT22 sensor could not be reached after 3 attempts.  Make sure sensor is connected to GPIO 15

Long term: Need a way to keep track of the number of successful reads/errors. Maybe a percentage? Also implement option B below.

Short term: A. Make the logs longer, B. change the error code to lower than ERROR/WARNING, and change the logging level. C. increase the number of attempts on the sensor read.

Recommend: option C and A for now. Follow up with the long term option. That is... unless IC2 sensors are used in the future.

need cron job to dump data

cron job should dump data to computer on the network, maybe on Google Drive, so I can see it anywhere

need some sort of sensor memory to detect outages.

an internal humidity sensor went out, and was just reading 1% constantly. This was below the set threshold, so the fans never came on when the lights were off. Mold happened.

I suggest some sort of set number of readings, maybe a list that holds 24 previous readings. And if the number doesn't change for X readings, put the bucket into "alarm:True"

Growberry_web will have to signal the error somehow. I'm thinking coloring the grow's outline.

Heatsink temps are not reset after measurement.

Check logs to see if the length of sun.sinktemps is getting insanely long.

in the capture_data() function, the sinktemps are pulled, but never reset back to an empty list.

Should be easy to fix: just add -

sun.sinktemps = []

after data is captured.

Drying mode

When a plant is done, there needs to be a way to dry the plant. Just vacuum out the water, and have lights off, but humidity control intact.

This can come from the “status” or “is active” setting. If the grow is in “drying” mode.

Some function to turn on the light for 30 seconds for taking an image, and collecting data. These images would be great.

GPIO.cleanup() on exit

should cleanup all GPIO pins upon 'ctr+c' or reboot
need to prevent lights from flashing during the night cycle.

no proper pin cleanup() upon exit

pins are cleaned properly if program is killed using ctl +c or supervisorctl stop growberry_pi but when ran from the command line, and the ssh connection is terminated, the program stops running, and the lights stay on, while the fans turn off (fans power pin was on, but the pwm pin must have been off.)

This might be fixable with a pull up/pull down resistor on the pwm pin.

Also use signal module to install my own signal handler for SIGTERM (you would have it raise an exception, similar to KeyboardInterrupt).
https://docs.python.org/2/library/signal.html?highlight=signal#module-signal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.