Skip to content

deivard/hacky-garden

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hacky Garden

Moisture level monitoring and automated watering.

Note to self so I remember how to run this in a few years when I revisit it:

  1. Connect the things with the stuff so it works.

  2. Install micropython firmware.

  3. Create a config.py file in src/config based on the config_example.py.

  4. Configure the config file.

  5. Copy the src folder to the device. You can use ampy to do this:

     ampy --port COM3 put src
    
  6. Configure the main.py located in the root directory. Create some SmartPumps, put theM in the IrrigationSystem and call start monitoring, maybe. 7. Upload you main.py file to the microcontroller (tested on ESP32) and restart. It will now run every time you start the microcontroller.

Note: I used influxdb v1.8 since I host it on a Raspberry Pi with a 32 bit OS that does not support InfluxDB v2.0+. Don't know if the logger will work for v2.0+. :)

Modifying the software with FTP

Based on uftpd.

  1. Connect to the device via webrepl (IP for me ws://192.168.50.43:8266)
  2. Stop the current program by pressing ctrl-c
  3. Execute the following command to start the ftp server: import uftpd
  4. Connect to the ftp server, e.g., via WinSCP. Device IP as hostname and port 21. Anonymous login since credentials are not supported.
  5. Upload the new files
  6. Press ctrl-d in webrepl to reboot the device

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages