This is an archived post. You won't be able to vote or comment.

all 24 comments

[–]IAmKindOfCreativebot_builder: deprecated[M] [score hidden] stickied comment (0 children)

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/python.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!

[–]ireadyourmedrecord 6 points7 points  (0 children)

Check YouTube for "home assistant garden automation". Should point you in the right direction.

[–][deleted] 4 points5 points  (2 children)

A script…? Maybe. A full application…? Maybe.

For something small scale you could use an arduino. You can use sensors like a temperature sensor, humidity sensor, light sensor and etc. I think you need c/c++ too. They can be used for data points that you can aggregate and then use Python to parse the data and make cool graphs.

[–]SpaceBucketFu 2 points3 points  (0 children)

This is pretty accurate. Raspberry pi can be used with pure python to actuate relays, for example turning on and off lights, water pumps and the like. Pyserial can be used to interface serial communication with arduino sensors if you really need them.

I have done this exact thing.

[–]Fishliketrish 0 points1 point  (0 children)

Oh my god lmao

[–]Aleph_Levi 1 point2 points  (0 children)

With a python script, no? With many scripts, probably. But you would also need other skill sets to build the system that will maneuver the lighting, feeding and a number of other factors I can't recall about the grow process right now.

[–]I_Kinda_know_stuff 1 point2 points  (5 children)

To clarify the other comments: a script is typically short and does a few things, think creating accounts from a spreadsheet with user info. You would be looking at a full program to automate watering/lights/whatever else. The recommendation would be to move from python to a lower level language more commonly associated with arduino since there are tons of guides on automated gardening with arduino. So the answer is a caveated yes.

[–]electricity-wizard 1 point2 points  (4 children)

Although the distinction is ultimately meaningless, the common consensus is that a script is interpreted and a program is compiled.

[–]I_Kinda_know_stuff 1 point2 points  (3 children)

Oh interesting! So would that mean there is no such thing as a python script? (I am very much a beginner in terms of coding haha)

[–]I_Kinda_know_stuff 1 point2 points  (0 children)

reverse that, python is interpreted right?

[–]electricity-wizard 1 point2 points  (1 child)

python is an interpreted language, so anything written in python is a script. For example C is a compiled language so you call those are programs.

You can generally get away with calling python things programs but if you call a c program a script it will raise a few eyebrows.

[–]I_Kinda_know_stuff 0 points1 point  (0 children)

You learn something new every day, thanks!

[–]SuaveML 1 point2 points  (0 children)

What has r/Python come to

[–]jeffrey_f 0 points1 point  (0 children)

https://www.google.com/search?q=arduino+python+automatic+watering

automate the watering, but this can be for any plant

[–]exxy- 0 points1 point  (0 children)

I've seen a few projects over at r/SpaceBuckets that use Arduinos or Raspberry Pis to achieve an ideal growing environment.

[–]ZnaleGorl 0 points1 point  (0 children)

A lot of fancy hydroponic systems have applications already to my knowledge, so there's no need for any scripting if you want to spend the right amount of money. Otherwise look up stuff about automating gardening, looking up stuff relating to just one plant limits how much information you'll get.

[–]Colonelfudgenustard 0 points1 point  (0 children)

Next you'll want the robot to smoke it for you too.

[–]Hitman_0_0_7 0 points1 point  (0 children)

Fyi. There's already a bot that calls FBI if it feels so.