VA3MKH

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Temperature Conversion / Regional Settings #787
    VA3MKH
    Participant

    Working beautifully on my end! Appreciate the quick update and implemented fix. Let me know if I can offer any other project assistance. ๐Ÿ˜‰

    in reply to: Temperature Conversion / Regional Settings #746
    VA3MKH
    Participant

    This is excellent! I appreciate you getting back to me quickly and apologize for my lack of github prowess to try to log it as some issue/feature or whatnot.
    This morning prior to your message I was prodding Copilot about how difficult it would be to add this functionality myself and he seemed pretty confident that it could be done by adding a few lines of code to the weather.js file, along with edits to 4 React components. It didn’t seem like a huge undertaking but it’s also not the first time copilot has sold me a line of untrue promises!

    If it helps, the suggestion was to create a helper:
    // VA3MKH Celsius Patch
    const toC = f => (f – 32) * 5 / 9;
    then to modify the returned object with:
    return {
    temp_c: toC(data.main.temp),
    dewpoint_c: toC(data.main.dew_point),
    feels_like_c: toC(data.main.feels_like),
    pressure_inhg: data.main.pressure,
    wind_mph: data.wind.speed,
    humidity: data.main.humidity
    };

    Along with various edits later relating to the tiles/react components.
    Now I work in IT, and I was resourceful enough to sort out how to gain access to the back end via SSH but I’m no programmer. If any of this is useful, I’m happy to work with you on a solution or to just bounce ideas off of. Ultimately hoping to see this come down as an update from above, rather than a patch I need to maintain on my own little island here ๐Ÿ™‚

Viewing 2 posts - 1 through 2 (of 2 total)