1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

161 Commits

Author SHA1 Message Date
Chris Cummer
89806730a0
Merge branch 'master' into gcal-until-update 2018-06-19 15:29:15 -07:00
Chris Cummer
12e4260c84
Merge branch 'master' into master 2018-06-19 10:11:36 -07:00
Chris Cummer
bb01ddf93d
Merge branch 'master' into gcal-until-update 2018-06-19 07:09:12 -07:00
Anand Sudhir Prayaga
65ef6fc9eb Rename widget logging to logger to maintain consistency 2018-06-19 14:22:08 +02:00
Bryan Austin
1077adbff2 Update GCal module's "time until event" text more frequently
While it's reasonable to have a refresh interval of several minutes
between the GCal module hitting the server, the fact that the module
(helpfully) displays the time until an event means that as times
approach zero, they become relatively inaccurate - "3m" might show
up next to a meeting that you were supposed to be in 2 minutes ago.
(don't worry, that hasn't happened to me yet)

This change introduces a goroutine to the GCal module that will
update the module text using the most recently cached copy of
events. By default, it runs every 30 seconds (this could be changed
to 0 to make it opt-in if desired) or however many seconds is
specified by the new config option `wtf.mods.gcal.textInterval`.

To make sure the goroutine doesn't cause any synchronization issues
if a text update were to trigger at the same time as a module
refresh, this change also adds the use of `sync.Mutex` to gate
setting GCal's text. Since both mutexes and having a goroutine within
individual modules are not the sort of thing any other code in
`wtf` does at this point in time, I'm definitely open to feedback
on whether there might be better ways to do this.

Additionally, the change in `wtf.go` fixes an issue I noticed when
testing if my `Disable()` function worked - the main `Widgets`
array wasn't being cleared out after disabling all widgets before
re-creating new copies of them, so it still held pointers to the
old ones.
2018-06-18 17:45:04 -07:00
retgits
e6d45e4eeb Added trello widget 2018-06-18 13:38:24 -07:00
Chris Cummer
6acf1775b8 Rename logging/ to logger/ 2018-06-16 22:17:10 -07:00
Chris Cummer
66b69471d0 Properly scope Config to the wtf package and remove it as a dependency from everywhere else 2018-06-16 14:59:22 -07:00
Chris Cummer
09a4139922 Add a widget to display the log file in reverse order 2018-06-16 14:04:48 -07:00
Chris Cummer
582eba4c7f Make flags package responsible for its own display 2018-06-16 12:46:16 -07:00
Chris Cummer
4496cc7c31 Clean up the flag and config handling in main() 2018-06-16 09:14:24 -07:00
Chris Cummer
dd42080ed8 Move responsibility for version display out of flags 2018-06-16 08:37:55 -07:00
Chris Cummer
4a00c114ce Move command line flags into it's own module 2018-06-16 08:31:11 -07:00
Chris Cummer
bbef2bfa78 Rename the help function to a better name 2018-06-16 05:14:53 -07:00
Chris Cummer
6bbefb3fb9 Add Display as a concept to separate setup from rendering a bit more 2018-06-15 16:38:11 -07:00
Chris Cummer
55be452120 Clean up wtf.go 2018-06-15 03:48:31 -07:00
Chris Cummer
d751821c34 Move IP address modules and weather modules into own subdirectories 2018-06-13 09:46:35 -07:00
Chris Cummer
52f719d342 Move Blockfolio module into cryptoexchanges/ 2018-06-13 09:42:55 -07:00
Chris Cummer
55b594569c
Merge branch 'master' into master 2018-06-13 02:52:03 -07:00
Chris Cummer
27a7b45384
Merge branch 'master' into master 2018-06-13 02:39:30 -07:00
Chris Cummer
1de431d9f6 Fix bad merge of the Gitlab module 2018-06-13 02:36:40 -07:00
Chris Cummer
957214ff8b
Merge branch 'master' into master 2018-06-13 02:23:44 -07:00
Chris Cummer
ab210fd040 Add version number to Gitlab module docs 2018-06-13 02:22:01 -07:00
Chris Cummer
60e6dc2f83 Merge in Gitlab module 2018-06-13 02:17:57 -07:00
FengYa
f3a55a1127 change name of the module 2018-06-13 02:15:06 -07:00
Michael Cordell
7825fbe1b0 Add circleci module
Needs a Circle API token, which can be found at
https://circleci.com/account/api. This is passed under the environmental
variable WTF_CIRCLE_API_KEY.
2018-06-13 02:15:06 -07:00
Chris Cummer
e1edb929e9 Add cfg/ as a top-level package concept 2018-06-13 02:15:06 -07:00
Chris Cummer
5ee5557878 Make Google Spreadsheet widget work with new module lazy-loading 2018-06-13 02:15:06 -07:00
Chris Cummer
1b00c032bc Make Bargraph widget work with new module lazy-loading 2018-06-13 02:14:04 -07:00
Andrew_Zol
aace78285d Added gspreadsheets module 2018-06-13 02:14:04 -07:00
FengYa
cd983a8e8f create another module to use another ipinfo api 2018-06-13 02:14:04 -07:00
David Barda
5c6f026db1
Update wtf.go 2018-06-12 02:00:24 +03:00
David Barda
11c555f213
Merge branch 'master' into master 2018-06-10 15:30:14 +03:00
Andrew
5c667fe4d6 Fixed order of packages 2018-06-10 03:53:21 +03:00
Andrew
cec100502f Removed unnecessary changes. 2018-06-10 03:47:14 +03:00
Andrew
a558ee948f Reverted names 2018-06-10 03:36:53 +03:00
Andrew
bd0f3e1e56 Fixed name 2018-06-10 03:19:26 +03:00
andrewzolotukhin
365bb7e562
Merge branch 'master' into master 2018-06-10 03:13:30 +03:00
Andrew
3f7f804e62 Merged from upstream 2018-06-10 03:03:50 +03:00
Chris Cummer
be06d56878
Merge branch 'master' into circleci-module 2018-06-09 16:59:48 -07:00
Andrew
6288c70156 Returned names of repo 2018-06-10 02:50:16 +03:00
Andrew
e633d4d617 Added widget for blockfolio 2018-06-10 01:48:01 +03:00
Andrew
77823419b5 Temporary changed username. 2018-06-10 00:16:40 +03:00
DavidB
eb547136cf Added simple jenkins module that enables watching jenkins views build status 2018-06-09 20:49:12 +03:00
FengYa
9e47f8f42e
Merge branch 'master' into another_ipinfo_api_187 2018-06-09 23:11:12 +08:00
FengYa
97aafd60f9 change name of the module 2018-06-09 23:06:51 +08:00
Michael Cordell
994ddf0422 Add circleci module
Needs a Circle API token, which can be found at
https://circleci.com/account/api. This is passed under the environmental
variable WTF_CIRCLE_API_KEY.
2018-06-09 08:01:54 -07:00
Chris Cummer
d2dfcd8978 Add cfg/ as a top-level package concept 2018-06-09 03:58:45 -07:00
Chris Cummer
e319ab69e7 Make Google Spreadsheet widget work with new module lazy-loading 2018-06-08 15:57:22 -07:00
Chris Cummer
60d41266cd
Merge branch 'master' into master 2018-06-08 15:48:55 -07:00