-
Notifications
You must be signed in to change notification settings - Fork 0
/
Notes
45 lines (27 loc) · 1.8 KB
/
Notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
4/4/18
The general plan I'm thinking is:
1) Use the "alarm clock" functionality of the PaPiRus HAT to boot the raspberry pi every 15 minutes
2) create a DASH script that checks for any attached USB device on startup as
per : https://www.raspberrypi.org/documentation/linux/usage/rc-local.md
If there is an attached USB device, the DASH script stops and does nothing else.
If there is not a USB device attached, the DASH script would update the rp.weather repo from github
to get the latest code, then execute the code to pull back the latest weather, and write that to
the epaper HAT along with a time stamp.
If anything fails (Wifi is not available, timeout, whatever), then the script logs the error and proceeds.
At the end of the DASH script, the pi is shutdown.
3) The rp.weather repo will include a python script that pulls from the Dark Sky API (https://darksky.net/dev)
the weather, and pushes that forecast to the epaper along with a timestamp.
10:00 PM
Got the base python script working (yah!)
Now, on to getting the bash script working to detect a keyboard on startup etc.
10/21/18
The current probably seems to be that when I run startup.sh, the update_weather.py program
can't get the dark_sky_api_key from the local environment. And yet, when I run
update_weather.py directly, it works just fine. Why would that be the case?
10/28/18
So, the current problem is, the icon that is being displayed RIGHT NOW is for "snow". But it is
not going to snow... so what is up with that?
10/2/2019
Am trying starting the scheduler from a service using instructions found here: https://www.raspberrypi.org/documentation/linux/usage/systemd.md
12/6/2019
If you want to check the logs for whether the weather.service started successfully, run sudo journalctl -u weather.service. i think I got it to start on startup, we'll see.