OpenSprinkler Forums Third-Party Software How does the system work?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #75924

    rioan28
    Participant

    I have a question about how the Raspberry PI interacts with the UI hosted on the server.
    After compiling the code, the opensprinkler service is loaded as a service to start on bootup.
    What happens if I then run the ./OpenSprinkler script? Is this execution take over the service run?
    The reason I am asking is because I have added some print statements in the APIs setting/initializing the station states.
    I can see the print statements which I added as part of the Opensprinkler::begin but I cannot see any prints I added when starting a manual watering(setting manually one of the stations).

    #75925

    Ray
    Keymaster

    If the service is running currently, you cannot run ./OpenSprinkler as it will report failure to initialize network. You will need to stop the service from running, then you can run ./OpenSprinkler (you need to either be root, or use sudo ./OpenSprinkler).

    #75926

    rioan28
    Participant

    Ok, thank you for your response. Now disabling the service and running the ./Opensprinkler I can see the print statements

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

OpenSprinkler Forums Third-Party Software How does the system work?