Updated wf-tool to not include version of wfetch because it will basicly work with all wfetch versions and changed how wfetch shows json responce in debug mode.

This commit is contained in:
koffeejava
2026-03-14 18:24:55 -06:00
parent 79d3741b44
commit 07519a2258
2 changed files with 2 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ OptionParser.parse do |parser|
exit(0) exit(0)
end end
puts "#{orange}#{bold}wfetch installer 1.0.0#{reset}" puts "#{orange}#{bold}wfetch installer#{reset}"
File.copy("data/wfetch", "/usr/bin/wfetch") File.copy("data/wfetch", "/usr/bin/wfetch")

View File

@@ -63,7 +63,7 @@ module Wfetch
data = JSON.parse(response.body.lines.join) data = JSON.parse(response.body.lines.join)
if debug == true if debug == true
puts data puts "\n#{data}"
end end
feelslike_f = data["current"]["feelslike_f"].to_s.to_f feelslike_f = data["current"]["feelslike_f"].to_s.to_f
@@ -98,7 +98,6 @@ module Wfetch
10 = \"Pressure: {pressure_mb} MB\" 10 = \"Pressure: {pressure_mb} MB\"
11 = \"Description: {orange}{bold}{description}{reset}\" 11 = \"Description: {orange}{bold}{description}{reset}\"
12 = \"{goodbye}\" 12 = \"{goodbye}\"
") ")
elsif test_config elsif test_config
puts "\nPlease paste the path of the config" puts "\nPlease paste the path of the config"