OpenSprinkler Forums OpenSprinkler Unified Firmware Changing Port on Headless Pi Install

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #76688

    boilermanc
    Participant

    HI all, I am running this on an openhab pi headless. openahb runs on 8080 and i would rather not change that. how can i change the port for ops without going to the web app? i am just going to use the openhab binding to control it.

    #76698

    Ray
    Keymaster

    Is there any reason you don’t want to go to the web app to make setting changes? You don’t need a display or keyboard, all you need is a browser that can access the OSPi, then go to Edit Options -> Advanced, and change the HTTP port there.

    #76738

    boilermanc
    Participant

    Yeah, i cannot get to it. openhab is running on port 8080. is there a config file i can change it in?

    #76746

    Ray
    Keymaster

    OK, if I understand correctly, you mean you have openhab and OpenSprinkler firmware both running on the same Pi? You can edit the default port number in the OpenSprinkler.cpp file:
    https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/OpenSprinkler.cpp#L332
    then recompile the firmware. You need to delete done.dat in the firmware folder so it triggers a factory reset and applies the default port number.

    #76761

    boilermanc
    Participant

    Thanks Ray. I followed the directions and changed it to another port. Still wont connect. I moved openhab to another port so thought I would do a clean install of OS. I cannot find directions on how to uninstall on rpi. Just delete that folder? or is there a command.

    thanks!

    #76771

    Ray
    Keymaster

    Instructions can all be found at:
    https://support.opensprinkler.com
    for example, OSPi firmware instructions are here:
    https://openthings.freshdesk.com/support/solutions/articles/5000631599

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware Changing Port on Headless Pi Install