-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from ecodina/docu
Docu
- Loading branch information
Showing
9 changed files
with
334 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"additionalFooterText": "© Eloi Codina Torras ", | ||
"anchorCharacter": "#", | ||
"lineBreaks": "gfm", | ||
"title": "Hunter WiFi", | ||
"useSideMenu": true | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Welcome to Hunter-WiFi's documentation | ||
|
||
During 2020's summer I decided it would be interesting to have my Hunter Pro-C watering system connected to the Internet. After some research I found [Scott Shumate 2015's product](https://www.hackster.io/sshumate/hunter-sprinkler-wifi-remote-control-4ea918), but it is no longer on sale. Luckily, [Sebastien](https://github.com/seb821/OpenSprinkler-Firmware-Hunter) published the necessary Arduino code. I have adapted his code to make it easier to control the sprinkler system. | ||
|
||
It can control up to 48 zones and 4 programs. | ||
|
||
## In this documentation | ||
|
||
You can find: | ||
|
||
* The HTTP API reference | ||
* The MQTT API reference | ||
* How to connect the device to the SmartPort | ||
* How to build the project | ||
|
||
## Compatible devices | ||
|
||
I have only tried it on a Hunter Pro-C, but it should work with any Hunter product that is SmartPort (Roam) compatible. Basically, it needs a REM pin. | ||
More information on [Hunter's webpage](https://www.hunterindustries.com/en-metric/irrigation-product/remotes/roam). | ||
|
||
## Bill of materials | ||
|
||
This project has been built for a [WeMos D1 Mini Pro](https://docs.wemos.cc/en/latest/d1/d1_mini_pro.html), but should be easily adaptable to any ESP8266 board. | ||
You will also need a floating power source (e.g. mobile phone charger). | ||
In total, you will spend ~10€ to give WiFi capabilities to your old Hunter. | ||
|
||
## Try it yourself | ||
Download this project and [upload it to your board](docs/1%20Build%20and%20upload.md). Afterwards, connect the microcontroller to the SmartPort (see how in the [docs](docs/2%20Connection%20to%20the%20SmartPort.md) folder). | ||
|
||
The first time you power it, a "*WateringSystemAP*" open WiFi access point will be created. Connect to it and your phone will ask to "sign-in". Click on the notification and follow the steps to connect to your home WiFi. If nothing happens when you connect to the AP, navigate to 192.168.4.1. | ||
|
||
When the board is connected to your home router, you will have an easy to use HTTP API (endpoints in the [docs](docs/3%20API%20reference.md) folder). | ||
|
||
## Easy changes | ||
|
||
You can change the AP's SSID and password-protect it by changing the values in `include/global_config.h`. You can also change the GPIO that connects to the REM pin of the Hunter system (by default, GPIO16 / D0). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!-- | ||
-- Name of your wiki | ||
-- Do NOT remove the leading `#` character. | ||
--> | ||
|
||
# Hunter WiFi | ||
|
||
|
||
<!-- | ||
-- Default theme | ||
-- (Read: http://dynalon.github.io/mdwiki/#!customizing.md#Theme_chooser) | ||
--> | ||
|
||
[gimmick:theme](spacelab) | ||
|
||
|
||
<!-- | ||
-- Navigation | ||
-- (Read: http://dynalon.github.io/mdwiki/#!quickstart.md#Adding_a_navigation) | ||
--> | ||
|
||
[HTTP API reference](pages/api.md) | ||
[MQTT API reference](pages/mqtt.md) | ||
|
||
[How-Tos]() | ||
|
||
* [Build and Upload](pages/buildupload.md) | ||
* [Connect to the SmartPort](pages/hunterconnection.md) | ||
|
||
[Go to GitHub](https://github.com/ecodina/hunter-wifi) | ||
|
||
<!-- | ||
-- Change the Language | ||
-- Could be useful when there's more than one language wiki. | ||
--> | ||
|
||
<!-- | ||
[Change the Language]() | ||
* [English (United States)](/en_US/) | ||
* [English (United Kingdom)](/en_GB/) | ||
* [Italian](/it/) | ||
--> | ||
|
||
<!-- | ||
-- Let the user choose a theme | ||
-- (Read: http://dynalon.github.io/mdwiki/#!quickstart.md#Adding_a_navigation) | ||
--> | ||
|
||
[gimmick:themechooser](Choose theme) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# MQTT API Reference | ||
|
||
Hint: work in progress | ||
|
||
## Endpoint to check in | ||
|
||
hunter/device_hostname/checkIn --> will publish online/rebooted/reconnected/Dead Somewhere | ||
|
||
## Endpoint to check the result | ||
|
||
hunter/device_hostname/result --> will publish the same result json as the [rest api](/hunter-wifi/pages/api.md) | ||
|
||
## Endpoint to start and stop a zone | ||
|
||
hunter/device_hostname/zone/XXX --> commands the zone with json payload to be published by the user ( {"action": "start","time": "1"} -- {"action": "stop"} ) | ||
|
||
## Endpoint to start a program | ||
|
||
hunter/device_hostname/program/XXX --> commands the zone with json payload to be published by the user ( {"action": "start"} ) |