|
21 | 21 | 8. [The simulate script](./SCHEDULE.md#8-the-simulate-script) Rapidly test sequences.
|
22 | 22 |
|
23 | 23 | Release note:
|
| 24 | +11th Dec 2023 Document astronomy module, allowing scheduling based on Sun and |
| 25 | +Moon rise and set times. |
24 | 26 | 23rd Nov 2023 Add asynchronous iterator interface.
|
25 | 27 | 3rd April 2023 Fix issue #100. Where an iterable is passed to `secs`, triggers
|
26 | 28 | must now be at least 10s apart (formerly 2s).
|
@@ -48,6 +50,10 @@ also be used in synchronous code and an example is provided.
|
48 | 50 | It is cross-platform and has been tested on Pyboard, Pyboard D, ESP8266, ESP32
|
49 | 51 | and the Unix build.
|
50 | 52 |
|
| 53 | +The `astronomy` module extends this to enable tasks to be scheduled at times |
| 54 | +related to Sun and Moon rise and set times. This is documented |
| 55 | +[here](https://github.com/peterhinch/micropython-samples/blob/master/astronomy/README.md). |
| 56 | + |
51 | 57 | # 2. Overview
|
52 | 58 |
|
53 | 59 | The `schedule` coroutine (`sched/sched.py`) is the interface for use with
|
@@ -103,6 +109,12 @@ The following files are installed in the `sched` directory.
|
103 | 109 | The `crontest` script is only of interest to those wishing to adapt `cron.py`.
|
104 | 110 | It will run on any MicroPython target.
|
105 | 111 |
|
| 112 | +The [astronomy](https://github.com/peterhinch/micropython-samples/blob/master/astronomy/README.md) |
| 113 | +module may be installed with |
| 114 | +```bash |
| 115 | +$ mpremote mip install "github:peterhinch/micropython-samples/astronomy" |
| 116 | +``` |
| 117 | + |
106 | 118 | # 4. The schedule coroutine
|
107 | 119 |
|
108 | 120 | This enables a response to be triggered at intervals. The response can be
|
|
0 commit comments