prusa connect - rpi3 and usb webcam - registration of cam - mini+
 
Notifications
Clear all

prusa connect - rpi3 and usb webcam - registration of cam - mini+  

  RSS
Pejspa
(@pejspa)
Member
prusa connect - rpi3 and usb webcam - registration of cam - mini+

Hi i have rpi3, some usb webcam and Prusa Mini+. Everything works fine but i cannot register the cam with POST call.
This give me:

{"message": "Missing or invalid security token", "code": "UNAUTHORIZED"}

my bash:
 

 

I get the token here 

Best Answer by Pejspa:

I solved it according to this tutorial: https://gist.github.com/nunofgs/84861ee453254823be6b069ebbce9ad2

It's a bit hacky but works for me. I made a few edits: 
- bash is ok for me (i don't need python)

- and make the crontab for every 10 sec. : 

* * * * * /path/to/your/script.sh
* * * * * ( sleep 10 ; /path/to/your/script.sh )
* * * * * ( sleep 20 ; /path/to/your/script.sh )
* * * * * ( sleep 30 ; /path/to/your/script.sh )
* * * * * ( sleep 40 ; /path/to/your/script.sh )
* * * * * ( sleep 50 ; /path/to/your/script.sh )

It is hacky too but works for me perfect!

Posted : 23/10/2023 4:06 pm
Pejspa
(@pejspa)
Member
Topic starter answered:
RE: prusa connect - rpi3 and usb webcam - registration of cam - mini+

I solved it according to this tutorial: https://gist.github.com/nunofgs/84861ee453254823be6b069ebbce9ad2

It's a bit hacky but works for me. I made a few edits: 
- bash is ok for me (i don't need python)

- and make the crontab for every 10 sec. : 

* * * * * /path/to/your/script.sh
* * * * * ( sleep 10 ; /path/to/your/script.sh )
* * * * * ( sleep 20 ; /path/to/your/script.sh )
* * * * * ( sleep 30 ; /path/to/your/script.sh )
* * * * * ( sleep 40 ; /path/to/your/script.sh )
* * * * * ( sleep 50 ; /path/to/your/script.sh )

It is hacky too but works for me perfect!

Posted : 23/10/2023 7:43 pm
Share: