rszimm / sprinklers_pi

Sprinkling System Control Program for the Raspberry Pi
GNU General Public License v2.0
310 stars 100 forks source link

Darksky with sprinklers_pi also metric #144

Open gwaag opened 5 years ago

gwaag commented 5 years ago

Hello, would it be possible to display the weather values in metric system? mm, C°, km/h, etc. for the sprinklers_pi. Thanks and regards Thomas

taHC81 commented 5 years ago

Hi Thomas, where exactly do you like to see it? I've changed it for Weather diagnostics, see the code:

https://github.com/taHC81/sprinklers_pi/blob/bd718e7da72da42bf662c48d23fdfc2a86778ed2/web/WCheck.htm#L30

wuText.append("Mean Temp: " + data.meantempi + "°F / " + ((data.meantempi - 32) * (5 / 9)).toFixed(2) + "°C");

gwaag commented 5 years ago

Thank you taHC81, works very well.

Resolved Weather Provider IP: (null) Overall Scale: 1% Yesterday's Values Mean Temp: 58°F / 14.44°C Min Humidity: 38% Max Humidity: 96% Precipitation: 0.07" / 1.78 mm Wind: 4.1mph / 6.60 kmh Today's Values Precipitation: 0" / 0.00 mm UV: 1.8

regards Thomas

taHC81 commented 5 years ago

Glad to help ;)

nhorvath commented 5 years ago

If you want to submit that PR i'll include it.

On Thu, May 23, 2019 at 2:44 AM taHC81 notifications@github.com wrote:

Glad to help ;)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/144?email_source=notifications&email_token=AABIJXFHOLZH3CBC4UFLXLDPWY4MZA5CNFSM4HOR6QH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWBHKWQ#issuecomment-495088986, or mute the thread https://github.com/notifications/unsubscribe-auth/AABIJXCZC3KFVLBW575JL6LPWY4MZANCNFSM4HOR6QHQ .

KanyonKris commented 4 years ago

Pull request sent. My first time doing a PR, hope I did it correctly.