You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* First pass at biweekly and other repeating alarms. Removed code related to a now-abandoned start on that feature. Minor AQI tweaks.
* Fix repeat data calculations and some dialog layout/display issues.
* Get versioning and CHANGELOG.md ready for new alarm features.
* More alarm work.
* Documentation updates for new alarm features.
Copy file name to clipboardExpand all lines: README.md
+31-31Lines changed: 31 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Astronomy/Weather Clock
2
2
3
-

3
+

4
4
5
5
This project is designed to create a desktop clock that provides weather and astronomical information while additionally functioning as an alarm clock.
6
6
@@ -12,21 +12,21 @@ When displaying 24-hour time, that time can either be local time or UTC.
12
12
13
13
On a display which is narrower than a 16-by-9 aspect ratio, four forecast days can be seen at one time without scrolling. On 16-by-9 or wider displays, five days are visible at a glance.
14
14
15
-
Multiple alarms can be set as either daily alarms (on selectable days of the week), or one-time alarms triggered at a specific date and time. Various alarms tones are available, and each alarm can be accompanied by an on-screen message. Alarms can be set to snooze for 5, 10, or 15 minutes.
15
+
Multiple alarms can be set as daily alarms (on selectable days of the week), or as alarms triggered on a specific date and time, these either going off once, or at repeating intervals starting with the given date. Various alarms tones are available, and each alarm can be accompanied by an on-screen message. Alarms can be set to snooze for 5, 10, or 15 minutes.
16
16
17
17
When viewing the sky map feature you can choose to see a multicolor sky, shaded to indicate daylight, sunrise and sunset, twilight, and even solar eclipse conditions. Or the sky can be shown as black all the time for easier viewing of the positions of the stars. Constellation lines can be optionally displayed as well.
18
18
19
19
**A touchscreen or mouse is required to display the last two or three days of the seven-day forecast, to switch the display from sunrise/sunset to moonrise/moonset, from clock face to sky map, or to switch from hourly temperatures to hourly probability-of-precipitation.*
You can be pickier than this about autoplay privileges, narrowing the autoplay permission to localhost, but this is the easiest way to ensure audio playback.
60
60
@@ -78,7 +78,7 @@ Having a back-up weather data source is not required, but it might be a good ide
78
78
79
79
By default, this application uses GPS-synced system time, if available, or uses a default pool of NTP time servers (keeping its own time via NTP, rather than using the system clock). You can configure the use of different time servers, however, you should not choose Google or Facebook time servers, or any other NTP server that implements “leap second smearing”, if you want the Astronomy/Weather Clock to be able to accurately display leap seconds as shown below:
*This image is hypothetical — the pictured moment in time was not an actual leap second. Video here: <https://shetline.com/video/leap_second_display.mp4>*
84
84
@@ -94,22 +94,22 @@ The Astronomy/Weather Clock will (unless you disable the feature) display air qu
94
94
95
95
For the US AQI system, you can use an alternative color coding system that gradually changes shade as the air quality transitions from one level to the next. As can be seen below, the just-on-the-border rating between “Good” and “Moderate” at an AQI of 51, rather than starkly switch from green to yellow, can be shown as greenish yellow instead.
As soon as you’ve got the Astronomy/Weather Clock up and running the first time, you might want to click on the gear icon in the lower right corner of the web browser display to adjust the various user options which aren’t queried as part of the initial set-up.
106
106
107
107
Your city might be filled in automatically by using your IP address — but then again, it might not. If you’re using this clock in a bedroom you might find the **Dimming** options very useful, as they establish a schedule during which the display will be reduced in brightness.
Using Chromium, you can close the web browser while it’s running in full-screen kiosk mode by pressing `Alt-F4`, or use the Settings/Quit button if available. To get out of full screen mode, but leave the browser running, press `Alt-F11`.
115
115
@@ -123,7 +123,7 @@ With your Raspberry Pi shut down and disconnected from power, connect the DHT22/
123
123
124
124
**This default was GPIO 4 (physical pin 7) before version 2.4.0, but the Adafruit GPS HAT is pre-wired to use that pin, hence the new default.*
125
125
126
-

126
+

