Foscam camera with lots of controls

sorry i dont know what you mean.

i mean. If u select a present point
 somtimes it happens that the cam goes to another position because of guard position or somewhat else. so it would be nice if the input_select would go back to a selct like “SELECT”

Hey 
 what would be the curl command to zoon in or out ? :slight_smile: wanna make a script for dashboard :slight_smile:

now i understand what you mean.
i will think about that one.

i dont know curl commands.

I actually implemented the controlls in DASBOARD :slight_smile: my curl commands for controlling the foscam are:


# POSITION Garage
curl -k "http://192.168.1.201:88/cgi-bin/CGIProxy.fcgi?cmd=ptzGotoPresetPoint&name=Garage&usr=user&pwd=password"

# POSITION STREET

curl -k "http://192.168.1.201:88/cgi-bin/CGIProxy.fcgi?cmd=ptzGotoPresetPoint&name=Street&usr=user&pwd=password"

# POSITION Maindoor

curl -k "http://192.168.1.201:88/cgi-bin/CGIProxy.fcgi?cmd=ptzGotoPresetPoint&name=Maindoor&usr=user&pwd=password"

### Zoon In 

curl -k "http://192.168.1.201:88/cgi-bin/CGIProxy.fcgi?cmd=zoomIn&usr=user&pwd=password"

## Zoon Out

curl -k "http://192.168.1.201:88/cgi-bin/CGIProxy.fcgi?cmd=zoomOut&usr=user&pwd=password"

##### Zoom Stop

curl -k "http://192.168.1.201:88/cgi-bin/CGIProxy.fcgi?cmd=zoomStop&usr=user&pwd=password"

### Move Left

curl -k "http://192.168.1.201:88/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveLeft&usr=user&pwd=password"

## move right

curl -k "http://192.168.1.201:88/cgi-bin/CGIProxy.fcgi?cmd=ptzMoveRight&usr=user&pwd=password"

#### stop moving

curl -k "http://192.168.1.201:88/cgi-bin/CGIProxy.fcgi?cmd=ptzStopRun&usr=user&pwd=password"

### start Cruise

curl -k "http://192.168.1.201:88/cgi-bin/CGIProxy.fcgi?cmd=ptzStartCruise&mapName=House_complete&usr=user&pwd=password"

### stop cruise

curl -k "http://192.168.1.201:88/cgi-bin/CGIProxy.fcgi?cmd=ptzStopCruise&mapName=House_complete&usr=user&pwd=password"

Then I added scripts which have shellcommands :slight_smile:

  ######## FOSCAM Positions ######

  position_garage:
    alias: Foscam present point garage
    sequence:
      - service: shell_command.garage
  position_street:
    alias: Foscam present point garage
    sequence:
      - service: shell_command.street
  position_maindoor:
    alias: Foscam present point garage
    sequence:
      - service: shell_command.maindoor
  zoom_in:
    alias: Foscam Zoom in
    sequence:
      - service: shell_command.zoom_in
      - delay:
          seconds: 2 
      - service: shell_command.zoom_stop
  zoom_out:
    alias: Foscam Zoom out
    sequence:
      - service: shell_command.zoom_out
      - delay:
          seconds: 2 
      - service: shell_command.zoom_stop

  turn_right:
    alias: Foscam Turn turn right
    sequence:
      - service: shell_command.turn_right
      - delay:
          seconds: 4
      - service: shell_command.stop_turn
  turn_left:
    alias: Foscam turn left
    sequence:
      - service: shell_command.turn_left
      - delay:
          seconds: 4
      - service: shell_command.stop_turn
  start_cruise:
    alias: Foscam Start Cruising
    sequence:
      - service: shell_command.start_cruise
  stop_cruise:
    alias: Foscam Stop Cruising
    sequence:
      - service: shell_command.stop_cruise

please reedit your post and change your pasword.
you exposed it in the first lines.

i dont think we have to make scripts for al those things. but while i am lagging behind because off lots of other things at least you get what you want :wink:

Wow, this seems pretty cool :smiley: 
 Have anybody tried it with the Foscam R2? I don’t have one yet, but it should be working from what I can gather? :slight_smile:

That should be possible with ALL cgi able devices 
 but u have to consult your manual what cgi commands u need.

here some “final” pics :slight_smile:

Everything will be mounted in a transparent box later with all i and stuff :slight_smile:

2 Likes

Hi

Anyone know if this should work with FosCam FI9826P?

I did buy 2 of those, i get the controlls and everything in HA. I have configured Appdaemon (I think, correctly) but the when i use the controlls nothing happends.

I have 19828 and it works well. Just post all your related config files made anonymous and I will see if I see something which may be significant for malfunction

Please also post appdaemon log

I did send u a msg with all my config

I had to restart appdaemon before it worked
 try this first

I have tried to restart appdaemon and HA like 3 times

http://www.ipcamcontrol.net/files/Foscam%20IPCamera%20CGI%20User%20Guide-V1.0.4.pdf#page11

I did try

http://192.168.1.6:88/cgi-bin/CGIProxy.fcgi?usr=admin&pwd=&cmd=getIPInfo

I get -2 as result that should be “bad password” but i do type the correct password.

Any other command I should try?

I did try Zoom/Pan/Tilt via CGI and the Document i provided to me, works very well.

is there anything else then characters is your password?

when the firmware is up to date then that camera should work with those commands.

Yes i have 4 letters and 1 number in my password, is that a problem?

I did upgrade the fw on the camera, did restart HA + APPD + the Camera. Still nothing.

4 letters and 1 number shouldnt be a problem.
can you reach the camera with an app, or with firefox?

Yea i can use Firefox to control it, also the FosCam app.
I can also use the CGI commands in Firefox to zoom/tilt and so on.

Could it be something with the appdaemon and HA?