IPCamViewer for Enigma2

  • Unfortunately my German is not good enough to follow the above problems. If you post in English I can try and help.

    2 x DM7025SS (Gemini2v4.4), DM600(PCD 7.0), DM800S (Gemini 4.4) TM9100(UR9B2), DM500HD, Triax 88cm dish, Technomate motor.

  • i posted in english :) here comes again if you can help out to try an external ip camera,


    what could be wrong with this setup ?


    {command}{foscam.snapshot}{/jpg/image.jpg}
    {command}{foscam.protocol}{http://}
    {camera}{194.218.96.93}{foscam}{camera1}{dummy}{dummy}


    telnet output says url failed and the spinner is on endlesly,


    GetMyURLImage::entering __int__()
    194.218.96.93/jpg/image.jpg}tbXk6ZHVtbXk=,url=http://}
    ................................................server=194.218.96.93, urlfailed=1


    http://194.218.96.93/jpg/image.jpg ,works just fine in my browser

  • The parsing of the conf file is a bit brittle and I have not had time to improve it. Have a look that no embedded spaces anywhere in the conf file (except if they are specifically required). Also ensure that the last line has a newline(LF). The problem will be one of these 'invisible' characters as the file looks correct otherwise. If the problem persists, test the camera with security enabled and replace du,,y with username/password.

    2 x DM7025SS (Gemini2v4.4), DM600(PCD 7.0), DM800S (Gemini 4.4) TM9100(UR9B2), DM500HD, Triax 88cm dish, Technomate motor.

  • "test the camera with security enabled and replace du,,y with username/password"


    i believe this might be the problem, the camera is not mine it's an open camera w/o user and passwd . the little german i understand, others here has got it working when security is enabled, they also seemed to have the same problem before ..


    "Also ensure that the last line has a newline(LF). "


    can you please explain this a bit further ?

  • Make sure that you press 'enter' after the last line so the cursor moves to the next line (this will vary depending on which editor you use. The editor should also be Linux aware - it must NOT be notepad: it must insert only a linefeed at the back of each line not a 'carriage return/linefeed'. When editing on the dreambox, use 'vi' and the file will be the correct format. I will test the camera from my dreambox

    2 x DM7025SS (Gemini2v4.4), DM600(PCD 7.0), DM800S (Gemini 4.4) TM9100(UR9B2), DM500HD, Triax 88cm dish, Technomate motor.

    Einmal editiert, zuletzt von shumifan50 ()

  • Zitat

    Originally posted by shumifan50
    .. I will test the camera from my dreambox


    thank you, will be interesting to see your result on the very same camera .

  • Try the attached plugin.pyo or plugin.pyc. It's a bit of a hack, but it should now suppress the credentials and it works with the cam you are trying to access. Which of the 2 files to use is determined by your box; check the directory below to see which one is there.
    Unzip the files then
    Copy the files to /usr/lib/enigma2/python/Plugins/Extensions/IPCamViewer.
    (Both username and password must be dummy)
    and then restart the STB.


    Make sure that you copy the files as binary files not text files.
    Let me know how you get on.

  • hi,


    i had both files there on my dm800se and i replaced both of them, rebooted and the spinner is still hanging, here is the telnet output,


    entering nextCam()
    entering start_decode()
    GetMyURLImage::entering __int__()
    trying: authheader=none,url=http://}
    194.218.96.93/jpg/image.jpg}
    ................................................server=194.218.96.93, urlfailed=1


    config filke looks like this,


    {command}{foscam.snapshot}{/jpg/image.jpg}
    {command}{foscam.protocol}{http://}
    {camera}{194.218.96.93}{foscam}{camera1}{dummy}{dummy}


    can you please attach your config as well, if you got that camera working .

  • dm800SE


    latest n e w n i g m a 2


    enigma2-plugin-extensions-ipcamviewer_2011-01-10_mipsel.ipk
    plugin.pyc and plugin.pyo replaced from your zip .


    still the spinner hangs, even with your config, which looks same as mine .


    GetMyURLImage::entering __int__()
    trying: authheader=none,url=http://}
    194.218.96.93/jpg/image.jpg}
    ................................................server=194.218.96.93, urlfailed=1

  • That config works fine with my DreamElite image and OpenPli, so there must be a difference between the images. From the output you posted it looks like the protocol is not getting prepended correctly to the URL and the authheader=none should not come through. It might be a difference in the python parser between the different images. I will have another look when I have some more time.


    That last "}" and newline characters after http:// should have been stripped by the way I parse the conf file, but it did not get stripped in your version for some reason.


    You can try the following to try and fool the parser(not too difficult as it is quite primitive):


    make protocol line:
    {command}{foscam.protocol}{ }
    {camera}{http://194.........etc as berfore}{dummy}{dummy}


    AND/OR
    Use previous conf file and just leave the foscam.protocol line out

    2 x DM7025SS (Gemini2v4.4), DM600(PCD 7.0), DM800S (Gemini 4.4) TM9100(UR9B2), DM500HD, Triax 88cm dish, Technomate motor.

    4 Mal editiert, zuletzt von shumifan50 ()

  • thanks alot, it works now :) , your last tip helped, i had to fool the parsing part,


    GetMyURLImage::entering __int__()
    trying: authheader=none,url=http://194.218.96.93/jpg/image.jpg
    creating file /tmp/cam194.218.96.93.jpg
    ................................................server=194.218.96.93, urlfailed=0
    before: 1
    [Picload] decode picture... /tmp/cam194.218.96.93.jpg
    entering slidePic()
    entering ShowPicture(), shownow=True, len(currPic)=0

  • Zitat

    enigma2-plugin-extensions-ipcamviewer_2011-01-10_mipsel.ipk



    Where did you get this ipk. I certainly did not make a release on that date! And nobody else should have the source.

    2 x DM7025SS (Gemini2v4.4), DM600(PCD 7.0), DM800S (Gemini 4.4) TM9100(UR9B2), DM500HD, Triax 88cm dish, Technomate motor.

  • Ah OK. I did not post it here. I posted on OpenPli.


    Could you post your working conf file here for others to use if they want to test?

    2 x DM7025SS (Gemini2v4.4), DM600(PCD 7.0), DM800S (Gemini 4.4) TM9100(UR9B2), DM500HD, Triax 88cm dish, Technomate motor.

  • An alle die einen sygonix (z.B. CONRAD) haben: das ist ein FOSCAM. Also ich mußte nur die richtige IP-adresse eintragen und schon gings!


    Super Plugin!!


    Sloekebaas


    To all owners of a sygonix (ex. CONRAD). This is a FOSCAM. You just have to adapt the IP-adress and it works!


    Tolles pLUGIN


    Sloekebaas

  • rolfrein:
    It seems openpli have reorganised their website and the links no longer work. They are still busy with the update and I have not found the 'ticket' section yet.

    2 x DM7025SS (Gemini2v4.4), DM600(PCD 7.0), DM800S (Gemini 4.4) TM9100(UR9B2), DM500HD, Triax 88cm dish, Technomate motor.