you need to set it up in Home assistant.
component foscam
Yeah I have the component set up and am able to view it in home assistant. I just canāt get the API link that you used to work in HADashboard
if the streaming from the app isnt working its mostly because people have https setup in homeassistant.
you need to be able to reach your camera like this:
http://HA_IP:8123/api/camera_proxy_stream/camera.HA_CAMNAME?api_password=YOURPW
Yeah, Iām using duckdns with letsencrypt. How can I get it to work then? I have everything else set up and working
the only way that i know is to use something like NGINX as proxyserver to provide letsencrypt and remove letsencrypt from home assistant.
the advantage you have from that is that your dashboards will keep working when your internet is down.
the way you have set it up now your dashboards (and when you use it, your appdaemon automations) will stop working as soon as you have a bad internet connection, a problem in your router, or when duckdns has a problem.
Alright good to know. Iāll take a look into that. Thanks again for your help!
Ok so i was able to get the NGINX addon installed and setup. Iām able to access my HA from http and https now and can also view the camera feed from the link that the foscam.py generates in a web browser but it still doesnāt show on a dashboard -_-
is the dashboard new created?
in the dashboard is the camera link there the local IP link?
Yeah it created a new dashboard. For some reason itās using https though. Iāve tried changing it to http but it just loads https when it opens in a browser. The link that it generates works perfectly fine in a browser. Just not in the dashboard
the dashboard gets the url from your appdaemon.yaml.
if you have set the url there to HTTPS, the dashboard also will use HTTPS for the cam.
Hmmmā¦ got that changed and now the app creates the dashboard using http for the camera instead of https but itās still not loading on the dashboard Iām at a complete loss now. Anymore suggestions? The feed shows up in home assistant using the foscam component
hmm, difficult.
does it happen on all devices? also on the PC in google chrome?
the complete foscam dashboard show up correctly, only the cam doesnt show its pics?
you could try if this does something:
set create dashboard to false, so that it doesnt get recreated.
then modify the dashboard file and change the line from the camera.
change: /api/camera_proxy_stream/camera.
to: /api/camera_proxy/camera.
Yeah the complete foscam dashboard has always worked fine other than being able to see the camera image and control the motion detection. I tried your suggestion but it didnāt change anything. This is whatās showing up
you did have the wrong url at first, so maybe there is a cash problem somewhere.
- delete cash on the devices that you tried it on
- delete all files in the subdirs:
conf/compiled/html
conf/compiled/css
conf/compiled/js - restart your device.
by the way, you didnt respond to that, did you try in google chrome on a PC? not all browsers react the same way and some may have trouble.
Do your app works with Foscam Fi9900P camera?
its not 1 off the cams i know, so you have to use the test that is on the github (or in the first posting from this topic) to make sure if it does or not.
I tried your suggestions but still wasnāt able to get it to work. Iāve tried every browser at my disposal and every device.
The weirdest part is that if I type the link into a web browser it works perfectly and Iām able to see the camera feed but it just wonāt work in the dashboard itself
in google chrome check in the console if you can find an error (ctrl shift i)
Ok so its bringing up an internal server 500 error saying server got itself in trouble and this is the link it was trying to open. http://192.168.1.9:5050/&time=1518068277. Shouldnāt it be trying to open up http://192.168.1.9:8123/api/camera_proxy_stream/camera.livingroom?api_password=password?
am trying to get my head around your situation.
the link you provide suggest you have appdaemon 3.0 beta installed (the time part was only implemented in that one)
can you show me what is inside your dashboard that has the name you did set after the option:
alarm_dashboard_file_name and after the option:
dashboard_file_name
somehow i got the feeling that something is still wrongly cashed.