mpymodcore
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mpymodcore_watering-0.0.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d2c07a686944d6153c5b7abb6ef8d6664a62523ad1bf369bbf88e3e3bf7b29f |
|
MD5 | fe5b886e235bc771630cc32c4606ec51 |
|
BLAKE2b-256 | 693272b3061ba1b470e15dbaa0b15db7d0bc7475c15febd8bd3e24e383a13616 |
Hashes for mpymodcore_watering-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 011ea08d995d427fc2ed1070433923aef1aa2decbb45f74a9973455e5c0f8834 |
|
MD5 | a39f0165b2ec8710813153ed7b2ee644 |
|
BLAKE2b-256 | a87cbedc7b204f8891479e7ae6a6fe3ba7d58bf81771e2f76e97a00c9005f892 |