Search Results

by khun
Sat Nov 16, 2024 10:05 am
Forum: InterfaceKits
Topic: PIR sensor breaks ground, not 24V output
Replies: 0
Views: 572

PIR sensor breaks ground, not 24V output

Hi! I have bought a number of these relays: https://www.superbrightleds.com/mini-pir-motion-sensor-switch-with-built-in-timer-12-24-vdc-6-amps-mini-pir-switch?utm_campaign=200_tROAS-Pmax&utm_source=google&utm_medium=cpc&utm_term=&utm_content=N/A&gad_source=1&gclid=Cj0KCQiAlsy...
by khun
Wed Feb 22, 2023 5:40 pm
Forum: Linux
Topic: User rights
Replies: 0
Views: 139725

User rights

I had posted this in Python, but realize it fits better in this topic. After several evenings trying everything I can find, I still can't get my Phidget code to run without sudo on my Raspberry Pi. Or rather, sometimes it does for a while, but then it doesn't again. Every time it can be solved by ru...
by khun
Wed Feb 22, 2023 4:12 pm
Forum: Python
Topic: User rights for Phidgets
Replies: 0
Views: 147171

User rights for Phidgets

After several evenings trying everything I can find, I still can't get my Phidget code to run without sudo. Or rather, sometimes it does for a while, but then it doesn't again. Every time it can be solved by running it with sudo. But a web page doesn't run like that, so I can't get the web page to c...
by khun
Tue Feb 21, 2023 3:35 pm
Forum: Javascript
Topic: What does Phidget22.Connection do?
Replies: 2
Views: 33149

Re: What does Phidget22.Connection do?

Thanks for the reply. I don't know how to check for those things, but I suddenly realized that the problem now seems to be user rights again, which I am discussing in another thread (I can't run phidget22admin without sudo). So I'm happy with the answer here for now, I was just wondering what the &q...
by khun
Sun Feb 19, 2023 2:02 pm
Forum: Javascript
Topic: User rights for Phidget
Replies: 3
Views: 35035

Re: User rights for Phidget

Too quick: it worked for a little while, now it doesn't again. And the same trick doesn't help anymore. This is getting really annoying!

A hope someone can help!
by khun
Sun Feb 19, 2023 1:34 pm
Forum: Javascript
Topic: Web page code: open and close every time?
Replies: 0
Views: 147264

Web page code: open and close every time?

I have trouble getting a web page for controlling Phidgets to work. It seems like things work one time after rebooting, then stop. I have buttons on the page for turning on/off DigitalOutputs. If my "Load" code connects to the Phidget and opens all DigitalOutput channels, are they still av...
by khun
Sun Feb 19, 2023 1:30 pm
Forum: Javascript
Topic: What does Phidget22.Connection do?
Replies: 2
Views: 33149

What does Phidget22.Connection do?

I find examples like these for web pages: function connectPhidgets() { var local = location.hostname; //get host location var conn = new phidget22.Connection(8080, local); conn.connect().then(runExample); } What is happening here? Why would I need to do this in a web page (index.html), in python I j...
by khun
Sun Feb 19, 2023 11:45 am
Forum: Javascript
Topic: User rights for Phidget
Replies: 3
Views: 35035

Re: User rights for Phidget

I finally found a discussion about this in the "Linux" topic on this forum.

All that is needed, was to run:

sudo apt-get install --reinstall udev

and restart! Why? No idea, seems very strange to me, I haven't quite gotten the hang of linux yet, I realize...
by khun
Sun Feb 19, 2023 11:30 am
Forum: Javascript
Topic: User rights for Phidget
Replies: 3
Views: 35035

Re: User rights for Phidget

I forgot to mention that I _do_ have a file called: /etc/udev/rules.d/99-libphidget22.rules with the content: SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="06c2", ATTRS{idProduct}=="00[3-a][0-f]", MODE="666" should allow all users access to the...
by khun
Sun Feb 19, 2023 11:19 am
Forum: Javascript
Topic: User rights for Phidget
Replies: 3
Views: 35035

User rights for Phidget

Hi! I can't get my web page to connect to the Phidget. I'm guessing because of user rights somehow. What user rights does the web server have? Do I need to do something special to let it access Phidgets? And that code in connectPhidgets, what does it do? Is it needed at all? When I look at this web ...