Giter Site home page Giter Site logo

Comments (4)

erikw avatar erikw commented on June 7, 2024

Hey, sry slow reply.

The weather segment works for me with the provider yrno and with both C and F units. Does Celsius work for you or it's also blank?

Notice that if you change some weather configuration, it will take a while until it takes effect because the result is cached, to not call the weather provider too often. You can shorten the cache but changing here:

# Prints the current weather in Celsius, Fahrenheits or lord Kelvins. The forecast is cached and updated with a period of $update_period.
# The update period in seconds.
update_period=600

If also Celsius is not showing and data, please continue using these debugging instructions to find out what's going on. It could be anything from missing required tools or configuration that is slightly off ¯_(ツ)_/¯

https://github.com/erikw/tmux-powerline#debugging

from tmux-powerline.

mr-hespicable avatar mr-hespicable commented on June 7, 2024

Celsius works for me

from tmux-powerline.

mr-hespicable avatar mr-hespicable commented on June 7, 2024

++ export TMUX_POWERLINE_SEG_WEATHER_DATA_PROVIDER=yrno
++ TMUX_POWERLINE_SEG_WEATHER_DATA_PROVIDER=yrno
++ export TMUX_POWERLINE_SEG_WEATHER_UNIT=c
++ TMUX_POWERLINE_SEG_WEATHER_UNIT=c
++ export TMUX_POWERLINE_SEG_WEATHER_UPDATE_PERIOD=10
++ TMUX_POWERLINE_SEG_WEATHER_UPDATE_PERIOD=10
++ export TMUX_POWERLINE_SEG_WEATHER_GREP=grep
++ TMUX_POWERLINE_SEG_WEATHER_GREP=grep
++ export TMUX_POWERLINE_SEG_WEATHER_JSON=jq
++ TMUX_POWERLINE_SEG_WEATHER_JSON=jq
++ TMUX_POWERLINE_SEG_WEATHER_LAT=51.460190
++ TMUX_POWERLINE_SEG_WEATHER_LON=-0.294750
++ set +x
cat: /sys/class/power_supply/BAT1/status: No such file or directory
/home/leon/.config/tmux/plugins/tmux-powerline/segments/battery.sh: line 100: [: too many arguments
/h/home/leon/.config/tmux/plugins/tmux-powerline/segments/weather.sh: line 88: bc: command not found
/home/leon/.config/tmux/plugins/tmux-powerline/segments/weather.sh: line 89: [: : integer expression expected

and this is what it says when i use the stuff in #debugging

it seems that the problem lies in these lines:

up_to_date=$(echo "(${time_now}-${last_update}) < ${TMUX_POWERLINE_SEG_WEATHER_UPDATE_PERIOD}" | bc)
		if [ "$up_to_date" -eq 1 ]; then

from tmux-powerline.

mr-hespicable avatar mr-hespicable commented on June 7, 2024

the issue was i hadn't installed bc.
i hate my life 😭 im sorry for making this im literally so dumb
thanks anyway you helped me a lot <3

from tmux-powerline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.