<< Go to homepage

General view :

The project we are doing is to see what happens to plants radiated by electromagnetic waves. I was responsible to make remote control, and I did it using Supla. We used some 2ESPs, 2 peristaltic pumps, 8 PC 12v fans, cheapest LEDs for plants as well as some relays, unfortunately S2, not C3 :(, and short code copy-pasted from Stack Overflow to save the photos using crontab:

import cv2
from urllib.request import urlopen
import numpy as np
from time import time, sleep
from os.path import join
from datetime import datetime
url = r'http://ESP_CAM_IP_ADDRES/capture'


hrs = .2
img_resp = urlopen(url)
print(f"photo taken at {time()}")
path = join("your path here", f"{datetime.today().strftime('%Y%m%d%H%M%S')}.png")
imgnp = np.asarray(bytearray(img_resp.read()), dtype="uint8")
img = cv2.imdecode(imgnp, -1)
cv2.imwrite(path, img)
print(path)

Supla and our server are in sync due to crontab. We planted first plant, so I have some points to keep eye on while experimenting:

Some notes:

It is really important to:

  • keep Supla's and our serv clock in sync, and keep the team informed about any restart of our hardware
  • put each germ in the same placement, to see if there is any impact to growing direction.

In future:

Integrate it with PlantCV (code already written in filka.io), and with filka.io itself!

<< Go to homepage