Jump to content

aptalca

Community Developer
  • Posts

    3,064
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by aptalca

  1.  

     

    put a pull request on the git.

    Good idea, but I don't think that's the issue.  When I added it here: http://lime-technology.com/forum/index.php?topic=40262.msg380746#msg380746 it worked fine.  It's think its some issue with dockerMan not updating the popup menu correctly when a change like that occurs in the template.  From a fresh install with no traces of the old template anywhere on the flash drive it works fine.

     

    it needs to be in there still though, because otherwise nobody will be able to reassign the host port.

    The network is set to host mode. So there is no port mapping. I did it the same way as needo's Plex template which also runs in host mode. The reason is that it uses upnp and needs several ports to be mapped. I took the easy way and set it to host mode.

     

    Upside is, I don't have to worry about ports, whatever port the container opens gets passed through in unraid. The downside is, the user can't map them. But then again, I wouldn't want the users to try and change the ports for upnp and whatever else anyway, because then the whole thing probably would stop working.

     

    I'll take another look when I have time to see if I can figure out all of the ports that are needed and try and map them in bridge mode.

     

    upnp is nasty and a security minefield.

     

    Haha true, but it works.

     

    I got some reading up to do

  2. put a pull request on the git.

    Good idea, but I don't think that's the issue.  When I added it here: http://lime-technology.com/forum/index.php?topic=40262.msg380746#msg380746 it worked fine.  It's think its some issue with dockerMan not updating the popup menu correctly when a change like that occurs in the template.  From a fresh install with no traces of the old template anywhere on the flash drive it works fine.

     

    it needs to be in there still though, because otherwise nobody will be able to reassign the host port.

    The network is set to host mode. So there is no port mapping. I did it the same way as needo's Plex template which also runs in host mode. The reason is that it uses upnp and needs several ports to be mapped. I took the easy way and set it to host mode.

     

    Upside is, I don't have to worry about ports, whatever port the container opens gets passed through in unraid. The downside is, the user can't map them. But then again, I wouldn't want the users to try and change the ports for upnp and whatever else anyway, because then the whole thing probably would stop working.

     

    I'll take another look when I have time to see if I can figure out all of the ports that are needed and try and map them in bridge mode.

  3. Deleted all traces, rebooted and reinstalled. That did the trick.

     

    I think the issue may have been that I had my template repo saved in template repositories as well (from a long time ago, just never had deleted it), and that might have caused an issue. Not entirely sure, but it works now.

     

    Thanks

  4. Updated the AmazonEcho-HA-Bridge to enable the WebUI.

     

    It is much much much easier to manage the devices that way.

     

    Unfortunately, the WebUI link is not showing up in unraid GUI for some reason. You can use the following to access it until we can fix the link: unraidIP:8080/configurator.html

     

    **EDIT** The missing link may have been just me. It might show up fine for others. I was able to fix it for myself, let me know if anybody experiences it as well.

  5. Hi Squid,

     

    I just added a new WebUI link to one of my containers, AmazonEcho-HA-Bridge. The app didn't used to have one, but it now does. So I edited the template and added the WebUI address. But no matter what I do, the WebUI link is just not showing up. When I try to edit the container, it shows the WebUI address in the template, though. I tried stopping and starting docker, reinstalling the container, and everything else except for rebooting the server. Is this an issue with unraid gui interface or community repositories? Or did I do something wrong? I'm on rc4 by the way.

     

    Here's the template: https://github.com/aptalca/docker-templates/blob/master/aptalca/amazon-echo-ha-bridge.xml

     

    Thanks

     

    **EDIT** Reboot didn't take care of it either, still no WebUI link

    Capture10.PNG.e7646fda2fbc88746f5898eaeb38cc3c.PNG

    Capture11.PNG.1dc1fa5dff7852db5ab04d6ede3e157b.PNG

  6. OK...I'm sorry.  I consider myself a moderately intelligent guy but I am totally struggling with a strategy for Calibre.

     

    1.  Do I still need both the Server and RDP containers.

    2.  How can I avoid port conflicts?  My Kodi-Headless is using 8080.  How do I address?

     

    Here are my mappings:

     

     

    TIA!

     

    John

     

    No problem

     

    The calibre-RDP includes the calibre server, so no need to install both

     

    In your screenshot, the ports listed on the left are internal to the containers (container port). The ones on the right are the ones exposed by your unraid server (host port). Your kodi is exposing port 8080 in both the container and unraid, that's fine. When unraid receives a request at port 8080, it forwards it to port 8080 in the kodi container.

     

    When you install calibre-rdp, set the two host ports to whatever you like, whatever is not being used by other docker as in the attached screenshot. You can then access the calibre server by going to unraidIP:8098 and you can access the calibre-rdp by going to unraidIP:8097/#/client/c/Calibre

    That way when unraid gets a request at port 8098, it will connect it to port 8081 of the calibre-rdp container, which is the calibre server

    Capture9.PNG.c36bfb31193ae19310817e57c8456f37.PNG

  7. I'm testing a full ubuntu build to see if that works better. I noticed that zoneminder has an official docker but it doesn't save anything outside the container so all changes and settings are lost once it is updated or reinstalled, and it hasn't been building properly on docker hub for a long time. . . sigh. Oh well, I better finish what I started, lol

    I'm having a hard time getting an ubuntu based docker going. It's like I had to start learning how to build containers from scratch. Taking longer than I thought but still working on it.

  8. Hi Aptalca.

     

    Your Calibre-RDP container is great, just finished moving my whole library onto it.

     

    I did have a bit of trouble in the beginning because I didn't read the documentation properly [emoji14]. I assumed that the /config was for config only, so I configured the mappings as such:

     

    - /config mapped to /mnt/cache/appdata/calibre/config

    - /books mapped to /mnt/user/Books/Calibre (a new empty directory)

    - /downloads mapped to /mnt/user/Downloads (a place where I can place books to import from)

     

    and when the wizard popped up and asked me where to create the library, I chose /books and then started some imports to build the library. This worked great, until of course I tried to restart Calibre, or try to use the server, because (as you rightly mentioned), it defaults and expects it to be in /config.

     

    Anyway, I fixed it all up and now have /config mapped to /mnt/user/Books/Calibre - which works great.

     

    My question is, is it normal for my cursor keys and delete key to be non-functional in the Web RDP session? When editing book titles and authors I have to use the mouse to position my cursor in text input fields, and I have to use backspace instead of delete to delete text.

    Yup, I see that the direction and the delete keys indeed aren't working. I pinged hurricane about it since he develops and maintains the dockergui base.

  9. I'm testing a full ubuntu build to see if that works better. I noticed that zoneminder has an official docker but it doesn't save anything outside the container so all changes and settings are lost once it is updated or reinstalled, and it hasn't been building properly on docker hub for a long time. . . sigh. Oh well, I better finish what I started, lol

  10. Hi Aptalca.

     

    Your Calibre-RDP container is great, just finished moving my whole library onto it.

     

    I did have a bit of trouble in the beginning because I didn't read the documentation properly [emoji14]. I assumed that the /config was for config only, so I configured the mappings as such:

     

    - /config mapped to /mnt/cache/appdata/calibre/config

    - /books mapped to /mnt/user/Books/Calibre (a new empty directory)

    - /downloads mapped to /mnt/user/Downloads (a place where I can place books to import from)

     

    and when the wizard popped up and asked me where to create the library, I chose /books and then started some imports to build the library. This worked great, until of course I tried to restart Calibre, or try to use the server, because (as you rightly mentioned), it defaults and expects it to be in /config.

     

    Anyway, I fixed it all up and now have /config mapped to /mnt/user/Books/Calibre - which works great.

     

    My question is, is it normal for my cursor keys and delete key to be non-functional in the Web RDP session? When editing book titles and authors I have to use the mouse to position my cursor in text input fields, and I have to use backspace instead of delete to delete text.

    That's interesting. I don't think I used the cursor keys in calibre, but I used them in other containers that use the same webrdp base and there they worked fine. I'll test to see if it works in calibre

  11. Hey aptalca.  I have done some further testing and it seems that there is an issue with the zoneminder docker.  I recently made a fresh install of zoneminder on a separate linux mint 17.1 installation to cross compare using the following guide:

     

    http://www.zoneminder.com/wiki/index.php/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.26.5_the_easy_way

     

    Under this installation I have all my cameras working at full resolution (1280x800) whereas on the docker version I was only able to get a single camera running at downgraded res (640x480).  The cameras I have are identical models.  Some reference info is below.  Let me know if you need additional info.

     

    With docker image (zoneminder v1.28.1):

    - first camera added works with 640x480 res only.  Any additional monitors/cameras (regardless of resolution setting) results in log errors ("zmc crashed" etc) and no video feed.

     

    With linux mint 17.1 install (zoneminder v1.28.1):

    - all three cameras work at full res (1280x800) with no errors.

    - I am using the same settings for these cameras.  Specifically... source: remote, function: modetect, protocol: http, method: simple, path: /axis-cgi/mjpg/video.cgi?resolution=1280x800

     

    That is interesting.

     

    The docker install steps mirror the steps you linked to, however the docker uses a base that is a stripped down version of ubuntu, so there may be a dependency or something missing. I'll look into it.

     

    Could you post some snippets of the log where you try and add a high res camera and a second one?

     

    Can you also try adding the feeds through "Libvlc" instead of "Remote"? It is much easier to set up that way and I was able to add multiple iptv streams with no issues (I don't currently have any actual cameras set up unfortunately)

  12. I'm having a problem with the Calibre Docker, i have passed through an additional variable /books/ which is mapped to /mnt/user/books/

     

    during the setup wizard i have set my book library to /books but it is not saving the setting.  If i stop and start the docker it reverts to /config

     

    You're supposed to set the library location to /config as described in the docker overview. That's how this docker was designed to work (unfortunately hard coded).

     

    Calibre "imports" books into its library, which is in the same location as its configuration files. I don't believe calibre was designed to "manage" an existing library. . . unless you're trying to use an existing calibre library from another installation, in that case why not just map /config to /mnt/user/books ?

     

    Additional mappings should be used to provide calibre access to other locations to import books from, not to move configuration or installation files to.

     

  13. Hey I tried the zoneminder container - I can't get zoneminder to work with any of my cameras. I have a foscam and simple d-link camera. I even tried with the webcam app on my phone, zoneminder doesn't see any of these cameras. Regarding the foscam I am able to use the rtsp address to view it through vlc so I know it's correct.

     

    I'm new to zoneminder so is there something I am missing?

    Their wiki is pretty good. They have separate pages for different brand and models of cameras and they have setup instructions for each.

  14. Just got the echo bridge docker installed. Works great!

     

    The Dev seems to be regularly updating the code, but it looks like your docker is hard coded to v0.1.2. Would there be a way to make it always pull the latest code?

    No. Two reasons:

    1. Releases are jar files, each with a different name and a download link. Annoying to build the algorithm that tries to identify the latest release and retrieves the download link. It's doable, but I simply haven't had the time or the desire.

    2. It's still technically alpha and the Dev is changing a lot between releases. I'd rather update to tested releases to make sure the docker works

  15. Still loving the Calibre RDP docker, but quick question, would it be possible to have a volume /books to keep the library and config separately?  I can change the library location to \books by adding the mapping in my XML config but if I restart the container it defaults back to /config as a library location.

     

    Calibre by default saves the books you add in the same location as the config/database. I am not aware of a way to separate them.

     

    I am just curious why you wish to separate them, as the config consists of only one folder and 2 database files.

     

    In terms of /config vs /books, it is just the internal mapping within the container and it is hardcoded in the firstrun.sh and startapp.sh files. On every start up, calibre is started with the "--with-library=/config" option. If you really want to change it, you can map /books in the xml, and while the docker is running, first move the library to /books through the gui, and then exec into the container by "docker exec -it RDP-Calibre bash" and then modify the file /startapp.sh and change the "/config" to "/books". It should work (as long as you just stop and restart the container, but it won't survive a reinstall or update), but no guarantees as I haven't tested it. The only difference will be that within the container and the gui your library will be stored at /books instead of /config, not sure if that's what you're after. . .

     

    EDIT: for the webserver, you would also have to modify the last line of /etc/my_init.d/firstrun.sh to switch /config to /books

  16. Fresh off the grill, sizzling hot!!!

     

    Introducing the Amazon-Echo-HA-Bridge container

     

    If you have an Amazon Echo, you can use this container to bridge it with your Home Automation Controller to voice control connected devices.

     

    This is based on work done by a Vera user named arm. Amazon Echo officially only works with the Philips Hue bridge. But arm essentially reverse engineered the Philips Vue hub's communication system and created this java app that mimicks it. You can associate your connected devices with this fake hub, and Echo thinks they are Hue devices, but controls them nonetheless.

     

    I tested it with Vera controlled zwave lights, but it should work with any Home Automation controller that accepts http commands. For setup info please see this post: http://forum.micasaverde.com/index.php/topic,31920.msg231970.html#msg231970

     

    By the way, I highly recommend the Amazon Echo. It has amazing voice recognition and so much potential. $100 for Prime subscribers is a great deal for a quality Bluetooth speaker that does a whole lot more. Unfortunately for Google, Echo is what the Nexus Q should have been.

     

    Now I can say "Alexa turn the media room lights off" and then "Alexa turn xbmc on". Hopefully one day I'll be able to say "Alexa, get me a cold one" without having to marry someone named Alexa lol

  17. Zoneminder is fixed, update is being pushed to dockerhub

     

    mysql database issue is cleared up and the container is updated to the latest phusion build

     

    Also added some install and setup tips to the second post of the thread

     

    Excellent!  modetect seems to be working now.  Just one additional snag... 1280x800 is the default/max resolution for my camera however I can't seem to get zoneminder to work with anything higher than 640x480.  Going higher results in a blank feed and the following errors:

     

    zmdc[627]: INF ['zmc -m 1' crashed, signal 6]

    zmdc[627]: ERR ['zma -m 1' exited abnormally, exit status 255]

    zmdc[627]: INF [starting pending process, zmc -m 1]

    zmdc[627]: INF ['zmc -m 1' starting at 15/05/21 03:31:19, pid = 9418]

    zmdc[9418]: INF ['zmc -m 1' started at 15/05/21 03:31:19]

    zmdc[627]: INF [starting pending process, zma -m 1]

    zmdc[627]: INF ['zma -m 1' starting at 15/05/21 03:31:19, pid = 9419]

    zmdc[9419]: INF ['zma -m 1' started at 15/05/21 03:31:19]

    zma_m1[9419]: ERR [shared data not initialised by capture daemon for monitor DRIVEWAY]

    zmdc[627]: ERR ['zma -m 1' exited abnormally, exit status 255]

    zmdc[627]: INF ['zmc -m 1' crashed, signal 6]

     

    These are my settings @ 640x480 for reference (camera is an Axis M3024-LVE):

     

    Source Type: Remote

    Function: Modetect

    Max FPS: <blank>

    Alarm Max FPS: <blank>

     

    Remote Protocol: HTTP

    Remote Method: Simple

    Remote Host Name: <user:password>@<cam-ip>

    Remote Host Port: 80

    Remote Host Path: /axis-cgi/mjpg/video.cgi?resolution=640x480

    Target Colorspace: 24 bit

    Capture Width (pixels): 640

    Capture Height (pixels): 480

     

    Let me know what you think.  Thanks.

     

    I looked on the zoneminder wiki for Axis cams

     

    Check out these pages: http://www.zoneminder.com/wiki/index.php/How_to_stream_h264_with_ffmpeg_from_an_Axis_P3343

    http://www.zoneminder.com/wiki/index.php/Axis

     

    Make sure you go into the cam's software and set the capture mode to 720p. You should have different settings, where you get lower framerates for higher resolutions.

     

    I also noticed in the zoneminder wiki that a lot of the HD versions of Axis are set up through rtsp using H264 rather than the http/mjpg method, the mjpg method may be limited to 640x480 resolution

     

    Here's the user manual for your camera, check out page 13 for rtsp description: http://www.axis.com/files/manuals/um_m3024_lve_62969_en_1503.pdf

  18. OK, I figured out the problem with zoneminder. I made a mistake with moving mysql, so database settings did not persist. I am testing a dev version, once I confirm it is working it will be pushed (probably by tomorrow).

     

    I also figured out how to set up ffmpeg/avconv for videos and will include some info on how to set it up (did not know that ffmpeg is not in the official ubuntu repo in 14.04, but avconv is)

     

    Can't test motion detection at the moment because I can only test with iptv streams as I don't have security cameras set up. Perhaps someone who has used zoneminder can test and report.

  19. Regarding Duck DNS docker... is the conf file setting for domain the fully qualified domain name or just the sub domain that duckdns.org assigns you?

     

    DOMAINS=yourdomain.duckdns.org

     

    or is it

     

    DOMAINS=yourdomain

     

    ps. I fed it just the subdomain and that seems to be working or at least no errors in the log.

     

    Yup, it's just the subdomain

×
×
  • Create New...