Search Results

by Mastiff
Mon Dec 07, 2020 1:57 am
Forum: Javascript
Topic: Phidget22 Node-RED Module Released
Replies: 29
Views: 99079

Re: Phidget22 Node-RED Module Released

Fixed. I got help to make a Phyton script that's called from Node-RED and opens the nodes. OK, somebody made it for me, I didn't do much myself... :mrgreen:
by Mastiff
Mon Dec 07, 2020 1:57 am
Forum: Python
Topic: How do I open a digital output with a Python script and leave it open?
Replies: 3
Views: 9210

Re: How do I open a digital output with a Python script and leave it open?

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... :mrgreen:
by Mastiff
Sat Dec 05, 2020 1:26 pm
Forum: Linux
Topic: Trying to get 0/16/16 board up and running on Pi
Replies: 23
Views: 60178

Re: Trying to get 0/16/16 board up and running on Pi

OK, I have solved all that, thanks for the help so far! I'm going to Python and Javascript to see if I can get this to actually do something for me. :mrgreen:
by Mastiff
Sat Dec 05, 2020 11:17 am
Forum: Python
Topic: How do I open a digital output with a Python script and leave it open?
Replies: 3
Views: 9210

Re: How do I open a digital output with a Python script and leave it open?

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...
by Mastiff
Fri Dec 04, 2020 5:00 pm
Forum: Javascript
Topic: Phidget22 Node-RED Module Released
Replies: 29
Views: 99079

Re: Phidget22 Node-RED Module Released

Found it! :mrgreen: 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?
by Mastiff
Fri Dec 04, 2020 3:12 pm
Forum: Javascript
Topic: Phidget22 Node-RED Module Released
Replies: 29
Views: 99079

Re: Phidget22 Node-RED Module Released

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...
by Mastiff
Fri Dec 04, 2020 6:27 am
Forum: Python
Topic: How do I open a digital output with a Python script and leave it open?
Replies: 3
Views: 9210

How do I open a digital output with a Python script and leave it open?

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.
by Mastiff
Fri Dec 04, 2020 6:24 am
Forum: Javascript
Topic: Phidget22 Node-RED Module Released
Replies: 29
Views: 99079

Re: Phidget22 Node-RED Module Released

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...
by Mastiff
Thu Nov 26, 2020 4:12 pm
Forum: Linux
Topic: Trying to get 0/16/16 board up and running on Pi
Replies: 23
Views: 60178

Re: Trying to get 0/16/16 board up and running on Pi

I tried to find out what starts the server to change the log level, since it's not started by systemd. Where should I look?

Also, is it the libphidget22extra file that contains the admin binaries that I should install?
by Mastiff
Thu Nov 26, 2020 2:41 am
Forum: Linux
Topic: Trying to get 0/16/16 board up and running on Pi
Replies: 23
Views: 60178

Re: Trying to get 0/16/16 board up and running on Pi

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...