August 24, 20205 yr 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
August 24, 20205 yr So far as the python part goes my recommendation is to use a python docker container to run your python script in. So you would create a User Scripts script to launch your python script, but rather than call it directly you would do something like docker run --rm -d -v /path/to/script/containing/folder/on/host:/mnt:ro --workdir /mnt python:3 ./your-script.py --argument-for-script YES Edited August 24, 20205 yr by primeval_god
May 10, 20215 yr On 8/25/2020 at 2:34 AM, primeval_god said: my recommendation is to use a python docker container what is this python docker you speak of? im trying to work out a way to run this in unraid https://pythonawesome.com/a-cross-platform-plot-manager-for-chia-plotting/ (pythonawesome.com) Edited May 10, 20215 yr by burgess22
Archived
This topic is now archived and is closed to further replies.