Bradley M. Kuhn
5f1d54bf4b
This really should have had the loop first, then the test.
...
I am left wondering if there was actually I reason I wrote it the other way,
and no time to run git blame to see why.
2014-02-19 18:22:48 -05:00
Bradley M. Kuhn
9594aa730d
Fix #! line
2014-02-19 18:21:14 -05:00
Bradley M. Kuhn
f2f481bdb0
exit 1 on errors in all possible cases.
2014-02-19 18:21:06 -05:00
Bradley M. Kuhn
2067946044
If the export fails, abort this script,
...
to avoid checking in an empty directory that may have been left behind by the
failed export.
2014-02-10 08:53:35 -05:00
Bradley M. Kuhn
cff22b28ae
Move die from cleanup to be below test of directory writable.
...
It's possible this cleanup code is causing serious problems during failures,
because it's leaving us no ics files when the export fails. Probably it
would be better if we move aside the ics files and restore them later.
2014-02-10 08:53:02 -05:00
Bradley M. Kuhn
05deb600f8
Yet another hack on the formatting change.
2014-01-24 14:54:01 -05:00
Bradley M. Kuhn
e8fbe2dea2
Don't die when calendars aren't readable, rather,
...
just tell conky to display why no calendar is there.
2014-01-24 14:53:40 -05:00
Bradley M. Kuhn
c6f6b948f5
Use $LOCK_CLEANUP_CODE in more places; don't DieLog when no lock possible.
2014-01-24 09:34:38 -05:00
Bradley M. Kuhn
4079554096
Don't die badly when config file just isn't there.
...
Instead, give a message in the conky output, which is the better thing to do,
since the config file (at least for me) may be on a partition that hasn't
been mounted.
2014-01-24 07:02:22 -05:00
Bradley M. Kuhn
a496a9c1cc
Don't duplicate completely equivalent weather alerts.
2014-01-01 15:56:45 -05:00
Bradley M. Kuhn
c6c9f7095c
Better formatting.
2014-01-01 15:53:55 -05:00
Bradley M. Kuhn
94c6f646f5
Don't call espeak directly.
2013-12-31 16:51:11 -05:00
Bradley M. Kuhn
b070e8719e
Remove errant debugging print statement.
2013-12-31 16:51:02 -05:00
Bradley M. Kuhn
7229eac400
Handle different wind field.
2013-12-31 16:50:19 -05:00
Bradley M. Kuhn
b2a67fcc24
Hopefully last and final hack to fix the VPOS situation for images.
2013-12-31 16:50:11 -05:00
Bradley M. Kuhn
80583bd631
Popup/speak information about weather alerts, but don't do it repeatedly.
2013-12-31 16:49:37 -05:00
Bradley M. Kuhn
7afe9c2ecb
Improve finding of proper update time.
2013-12-29 17:55:47 -05:00
Bradley M. Kuhn
45ec43d85d
Add weather conditions to output. Fix windspeed.
2013-12-29 16:53:43 -05:00
Bradley M. Kuhn
7516706de1
Correct details about figuring out if we have forecast data from first source
...
or not.
2013-12-29 16:53:29 -05:00
Bradley M. Kuhn
e63a51ed16
Only modify this if it's defined.
2013-12-29 16:52:54 -05:00
Bradley M. Kuhn
27aa3c975f
Corrected reversed variable.
2013-12-29 16:26:48 -05:00
Bradley M. Kuhn
f8d27ac1fd
Print a header for conky-related output.
2013-12-29 16:22:45 -05:00
Bradley M. Kuhn
0822103e07
Remove blank line.
2013-12-29 16:22:12 -05:00
Bradley M. Kuhn
c8644ae826
Support for accuweather forecast in addition to USA National Weather Service.
...
By default, the script now "falls back" to accuweather forecast data if the
USA National Weather Service data appears not to be there (based on the
'updatetime' field.
The accuweather plugin uses a different nomenclature, and as such, the
LOCATION input can now have a '|' in it, and the | left hand side is for the
National Weather Service and the right hand side is for the accuweather
location.
Note finally that you can get *just* the Accuweather data by putting
'FORCE_ACCUWEATHER' as the left hand side of the | symbol.
2013-12-29 16:22:07 -05:00
Bradley M. Kuhn
6ce1883e20
Add windSpeed to the values we ignore when empty or N/A. Fix empty on others.
2013-12-29 16:03:09 -05:00
Bradley M. Kuhn
0161986fc5
Properly handle missing windgust and feelsLike values.
2013-12-29 16:01:01 -05:00
Bradley M. Kuhn
63196d6d10
Script to run calendar and handle git details.
2013-11-30 14:59:08 -05:00
Bradley M. Kuhn
8cb5021d40
Do not duplicate lines in the proposed diary.
2013-11-30 14:58:51 -05:00
Bradley M. Kuhn
0d08eb65f4
Add filename to the emacs proposed file.
2013-11-30 14:49:37 -05:00
Bradley M. Kuhn
f1f3d31199
Fix bad paste from -import script.
2013-11-30 14:45:43 -05:00
Bradley M. Kuhn
b590029675
Print lines to standard output.
2013-11-30 14:45:22 -05:00
Bradley M. Kuhn
8aa1ba669e
use -q option on git; import User info.
2013-11-30 14:37:56 -05:00
Bradley M. Kuhn
381fefddd7
Create a temp file in the middle to avoid Emacs prompting.
2013-11-30 14:37:30 -05:00
Bradley M. Kuhn
12eb15927c
Corrected name of git.
2013-11-30 14:20:49 -05:00
Bradley M. Kuhn
d42a102bf4
Better test for executable.
2013-11-30 14:20:07 -05:00
Bradley M. Kuhn
1a2d1359dc
Add missing imports.
2013-11-30 14:14:46 -05:00
Bradley M. Kuhn
7299b95a22
Check that gitBinary is executable too.
2013-11-30 14:12:28 -05:00
Bradley M. Kuhn
b58047cb7c
Copy ReadConfig function from -export script.
2013-11-30 14:11:02 -05:00
Bradley M. Kuhn
da78998795
Warn really only needs one arg.
2013-11-30 14:08:56 -05:00
Bradley M. Kuhn
746bc48850
Bring over lock and log code from calendar-export, and its license.
2013-11-30 14:07:55 -05:00
Bradley M. Kuhn
6920a57e53
Fix spacing in licensing comments.
2013-11-30 14:07:37 -05:00
Bradley M. Kuhn
0eaae363eb
Fix various typos and problems.
2013-11-30 14:06:14 -05:00
Bradley M. Kuhn
0fd3c3256d
First pass at ParseEventAndAddProposed
2013-11-30 14:05:00 -05:00
Bradley M. Kuhn
883d9f8f51
HandlePropose function.
2013-11-30 13:41:49 -05:00
Bradley M. Kuhn
1cde493a58
Generate Diary from new events first hack.
2013-11-30 13:37:44 -05:00
Bradley M. Kuhn
a706e3c17c
Skeleton of new calendar import script.
2013-11-30 13:37:20 -05:00
Bradley M. Kuhn
1a31551d37
Add proper locking code.
2013-11-30 13:36:52 -05:00
Bradley M. Kuhn
68d950a036
Silently remove.
2013-11-29 17:15:23 -05:00
Bradley M. Kuhn
792465c4d7
Properly extract value.
2013-11-29 16:31:45 -05:00
Bradley M. Kuhn
1f55b78af5
use strict/warnings and fix bug that was obvious once used.
2013-11-29 16:27:00 -05:00