Commit graph

18 commits

Author SHA1 Message Date
David Dunham
504098ed74 Fix multi word fixed location
If you set the @dracula-fixed-location to "San Diego, California" it
ends up looking at "San" which is somewhere in South Korea. This occurs
for any fixed-location that has a space. Something like
"Portland, Oregon" can be modified to "Portland,Oregon" and still work
but we can't remove the space from "San Diego". The reason that spaces
in the fixed location break the backend request is that dracula.sh loses
everything after the space.

Q: Why does the fixed-location end up as "San"?
A: In dracula.sh the fixed-location is not wrapped in quotes when
embedded in the status-right string.

A: In weather_wrapper.sh the call to weather.sh does not wrap the
fixed-location argument with quotes.

Q: When these are fixed why do we get a broken link?
A: Since we are calling a web service using a url, we need to escape
the spaces by changing them to %20
2024-01-03 17:59:07 -08:00
adrianmihalko
b06419366c Enable custom location for weather plugin 2021-12-03 18:49:34 +01:00
Sabato Luca Guadagno
d00c245d4e consistent formatting across all scripts 2021-07-06 10:22:36 +02:00
yzenati
8aa94372c3 Fix the merge conflicts 2020-10-17 20:37:01 +02:00
Ethan Edwards
ca26328453
Fix Locale issue
Caused some users to have incorrect info because some text manipulation
tools were getting confused.
2020-10-16 18:38:29 -04:00
yzenati
e7a4bcf09f Only one space between the unicode and the temperature 2020-10-16 13:33:21 +02:00
yzenati
4020ae1d86 Remove the extra space at the beginning of the result of curl command 2020-10-16 13:32:28 +02:00
yzenati
06f257d482 Change the way the separation of weater_condition and temperature are made, so it can take minus 0 temperature in celcius 2020-10-16 13:26:28 +02:00
yzenati
9d9a5d2b14 Correct the comment of the curl command 2020-10-16 12:41:02 +02:00
yzenati
87d43d0cc2 Remove a extra curl in fetch_weather_information 2020-10-16 12:32:43 +02:00
yzenati
f5c0789d07 Add an option to disable the location information in the weather 2020-10-16 12:06:16 +02:00
Hugo Licon
4c5cd4a9e3 replace awk by cut 2020-08-04 19:50:02 -06:00
Hugo Licon
304dd700c9 Show unicode characters for forecast, remove plus
Show unicode characters for forecast instead of an emoji.
Remove the plus sign for positive degrees.
Show city, region instead of city, country
2020-07-13 22:02:47 -06:00
Hugo Licon
107d7ab440 add international support for weather module
It uses [wttr.in](https://github.com/chubin/wttr.in) to get the weather information and the current city based on the IP address
2020-07-05 18:22:47 -06:00
Moisés Carvalho
ba6412a5b9 Fix spacing when temperatures isn't available 2020-05-30 11:32:28 -03:00
Dane Williams
60675a1710 celsius option 2020-04-29 11:33:51 -07:00
Conor Murphy
da1845eb8a
Handling the 429 response limit error (#10)
* switching over

* should just be a little schemeski

* changed exit to exit_codes idk if that matters

* yuh

* yuh

* yuh

* yuh

* wtf

* yuh

* trying out new format

* trying out new format

* trying out new format

* trying out new format

* trying out new format

* so annoying having to push every time you test

* so annoying having to push every time you test

* this might actually work now

* this might actually work now

* this might actually work now

* yeet

* yeet

* wtf

* wtf

* wtf

* bet

* final edit for handling request limit reached on weather

* possibly functional error checking method

* did we do it

* properly utilizing global variables
2020-04-11 10:25:44 -07:00
Dane Williams
b1df587d6e reorganized files 2020-03-15 23:15:26 -07:00
Renamed from weather.sh (Browse further)