Skip to main content

mpymodcore

Project description

Code style: black

mpymodcore_watering

a garden/ plant watering app for mpy-modcore

What's new ?

Check CHANGELOG for latest ongoing, or upcoming news

Development status

Alpha state. The API or logical call flow might change without prior notice.

In case your code breaks between two versions check CHANGELOG information first before creating a ticket / issue on github. thanks.

Hardware, plumbing installation pictures and videos

refer docs on GitHub-Pages

Required related project(s)

mpymodcore_watering requires mpy-modcore in order to run

Installation

assuming your repo structure as following

  • ~/repo/mpymodcore
  • ~/repo/mpymodcore_watering

install mpy-modcore first (see installation notes there)

install to the mpymodcore_watering (project) folder

python3 -m pip install mpymodcore-watering --no-compile --target .
# dont forget the "." at the end

create a symbolic link in ~/repo/mpymodcore/modapp

ln -sr ~/repo/mpymodcore_watering/modapp/watering watering

enable wlan on your esp32 board (with wlan.cfg file on the board) since the web application loads external content from CDNs such as bootstrap, fontawesome, vuejs, jquery, ... etc

in module modapp.watering there is a minimal boot.py script.

deploy the source files to the target board using e.g. thonny, mpycntrl, mpfshell, rshell, ...

Basis Configuration

the default port/pin mapping is in /modapp/watering/etc/valves.template.json.txt. this is used as template if on the board the file /etc/watering/valves.json.txt is not found. make sure that the target board supports the defined pins.

the boot-button (gpio 0) is configured to send a break event to enter repl securely after pressing. with calling loop() the stopped process can be continued. check if the target board is configured like that.

the on-board led (gpio 21) will toggle every 5 sec as live ping. check if the target board is configured like that.

the flow sensor is configured to accept IRQ from gpio35.

URL - read properly

access the application with http://your-device-ip/static/watering/ (important: trailing '/' in url above loads '/index.html' under given route path)

License

mpymodcore_watering is published as dual licensed. read properly.

other Licenses

Component Homepage License
mpymodcore https://github.com/kr-g/mpymodcore dual licensed
fontawesome https://fontawesome.com/ MIT
bootstrap https://getbootstrap.com/ MIT
jQuery https://jquery.com/ MIT
Popper https://popper.js.org MIT
vuejs https://vuejs.org/ MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mpymodcore_watering-0.0.12.tar.gz (37.6 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page