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"}
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!
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!