add python script as misc command

Having issues? Post them here, and help other users.
Post Reply
mf76130
Junior Member
Posts: 6
Joined: Tue Sep 29, 2020 7:55 pm

add python script as misc command

Post 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)
mf76130
Junior Member
Posts: 6
Joined: Tue Sep 29, 2020 7:55 pm

Re: add python script as misc command

Post by mf76130 »

I fixed it all and added it as a contribution here: viewtopic.php?t=1395
Post Reply