bitbar-googlecal
bitbar-googlecal copied to clipboard
A plugin for BitBar that shows your upcoming Google Calendar events.
BitBar Google Calendar Plugin 
A plugin for BitBar that shows your upcoming Google Calendar events.

Requirements
Installation
via BitBar CLI
bitbar install Time/googlecal.30m.js
Manually
bitbar://openPlugin?title=Google%20Calendar&src=https://raw.githubusercontent.com/kodie/bitbar-googlecal/master/googlecal.30m.js
Settings
These are some settings that you can change by setting them in your ~/.bitbarrc file:
-
clientId- The Google API Client ID- Default: (The BitBar Google Calendar Client ID)
- If you'd like to (or need to), you can get your own here: https://console.developers.google.com/start/api?id=calendar
-
clientSecret- The Google API Client Secret- Default: (The BitBar Google Calendar Client Secret)
- See notes for
clientId
-
clientRedirect- The redirect URL defined when setting up the Google API app- Default:
http://localhost:3000 - You will probably want to leave this alone. Currently the way it is set up is the user will be redirected to a page where the plugin will be able to capture the autorization code provided by Google.
- Default:
-
calendarId- The ID(s) of the calendar(s) you would like to display events from- Default:
primary - Example:
primary,[email protected] - Can be an array or a comma separated string
- Default:
-
dateColor- The font color of the dates- Default:
false - Example 1:
dateColor="red" - Example 2:
dateColor="#ff0000" - Setting to
falseor blank will use the system default - Color names or HEX values can be used
- Default:
-
dateFont- The font of the dates- Default:
false - Example:
dateFont="Verdana" - Setting to
falseor blank will use the system default
- Default:
-
dateFormat- The format that dates are displayed in- Default:
dddd M/D - For more information on date formatting, see: https://momentjs.com/docs/#/displaying/format/
- Default:
-
dateSize- The font size for the dates- Default:
12 - Example:
dateSize="16" - Setting to
falseor blank will use the system default
- Default:
-
days- The number of days (including today) to display events for- Default:
7 - Can be set to
falseto display events up tolimitregardless of the day
- Default:
-
eventColor- The font color of the events- Default:
false - Example 1:
eventColor="green" - Example 2:
eventColor="#00ff00" - Setting to
falseor blank will use the system default - Color names or HEX values can be used
- Default:
-
eventFont- The font of the events- Default:
false - Example:
eventFont="Georgia" - Setting to
falseor blank will use the system default
- Default:
-
eventLength- The number of characters to truncate events at (including times)- Default:
80 - Example:
eventLength=false - Setting to
falseor blank will disable truncating
- Default:
-
eventSize- The font size for the dates- Default:
false - Example:
eventSize="16" - Setting to
falseor blank will use the system default
- Default:
-
expandEvents- Whether to show events that span multiple days on each day- Default:
true
- Default:
-
limit- The max number of events to display- Default:
25 - If
daysis set tofalse,limitdecides how many events are displayed
- Default:
-
showAllOfFirstDay- Whether to show all of the first day's events, regardless if they happened earlier that day- Default:
true
- Default:
-
showEmptyDays- Whether to show days that don't have any events- Default:
false - This currently only works if
daysis NOT set tofalse
- Default:
-
serverHost- The host to use for the listening server when authorizing the Google account- Default:
localhost - Should match the host used in
clientRedirectURL
- Default:
-
serverPort- The port to use for the listening server when authorizing the Google account- Default:
3000 - Should match the port used in
clientRedirectURL
- Default:
-
startDate- The date for the calendar to start pulling events from- Default: Now
- Example:
5/1/2017
-
textToday- The text to display next to today's date- Default:
(Today) - Example:
textToday="" - Set to blank to not display any text
- Default:
-
textTomorrow- The text to display next to today's date- Default:
(Tomorrow) - Example:
textTomorrow="" - Set to blank to not display any text
- Default:
-
timeFormat- The format that times are display in- Default:
h:mma - For more information on time formatting, see: https://momentjs.com/docs/#/displaying/format/
- Default:
-
tokenFile- The file where token credentials are stored- Default:
.googlecal.json
- Default:
Example
[googlecal]
dateFormat=ddd MM/DD/YYYY
days=false
showAllOfFirstDay=false
License
MIT. See the License file for more info.