schford

Members
  • Posts

    170
  • Joined

  • Last visited

Everything posted by schford

  1. So for years - literally years! Everytime I restart a particular Docker I have to remember to right click on the icon bring up a console and manually run a command. python3 /config/python_scripts/comfort2a.py For some reason I thought there must be an automated way of doing it - so I thought I would ask the collective wizdom. Anyone know if I can auto run that script on a docker startup? I'd be very greatful. Cheers Stuart
  2. Hi guys, I have a python script that I use to pull info from my alarm system into MQTT which I then use in Home Assistant. I always used to call this from home assistant. They have now changed HA so that scripts can only run for 60 seconds and this needs to keep running. Has anyone any advice on how I could do this natively in unraid? I'd be very grateful for any help. Cheers Stuart
  3. If I remove the mappings it works..... 😞
  4. Hi guys, sorry to take so long to come back and thanks for the advice. SO I edited the docker container and the resulting command run looked like this "root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='nxfilter' --net='bond0' --ip='192.168.0.17' --privileged=true -e TZ="Europe/London" -e HOST_OS="Unraid" -v '/mnt/cache/appdata/nxfilter/conf/':'/nxfilter/conf':'rw' -v '/mnt/cache/appdata/nxfilter/log':'/nxfilter/log':'rw' -v '/mnt/cache/appdata/nxfilter/db/':'/nxfilter/db':'rw' 'packetworks/nxfilter-base:latest' e1a26f37b99126b3cdaec315597a7096a3e59cf24fdbad48f1835ebd30055916" The appropraite folders get created in my app data but when the docker tries to start i know get "Exception in thread "main" java.lang.NullPointerException at nxd.Main.<init>(Unknown Source) at nxd.Main.main(Unknown Source) Exception in thread "Thread-0" java.lang.NullPointerException at nxd.o.run(Unknown Source)" I would be incredibly grateful for any advice please! Thanks Stuart
  5. Hi guys, I have searched and googled but just cant get my head around how to install nxfilter. properly - https://hub.docker.com/r/packetworks/nxfilter-base I have it installed and working but for the life of me I just cant finger out how to get persistent storage working. I would be really grateful for any advice as I just cant seem to work it out! Thanks Stuart
  6. Thanks - mapped a folder put backup file in - consoled into docker - moved backup file to write place -restarted docker - Done! Need to work out a proper xml for it!
  7. To restore it I apparently need to stop the docker then copy over the config.h2.db file It isnt mapped yet I need to read up on how to move the folder out of the docker into the app data share- I have never installed a docker without using the APP function with ready made xmls before.
  8. To cut a long story short I did a dirty Docker install that didn't have its config directory on the appdata share. As a result I have updated the docker and lost all my config - I have a backup but need file access to be able to restore it. Can anyone explain how I can use WINSCP to browse to the container in the docker.img file and restore it. Its pretty urgent and I feel an idiot! Cheers Stuart
  9. So I am a little confused!! All my dockers place nice usually 🙂 but I can down today to see a high utilisation alert. A quick check shows that MQTT 20.1 MB 0 B 14.4 GB MQTT is the culprit with 14.4GB of log files!!! A quick hop into the docker settings and I set my log size to 100mb and rotation to on. But it doesnt seem to have done anything. AM I being slow? Cheers Stuart
  10. IF I try from command console I get $ apt-get install libavahi-compat-libdnssd-dev E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? $ ^C $ I have installed the via manage pallet no problems but homekit doesn't find anything and when I try a bonjour browser on pc as well it also sees nothing ? Thanks for suggestions.
  11. Hi guys, I would love to be able to use this - https://flows.nodered.org/node/node-red-contrib-homekit-bridged so I can make my stuff availavlle to apple home. Docker installs ok but then home app on apple never finds it I am running the docker with :V8 at the end to get latest node js I wonder if the docker needs these added to it? Prerequisites These nodes are based on the extremely awesome HAP-NodeJS -Project which uses an implementation of mdns to provide Bonjour / Avahi capability. Please refer to the HAP-NodeJS Wiki and to mdns for install instructions, if you get stuck on the following. Install For Debian / Ubuntu you need to install the following in order to support Bonjour / Avahi sudo apt-get install libavahi-compat-libdnssd-dev Then run the following command in your Node-RED user directory - typically ~/.node-red npm install node-red-contrib-homekit-bridged Thanks for any advice Stuart
  12. SO Just in case any one else is looking ? I had to add the below to get it working, it wont work with anything but the root rather than location / hass or something which I woudl prefer but can live with this unless anyone has any suggestions map $http_upgrade $connection_upgrade { default upgrade; '' close; } location / { proxy_pass http://192.168.0.23:8123; proxy_set_header Host $host; proxy_redirect http:// https://; proxy_http_version 1.1; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; }
  13. I tried many variations of home assistant docker, lets encrypt etc when googling but didn't actually search for NGINX - doh!!!! Thank you so much for the link cant believe it was documented on HASS pages - right off to play and thanks once more ?
  14. HI guys, Has anyone managed to get this working with the home assistant docker for the reverse proxy. I have tried the following location /ha { proxy_pass http://192.168.0.24:8123; proxy_set_header Host $host; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } but I just get anyone got any ideas? Thanks! 502 Bad Gateway nginx/1.12.2
  15. Thanks - in the end I ended up installing, AppDaemon - they I used the new console feature to install paho-mqtt then I just set the python script to run.
  16. To answer my own question on this you cannot mix and match bridge dockers with dockers with their own IP, so if you want dockers to be able to talk to each other they either both have to be bridge or both have their own IP addresses.
  17. HI Guys, If I enable bridging in network setup so that my VMs get an IP from my router then it stops my dockers being able to have their own assigned IP address. After enabling bridging then restarting the docker - when I go to the dockers, the ability to select bond 0 (my two nics are bonded) has gone and the only choices are bridge host or none. I don't think I am doing anything wrong - has anyone else seen this? OR have any suggestions? Thanks Stuart
  18. thought I would give this a whirl but doesn't seem to work I get this in the log any ideas? Thanks Stuart **** 2018-06-19 12:08:12.673504 INFO AppDaemon Version 3.0.1 starting2018-06-19 12:08:12.673636 INFO Configuration read from: /conf/appdaemon.yaml2018-06-19 12:08:12.674797 INFO AppDaemon: Starting Apps2018-06-19 12:08:12.676213 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin2018-06-19 12:08:12.682130 INFO AppDaemon: HASS: HASS Plugin Initializing2018-06-19 12:08:12.682307 INFO AppDaemon: HASS: HASS Plugin initialization complete2018-06-19 12:08:12.682411 INFO Dashboards are disabled2018-06-19 12:08:12.682469 INFO API is disabled2018-06-19 12:08:15.793762 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds2018-06-19 12:08:23.857760 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds2018-06-19 12:08:31.921764 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds2018-06-19 12:08:39.985723 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds2018-06-19 12:08:48.049772 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
  19. HI guys, I want to be able to run this - https://github.com/koochyrat/comfort2 To be able to interface my alarm system with the Home Assistant docker, is running a VM the best way to do this or is the docker I can use? Assuming it is a VM could someone point me in the right direction? Many thanks in advance! Stuart
  20. My first stab at this - installed docker ok brings up main screen but then when i follow the next step guide !Hass.io main panel! is completly missing form the docker - anyone any ideas as that seems to be how one adds addons. Cheers Stuart
  21. HI, I'd like to give my emby docker its own IP address (so I can tighten my firewall up sharing media when I go on holidays), I have read a few posts that say this is possible in 6.4 I thought it would be straight forward - go into update container for the appropriate docker - change the network type to bond0 leave the fixed IP address blank (I had assumed this woudl mean it picks one up from the DHCP server (I use pfsense to assign fixed IPs to key bits of kit)). But then it gives itself an IP address of 192.168.0.2 rather than getting one from DHCP and something else on the network has this ip address all ready (a managed switch). What am I doing wrong? Cheers Stuart
  22. Thanks - is this supported under unraid?