Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: API question #45606

    BobSutn
    Participant

    Just another observation.. When I successfully execute an API call, there is no result field in the returned JSON string. So, checking the result field will indicate a null value instead of a 1. The API documentation indicates that a 1 should be returned in the result field on success API execution.

    in reply to: API question #45602

    BobSutn
    Participant

    I am using official OpenSprinkler hardware. Main module and two expansion boards were purchased directly from Ray. I renamed the nvm.dat file but now I can’t access the system. I get a Unauthorized result code when I attempt to “Get Controller Variables” (jc). I also get a “invalid password” when attempting to login via the web page.

    ***EDIT*** I forgot I had to use the default password. I now get the following:

    {“devt”:1489613584,”nbrd”:1,”en”:1,”rd”:0,”rs”:0,”rdst”:0,”loc”:”Boston,MA”,”wtkey”:””,”sunrise”:360,”sunset”:1080,”eip”:0,”lwc”:1489611924,”lswc”:0,”lrun”:[0,0,0,0],”sbits”:[0,0],”ps”:[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],”wto”:{},”ifkey”:””}

    in reply to: API question #45595

    BobSutn
    Participant

    I did a sudo chmod 755 nvm.dat.

    Before attributes were -rw-r-r-
    After attributes are -rwxr-xr-x

    I rebooted the Pi after I changed the attributes and then executed the “Get Controller Variables” (jc) command which returned JSON string as follows:

    {“devt”:1489593037,”nbrd”:5,”en”:1,”rd”:0,”rs”:0,”rdst”:0,”loc”:”41.16953,-75.87742″,”wtkey”:”***********”,”sunrise”:434,”sunset”:1150,”eip”:*********,”lwc”:1489591024,”lswc”:0,”lrun”:[0,0,0,0],”sbits”:[0,0,0,0,0,0],”ps”:[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],”wto”:{},”ifkey”:””}

    I asterisked out a couple of variables for security reasons.

    sbits is still at six variables.

    in reply to: API epoch time question #45593

    BobSutn
    Participant

    Ok, now I understand. I’ll have to adjust the returned value to account for my time zone. Thanx Ray.

    in reply to: API question #45590

    BobSutn
    Participant

    The Open Sprinkler Pi main controller board is marked as Version 1.43. The web page indicates that I am at firmware version 2.1.7 and app version 1.6.0. I did a fresh install of the firmware last week from the git hub site. I am using a Raspberry Pi 3 Model B with the OSPI main controller board.

    in reply to: API question #45557

    BobSutn
    Participant

    It’s my understanding that the OSPI supports a maximum of 56 stations, the main unit supports 8 stations and a maximum of 3 expansion units each supporting 16 stations for a total of 56 stations. Thus, sbits should look like this “sbits”:[0,0,0,0,0,0,0] instead of looking like this “sbits”:[0,0,0,0,0,0]. There are 7 positions in the first sbits to account for all 56 stations whereas the second sbits only accounts for 48 stations. My gut feeling is that sbits should account for all 56 stations.

    I completely understand your explanation and it makes sense. But the return value of sbits still has me confounded.

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