Open kylos101 opened 3 years ago
hey, cool that you are taking part in this!!
regarding your comments:
app.py
code to be in the loop and use the interval_seconds
to wait for the next picturethe snippet of the code for the app.py
...
while True:
...
spec = specimen(config["text"], config["images"])
spec.save_image("{}/image.jpg".format(pwd), frame, readings)
spec.save_html("{}/image.jpg".format(pwd), output_path, readings)
print("Sleeping {} after that will take another picture".format( config["images"]["interval_seconds"]))
time.sleep(config["images"]["interval_seconds"])
then I did a modification in the sample.sh script and created a cron job to run the script for me, I'm not pushing the image and index.html to the same repo, I've created a new repo (https://github.com/cpanato/growlab-live) just to hold the live images and maybe other things in the future.
I saw your diff and the docs look good to me :)
Hi @kylos101 can you send the PR so that I can compare in a diff please?
Alex
Hi @alexellis,
I went through growlab, took notes, and am at a point where my camera and sensor are working using the service. Now I just need to dog proof my setup so it doesn't become an expensive chew toy...
Would you be interested in reviewing and potentially accepting a PR containing new technician documentation and a tweak to the service?
Here is a summary of what I did:
growlab.service
to run sample.sh every 10 minutes as thepi
user. This was necessary to run every 10 minutes (instead of constantly when referencing app.py), and also includes uploading to Github (it gets error 128 w/o having User and Group set).sample.sh
to add the proper docs folder for the live previewPerhaps @cpanato can help share feedback on the service and script changes too?
The related commits are in my fork here: https://github.com/alexellis/growlab/compare/master...kylos101:service-and-new-docs?expand=1
Take care,
Kyle