Added some settings for cleaning dates. Added Testing feature which overrides notification schedule and sends notifcations every one minute. It also sends out the full feed/clean notifications. Set Timezone. Added notification logic.
This commit is contained in:
@@ -2,18 +2,23 @@
|
||||
{% block content %}
|
||||
<h1>Information</h1>
|
||||
<form method="post">
|
||||
<h3>Feeding Information</h3>
|
||||
<label>Plant Date</label>
|
||||
<input type="date" name="plantDate" value= {{ plant.plant }}>
|
||||
<br>
|
||||
<label>Last Feed Date</label>
|
||||
<input type="date" name="lastDate" value= {{ plant.last }}>
|
||||
<br>
|
||||
<label>Next Feed Date</label>
|
||||
<input type="date" name="nextDate" value= {{ plant.next }}>
|
||||
<!--<label>Next Feed Date</label>
|
||||
<input type="date" name="nextDate" value= {{ plant.next }}>-->
|
||||
Next Feed Date: {{ plant.next }}
|
||||
<br>
|
||||
Feed Frequency: {{ plant.freq }} days
|
||||
<h3>Cleaning Information</h3>
|
||||
<label>Last Clean Date</label>
|
||||
<input type="date" name="lastClean" value= {{ plant.lastClean }}>
|
||||
<br>
|
||||
<br>
|
||||
Next Clean Date: {{ plant.nextClean }}
|
||||
<h1>Alerts</h1>
|
||||
<input type="checkbox" id="alert_text" name="AlertText" value={{ alerts.text }} {{ "checked" if alerts.text else "" }}>
|
||||
<label for="alert_text">Text Message</label>
|
||||
|
||||
Reference in New Issue
Block a user