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

2972 Commits

Author SHA1 Message Date
Chris Cummer
50e2281c63 WTF-1070 Read response body data before closing
Signed-off-by: Chris Cummer <chriscummer@me.com>
2021-03-27 18:45:04 -07:00
Chris Cummer
2fd9d623a1 Regenerate all-contributors
Signed-off-by: Chris Cummer <chriscummer@me.com>
2021-03-27 14:02:43 -07:00
Chris Cummer
3592ba45ca Add @inetAnt as a contributor 2021-03-27 14:01:41 -07:00
Chris Cummer
0b4b503086
Update CHANGELOG.md 2021-03-27 13:43:24 -07:00
Antoine Meillet
9fb57845ed
Add Yahoo Finance module (#1066)
* Move finnhub to a stocks folder

As I am preparing an other stocks data provider, let's move `finnhub` to
a stocks folder that will host the others providers.

* Use go-pretty v6

Will be used by the new stock provider module, so let's just upgrade
this one to reduce the number of dependencies.

* Add Yahoo Finance module

Yahoo Finance provides an API for which `piquette/finance-go` is a
powerful client. This new module leverages this module to integrate all
indices provided by Yahoo Finance (international stocks, crypto,
options, currencies...)

Sample config:
```yaml
    yfinance:
      title: "Stocks 🚀"
      symbols:
        - "MSFT"
        - "GC=F"
        - "ORA.PA"
      sort: true
      enabled: true
      refreshInterval: 60
      position:
        top: 1
        left: 0
        height: 1
        width: 1
```
2021-03-27 13:42:28 -07:00
Chris Cummer
ac0aafc04d
Update CHANGELOG.md 2021-03-23 03:40:23 -07:00
Chris Cummer
4d2027d983 Attempt to fix the gorelease configuration
Signed-off-by: Chris Cummer <chriscummer@me.com>
v0.36.0
2021-03-23 03:32:28 -07:00
Chris Cummer
a22c197d9b
Update CHANGELOG.md 2021-03-23 03:20:14 -07:00
David Bouchare
2ec2fc37a5
Fix defer execution (#1065) 2021-03-23 03:19:29 -07:00
Chris Cummer
f71a326fe2
Update CHANGELOG.md 2021-03-19 21:46:39 -07:00
Lukas Kämmerling
f844ff3afb
Update to Go 1.16 (#1064)
This commit updates the used Go version to 1.16. The biggest benefit from this is that with Go 1.16 (and the latest Goreleaser) support for Apple Silicon is available, therefore wtf would work on Apple Silicon.

Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
2021-03-19 21:45:23 -07:00
Chris Cummer
582557e408
Update CHANGELOG.md 2021-03-19 21:44:53 -07:00
Lukas Kämmerling
9446886b37
Fix HackerNews Widget (#1063)
After commit 49109c77f719cedc5c7f15bcf255f952d2c3b90d the HackerNews widget did not work as expected. It failed with a error message "http: read on closed response body". This commit fixes the underlying reader issue by reading the whole request body within the apiRequest function and returning the []bytes of the response instead of *http.Response. If we want to continue to return *http.Response this would lead to the problem that the caller (GetStory() and GetStories()) always need to close the Request Body. The ways before this MR is a bit problematic because the defer gets executed when the function is "done", so it closes the Body already before the utils.ParseJSON can read it.

Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
2021-03-19 21:43:54 -07:00
Chris Cummer
0035e479c8
Update CHANGELOG.md 2021-03-18 22:01:18 -07:00
Chris Cummer
6f0605d145 Add @LKaemmerling as a contributor 2021-03-18 21:59:56 -07:00
Lukas Kämmerling
0a89786826
Enhance Kubernetes module with Replica Count (Deployments) (#1062)
This commit adds the ReadyReplicas and Total Replicas count, the information is useful if you want to look over a new release of your application and k8s and want to know how many pods are ready/started from k8s. Otherwise the deployment option of this module is not that useful.

Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
2021-03-18 21:57:40 -07:00
David Bouchare
02db55a136
Fix city key (#1061)
* Fix city

* Trigger Build to see if lint is still failing
2021-03-15 20:27:49 -07:00
Chris Cummer
15769f21d0
WTF-1057 Use long-form git SHA in staticcheck github action (#1058)
Signed-off-by: Chris Cummer <chriscummer@me.com>
2021-03-01 08:55:08 -08:00
David Bouchare
cf3229e0cd
Add a few more tests (#1056)
* Add test for SumInts()

* Add a few more tests in utils

* Minor update for SumInts test
2021-03-01 08:33:42 -08:00
Chris Cummer
7c12523139 Add @xntrik as a contributor 2021-02-04 00:52:26 -08:00
Chris Cummer
369a59e25d
Update CHANGELOG.md 2021-02-04 00:51:45 -08:00
Christian Frichot
a8b0fa897a
Add Asana Module (#1052)
* Add Asana Module

* Add Asana Module to the widget_maker

* Asana Module - addressing linting concerns

* Asana Module - ran go mod tidy
2021-02-04 00:51:03 -08:00
David Bouchare
6ecec4f149
Update test (#1050) 2021-01-24 20:49:10 -08:00
Chris Cummer
f48b17269c Add @pgaxatte as a contributor 2021-01-22 10:03:10 -08:00
Pierre Gaxatte
6fcd74bb82
Fix documentation links to wtfutil.com (#1048) 2021-01-22 10:02:01 -08:00
Fredrik Steen
ddfc439c41
Fix for potential runtime panic (#1046)
Switch error checking around, so we don't check the StatusCode before
handling client errors.
2021-01-20 09:03:27 -08:00
Chris Cummer
7c3d476def
Update CHANGELOG.md 2021-01-16 12:37:35 -08:00
David Bouchare
49109c77f7
[several modules] Close the response body (#1040) 2021-01-16 12:36:29 -08:00
Chris Cummer
a5f66588e7
Update CHANGELOG.md 2021-01-16 12:35:44 -08:00
Fredrik Steen
2341446376 Healthcecks module
Healthchecks.io is a service for monitoring cron jobs and similar
periodic processes.

Hosted: https://healthchecks.io/
API-Doc: https://healthchecks.io/docs/api/
GitHub: https://github.com/healthchecks/healthchecks

This module can be used both with hosted and self-hosted healthchecks.
2021-01-16 12:33:15 -08:00
Chris Cummer
9a703dd78b Deleted the Finnhub client test. It requires an API key to pass, and thats not acceptible
Signed-off-by: Chris Cummer <chriscummer@me.com>
2021-01-16 12:32:52 -08:00
Chris Cummer
767a18ad86
Update CHANGELOG.md 2021-01-03 13:57:17 -08:00
Chris Cummer
f55024b352
Update CHANGELOG.md 2021-01-03 13:56:56 -08:00
Chris Cummer
4b8b735a46 Add @zye1996 as a contributor v0.35.0 2021-01-03 10:35:23 -08:00
Chris Cummer
8068ffeb7d
Update CHANGELOG.md 2021-01-03 10:34:44 -08:00
zye1996
5783473cfa
fix requests url for cryptolive (#1042)
Co-authored-by: yzy <zhenyi@sensor.com>
2021-01-03 10:32:37 -08:00
Chris Cummer
d341c21f4b
Add support for the 'language' setting in the covid module (#1039)
Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-12-29 13:46:08 -08:00
Chris Cummer
b434e79b9b
Update CHANGELOG.md 2020-12-29 13:37:50 -08:00
David Bouchare
2f2df04478
[modules] Add new covid tracker module (#1037)
* Add draft of covid module

* Work on pointers

* Add country stats

* Remove recovered, stays at 0

* Handle response code

* One struct for both

* List of countries

* Add test

* Add test for countries

* Fix typos

* Format numbers based on language/locale
2020-12-29 13:33:14 -08:00
Chris Cummer
d7da659b8b
Add support for user-configuration language tag specification. (#1038)
Adds a new top-level configuration key called "language":

```yaml
wtf:
  langauge: "ja-JP"
```

Users can now define which BCP 47 language tag to use to format any
text or numbers that currently support localization. Defaults to
"en-CA".

Acceptible values: any BCP 47 language tag recognized by the Go
"language" package.

Good luck to you figuring out what that cannonical list is. After a
morning of trying to suss it out, I have no idea.

Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-12-29 12:14:20 -08:00
Chris Cummer
fd794707cd
☢️ WTF-1031 Support multiple simultaneous configurations (#1032)
* WTF-1031 Rename WtfApp.app to WtfApp.tviewApp

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-1031 Add scaffolding for main to support multiple WtfApp instances

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-1031 WIP

Signed-off-by: Chris Cummer <chriscummer@me.com>

* Remove common functionality from KeyboardWidget and into Base

Signed-off-by: Chris Cummer <chriscummer@me.com>

* Augment with some descriptive comments

Signed-off-by: Chris Cummer <chriscummer@me.com>

* Add full support for multiple app instances via the AppManager.

Still to do:

* Config support for multiple apps/multiple config files
* The ability to switch between apps

Signed-off-by: Chris Cummer <chriscummer@me.com>

* Move SetTerminal out of main and into its own file

Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-12-21 03:25:41 -08:00
David Bouchare
9ba22f656b
Close the response body (#1036) 2020-12-18 20:20:05 -08:00
Chris Cummer
c41411b97e Fix the goreleaser action 'on' clause
Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-12-06 11:38:15 -08:00
Chris Cummer
56469d8db3
Add goreleaser github action (#1035)
Creates a new release when a new tag is pushed up to GitHub.

Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-12-06 11:36:32 -08:00
Chris Cummer
4cde3c7781
Update CHANGELOG.md 2020-12-02 13:56:33 -08:00
Chris Cummer
2246300740 Add @stone as a contributor 2020-12-02 13:55:17 -08:00
Chris Cummer
190b06182f Merge branch 'kris' of github.com:stone/wtf into stone-kris 2020-12-02 13:53:55 -08:00
David Bouchare
b2168be56e
Edit comment (#1033) 2020-12-02 13:52:06 -08:00
Fredrik Steen
cf808dd09b Fix inconsistent configuration name. 2020-11-30 17:44:28 +01:00
Fredrik Steen
90d672b2f2 Add krisinformation module
A module to parse the feed from: https://www.krisinformation.se/en

 Krisinformation.se is a web site run by the Swedish Civil Contingencies Agency
that compiles and convey warnings, alerts, and emergency information from
Swedish authorities to the public.

Features:

 - Filter on country (all messages)
 - Filter on county (only show county specific messages)
 - Distance (only show message within a certain distance)
 - Set a max age for displaying messages
 - Set a maximum number of messages displayed
2020-11-30 16:26:51 +01:00