Add Calm to winds
If wind speed is 0, display Calm instead of 0@0
I'm getting some syntax errors in this file now. I'm not sure, but it seems that
if condition["windSpeed"] == 0: draw.text((x, top + 15), "Calm", font=fontSmall, fill=255) else: draw.text((x, top + 15), condition["windDir"] + "@" + str(condition["windSpeed"]) + ("G" + str(condition["windGust$ <<<< this ends abruptly should it be: str(condition["windGust"]) ????
draw.text((x + 64, top + 15), str(condition["vis"]) + "SM " + condition["obs"], font=fontSmall, fill=255) <<<< I think this line should be: draw.text((x + 64, top + 15), str(condition["vis"]) + "SM " + str(condition["obs"]), font=fontSmall, fill=255)
Im sorry again. I was so proud of myself too. I just copied this from shell and it truncated the line. It should be the same exact line that the if/then replaced. I dont have my laptop right now.
On Mon, Jan 31, 2022, 18:02 lynolamero @.***> wrote:
I'm getting some syntax errors in this file now. I'm not sure, but it seems that
if condition["windSpeed"] == 0: draw.text((x, top + 15), "Calm", font=fontSmall, fill=255) else: draw.text((x, top + 15), condition["windDir"] + "@" + str(condition["windSpeed"]) + ("G" + str(condition["windGust$ <<<< this ends abruptly should it be: str(condition["windGust"]) ????
draw.text((x + 64, top + 15), str(condition["vis"]) + "SM " + condition["obs"], font=fontSmall, fill=255) <<<< I think this line should be: draw.text((x + 64, top + 15), str(condition["vis"]) + "SM " + str(condition["obs"]), font=fontSmall, fill=255)
— Reply to this email directly, view it on GitHub https://github.com/prueker/METARMap/pull/28#issuecomment-1026296465, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASC3AF5UZPWZOA4LNQYHA6LUY4IIBANCNFSM5NDZK76A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>
Done. Works good. Thanks Phillip