We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 298b022 + 4e4ec2a commit 59b7648Copy full SHA for 59b7648
segments/weather.sh
@@ -97,8 +97,8 @@ __yrno() {
97
fi
98
99
jsonparser="${TMUX_POWERLINE_SEG_WEATHER_JSON}"
100
- degree=$(echo "$weather_data" | $jsonparser -r .properties.timeseries[0].data.instant.details.air_temperature)
101
- condition=$(echo "$weather_data" | $jsonparser -r .properties.timeseries[0].data.next_1_hours.summary.symbol_code)
+ degree=$(echo "$weather_data" | $jsonparser -r '.properties.timeseries | .[0].data.instant.details.air_temperature')
+ condition=$(echo "$weather_data" | $jsonparser -r '.properties.timeseries | .[0].data.next_1_hours.summary.symbol_code')
102
elif [ -f "${tmp_file}" ]; then
103
__read_tmp_file
104
0 commit comments