Shows you the current barometric pressure in inches / in (US, Imperial) or millibars / mb (Metric), with some guidance about what the pressure, combined with the state of change, means for your short-term weather forecast.
Right-click the skin and select "Edit Weather Variables" to set your location code and change from inches (en-US) to millibars (en-GB).
Properly read, a barometer is all you really need to know what is likely to happen for the next couple of hours.
Code: Select all
if tonumber(convertedPressure) <= 28.59 then
if string.find(currentChange, 'falling') then
currentDescription = 'Increasingly Stormy'
elseif string.find(currentChange, 'steady') then
currentDescription = 'Remaining Stormy'
elseif string.find(currentChange, 'rising') then
currentDescription = 'Stormy, but Improving'
end
end
if tonumber(convertedPressure) >= 28.60 and tonumber(convertedPressure) <= 29.50 then
if string.find(currentChange, 'falling') then
currentDescription = 'Rain Forecasted'
elseif string.find(currentChange, 'steady') then
currentDescription = 'Remaining Rainy'
elseif string.find(currentChange, 'rising') then
currentDescription = 'Rainy, but Improving'
end
end
if tonumber(convertedPressure) >= 29.51 and tonumber(convertedPressure) <= 30.09 then
if string.find(currentChange, 'falling') then
currentDescription = 'Changing toward Rain'
elseif string.find(currentChange, 'steady') then
currentDescription = 'Change Possible'
elseif string.find(currentChange, 'rising') then
currentDescription = 'Changing toward Fair'
end
end
if tonumber(convertedPressure) >= 30.10 and tonumber(convertedPressure) <= 30.59 then
if string.find(currentChange, 'falling') then
currentDescription = 'Fair, but Degrading'
elseif string.find(currentChange, 'steady') then
currentDescription = 'Remaining Fair'
elseif string.find(currentChange, 'rising') then
currentDescription = 'Fair, and Improving'
end
end
if tonumber(convertedPressure) >= 30.60 then
if string.find(currentChange, 'falling') then
currentDescription = 'Very Dry, but Degrading'
elseif string.find(currentChange, 'steady') then
currentDescription = 'Remaining Very Dry'
elseif string.find(currentChange, 'rising') then
currentDescription = 'Increasingly Very Dry'
end
end