Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Ryan Dick
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Ryan Dick

    @Ryan Dick

    1
    Reputation
    2
    Posts
    227
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Ryan Dick Follow

    Best posts made by Ryan Dick

    • RE: Imperial Units

      @timo Thank you this worked. The problem was I didn't even have the mysensors bindings installed and had got it working a different way (told you I'm a newbie lol). After getting it properly set up with mysensors binding it is working and much easier to manage.

      posted in Development
      Ryan Dick
      Ryan Dick

    Latest posts made by Ryan Dick

    • RE: Imperial Units

      @timo Thank you this worked. The problem was I didn't even have the mysensors bindings installed and had got it working a different way (told you I'm a newbie lol). After getting it properly set up with mysensors binding it is working and much easier to manage.

      posted in Development
      Ryan Dick
      Ryan Dick
    • Imperial Units

      All,

      I'm a newbie and have gotten mysensors working with openhab2 but I am having difficulty switching from metric to imperial. I have set the metric = false on the sensor node but believe it is still getting the config from the controller and can't figure out how to change the controller level.

      I believe the problem is this line:
      float temperature = static_cast<float>(static_cast<int>((getControllerConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.;

      Sorry if this has been answered somewhere else. I am having a difficult time finding this information.

      Thanks,
      Ryan

      posted in Development
      Ryan Dick
      Ryan Dick