Londonmark wrote:Wonderful plugin - love the way it integrates with Fantastic Weather.
One request: would it be possible to pull the precipintensity field from Fantastic Weather so we could straightforwardly show the amount of precipitation expected hour by hour / day by day?
It's not only possible, but would be relatively easy to implement. In fact, I'll look at what other fields might also be useful--if you have any suggestions, don't be shy.
import datetime as dt
import matplotlib.pyplot as plt
import time
fig, (ax0, ax1, ax2, ax3) = plt.subplots(nrows=4, sharex=True)
x = [1558065600, 1558152000, 1558238400, 1558324800, 1558411200, 1558497600, 1558584000, 1558670400]
x = [dt.datetime.fromtimestamp(_) for _ in x]
y = [83.12, 82.45, 87.51, 85.27, 75.85, 81.72, 91.16, 86.74]
ax0.plot(x, y)
ax0.set_title('high temperature')
y = [4.25, 2.03, 7.77, 9.85, 6.73, 4.47, 5.97, 7.24]
ax1.plot(x, y)
ax1.set_title('wind speed')
y = [251, 86, 171, 224, 331, 147, 265, 319]
ax2.plot(x, y)
ax2.set_title('wind bearing')
# Precip intensity is in inches of liquid rain per hour.
y = [0.0021, 0.0035, 0.0018, 0.0017, 0.0001, 0.0000, 0.0001, 0.0003]
y = [_ * 24 for _ in y]
ax3.plot(x, y)
ax3.set_title('precip intensity')
plt.show()
Londonmark wrote:Looks pretty good (if not yet pretty!). Any way of showing wind speed as well as direction? Eg. Different sized bubbles?
Users browsing this forum: No registered users and 0 guests