Some improvement ideas #1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First, thanks for writing this bot!
Just writing down some ideas we had while using this bot:
You mean adapting the range of the blackiest/whitest pixel, to 0:255? Or am i missing something else?
That could be a nice idea, but i have no idea how the api for Mastodon works. I would need to research more about it.
I'm working on that already. Also perhaps rate limiting should be per-mm rather than per stickers (printing 10 5mm tall stickers is much better than 10 60mm tall stickers).
You can already set the password to an arbitrary string. Am i missing something there? How would that work?
You can add it in the welcome message from config.py
Rejected ratio is usually triggered by unusually long stickers. I believe it would be hard to find an acceptable cropping algorithm which would keep in focus the "important" part of the image. IMHO, the error is already clear enough and i've seen that in events people usually understand the gist of it quite clearly.
That's the essence of it yes, but I don't know the details of the algorithm. Now some stickers look quite bright in full color but weak in grayscale, I think this would improve that.
I wrote some code for it yesterday using the Mastodon.py library, it is quite trivial. You create an API key on Mastodon, instantiate an object with that key and hostname, upload the image and submit a post with that image attached.
Cool, a friend of me wrote some banning code yesterday which is now running at our BornHack village.
My point is to create some form of challenge into the pin code to the event visitor so they have to keep coming back for new stickers instead of printing a whole bunch of them remotely. But it requires a thoughtful balance so it stays fun and does not become an annoyance. But this is very much a nice-to-have feature, a code on the printer works fine :)
Yes, but I mean that it should be suggested to the person who sets up a new deployment, so maybe in the README.md.
Ah, maybe it was a different issue then. I remember telling this to someone without looking at the actual error and they said my advice helped. If you say the error is clear enough, I guess it's fine.
I believe we can present a matrix to the user with various settings and let them decide the one that looks better, perhaps?
Damn. I'll enable SSH soon so you can push that and we can keep improving the code!
Using a PN532 and the nfcpy library it could be trivial to create a nfc "totem" from where to "redeem" prints. Telegram already implements a way to send data to bots using a link like "https//t.me/yourbot/payload_here". Perhaps using a ndef payload sending a link like that could work?
Good idea.
Maybe check a bit more on that and let me know so that we can work more on that.
Maybe we should open more issue threads, but I'm reporting it here to remind myself as well.
There is a permission issue with
/dev/usb/lp0
file on Fedora Server. It resets the file permissions on reboot and on disconnects of the printer, which means that everytime I have to start a shell script withchmod
. This should probably be fixed by writing an udev config file for the printer. Not sure if this is needed for all distros and needs some more testing. I tried the group command in the README.md before already, did not worked on this server.Also, the printer (QL-700 is my case) seems to go to sleep after a while. Maybe it is possible to send some sort of keepalive to it, I have to research that.
https://hacksrus.xyz/notice/AYp3DXBOjWhgkhbZJI
Maybe we should create some deployment recommendations section in the readme, such as buying Brother DK-22606 tape for warning stickers.
Also, having that web server from samw integrated in this project would be really neat, so it's also accessible for non-Telegram users.
Done.
Doable, but uhh, i believe out of the scope right now.