127
127
128
128
Also for the Raspberry Pi you have the option to provide wireless indoor conditions and outdoor weather data using [433 MHz Acu Rite 06002M wireless temperature and humidity sensors](https://www.amazon.com/gp/product/B00T0K8NXC/) paired with a [433 MHz receiver module](https://www.amazon.com/D-FLIFE-Wireless-Transmitter-Receiver-Antenna/dp/B0BZRRBBNK/).
129
129
@@ -164,7 +164,7 @@ When you perform the standard dedicated device installation, a folder will be cr
Ever wake up before your alarm goes off, don’t want to worry about the alarm going off when you aren’t around, but you’re also worried that if you turn the alarm off you’ll forget to turn it back on again for when you need it next?
170
170
@@ -186,7 +186,7 @@ The filter text you enter is case-insensitive. Advanced users can enter *regular
Wind speed is displayed using *wind barbs*. When using imperial units, the wind barbs represent wind speed in knots, rounded to the nearest multiple of 5 knots, up to a maximum of 100 knots. In metric mode the wind barbs, by default, represent wind speed in meters per second, in increments of 2.5 m/s (in the diagram above, divide the captions by 2 for m/s).
192
192
@@ -221,7 +221,7 @@ If an arc becomes a full circle, that means the corresponding planet on that tra
221
221
222
222
The 3D model for this stand is provided by the project file `raspberry_pi_setup/monitor_stand.stl`. Below is how that model came out when printed using black ABS, 20% infill, at a cost of about $28 USD.
223
223
224
-

224
+

225
225
226
226
This is my second design of this stand, after making a few improvements from my first design. I made this version shorter, improved wire routing, and added an access hole where (using tweezers) it’s possible to access the SD card slot without disassembling the clock.
227
227
@@ -231,37 +231,37 @@ This is my second design of this stand, after making a few improvements from my
231
231
232
232
#### Front view
233
233
234
-

234
+

235
235
236
236
<br>
237
237
238
238
#### Side mounting panel
239
239
240
240
The side panel has a place to attach a quarter-wave 433 MHz antenna, a clip to hold a 433 MHz receiving module, a hole for a female SMA coaxial connector for GPS, and (on the reverse side) a mounting position for a DHT22/AM2302 temperature/humidity sensor.
241
241
242
-

242
+

243
243
244
244
<br>
245
245
246
246
#### Original monitor stand
247
247
248
248
This is the original stand that came with the 2560x1600 ELECROW 10.1" touchscreen monitor. It’s not a bad stand in general, but, with the Raspberry Pi attached to the back of the monitor, the cables and wires were an awkward fit. The stand had to be skewed off-center quite a bit for it to work at all.
The stand is attached using 4 M3 x 10 mm wafer-head machine screws. Please note that M4 is the typical size screw for a VESA mount of this size (75 mm square spacing), so it’s a little unusual M3s were needed instead.
257
257
258
-

258
+

259
259
260
260
<br>
261
261
262
262
#### Stand attached to monitor, side view
263
263
264
-

264
+

265
265
266
266
<br>
267
267
@@ -271,22 +271,22 @@ The long arm that reaches out from the side panel is designed so the temperature
271
271
272
272
A small piece of non-conductive foam wedged behind the RF module helps keep the module in place.
273
273
274
-
<br>
275
-

274
+
<br>
275
+

276
276
277
277
<br>
278
278
279
279
#### Raspberry Pi Model 4 attached to stand-offs
280
280
281
281
I was a bit uncertain how well machine screws would work with the stand-offs that I’d designed, since I wanted them to function like self-tapping screws. As it turned out, the four M2.5 x 6 mm pan-head machine screws fit quite nicely and snugly, without being difficult to turn. If the Pi were to be repeatedly removed and reattached, however, this design might not be durable enough. For my current purposes, it’s just fine.
282
282
283
-

283
+

284
284
285
285
<br>
286
286
287
287
#### GPS HAT added, and components wired together
288
288
289
-

289
+

290
290
291
291
<br>
292
292
@@ -300,13 +300,13 @@ The odd reddish-brown object at the end of the USB cable is an adapter that bloc
300
300
301
301
While this would actually be a good thing if it meant I could hook up the clock with only one power cable, not two, the power from the monitor only keeps the Raspberry Pi running *after* the Pi has been separately powered up using its own power supply. The result is no simplification of the power connections, but merely making it harder to shut the clock down without adding this power isolating adapter.
302
302
303
-

303
+

@@ -420,7 +420,7 @@ For reference, here’s a breakdown of the steps performed by a full installatio
420
420
421
421
When using a small but high resolution display like the 2560x1600 ELECROW 10.1" monitor I chose to use, which is nearly 300 ppi (~120 pixels per cm) you’ll typically want to apply a scaling/zooming factor to the display, otherwise text and other details will be impractically small to see. With earlier releases of Raspbian this kind of scaling would be done using the pixel doubling option below:
With later versions of Raspbian all you need to do is set a lower display resolution than the native resolution of your display to get sharp but smooth text instead of very tiny text.
0 commit comments