Fixed. I got help to make a persistent Phyton script that's called from Node-RED and opens and closes the nodes. OK, somebody made it for me, I didn't do much myself...
I mean sending a command that has for instance output 2 sending 12V- through until I turn it off again. I thought that was what the Phidgets server should enable? So that keeps current flowing until a restart of the server or until the port is actively turned off by something else? If there's a Pyth...
Found it! During my messing around I had set HUB port wrong, to 2. But 0 worked, so "DigitalOutput Opened (SN:15593, Ch:1)"1 I am connected. But now it says "missing value" with the same settings as above. Any idea what value that may be?
Thanks for answering! I'm using a 0/16/16, version 601. But I see. So I think I may have gotten it right by using "setstate" as a topic and then true as a JSON payload. Now I only get the timeout error on startup of Node-RED, and no errors in the syntax. I get "setState failed:Phidget...
I have tried modyfying the example script, but whatever I do, a python script will close the open port again when I exit it. Can somebody please tell me the code for opening and closing a port and leave it open? Either on a local script or adressing the server, which is running.
I have tried for weeks to get this to work, and I tried the forum too, but obvoiusly in the wronge place. Only now do I find this thread, I was doing my posting under Linux. :oops: So I have gotten as far as to connect to the server, but I can't do the simple task I want to do. I just want to open a...
Thanks, I know where the log is. But as I said there was nothing in it except for "Logging enabled" (and the time it started logging). But during the night there came another error, so this is the full file now: 2020-11-25T14:58:45 <ERROR> phidget22 : ****************************** Logging...