Page 1 of 1

add python script as misc command

Posted: Mon Apr 04, 2022 12:55 pm
by mf76130
Hi,

I created a simple python script which works correct, when i run it on the NEMS pi in python3.
When i start it as a misc command it doesn't work and always complains "module requests not found"

Where do i have to install the modules to get the used by Nems?

Can anybody give me a hint?

thanks in advance
michael

here is my simple python script:
import requests
import sys
idx=sys.argv[1]
domoticz_url='http://username:[email protected]:80 ... ormat(idx)
response=requests.post(url=domoticz_url)
domoticz_url='http://username:[email protected]:80 ... ormat(idx)
response=requests.post(url=domoticz_url)

Re: add python script as misc command

Posted: Mon Apr 04, 2022 2:02 pm
by mf76130
I fixed it all and added it as a contribution here: viewtopic.php?t=1395