Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count printed pictures #212

Open
danielovic295 opened this issue Dec 25, 2019 · 13 comments
Open

Count printed pictures #212

danielovic295 opened this issue Dec 25, 2019 · 13 comments

Comments

@danielovic295
Copy link

Is your feature request related to a problem? Please describe.
It would be nice to have a counter which shows me the amounts of printed pictures. As me and many other use a DNP printer, which has no display showing the remaining possible prints on the paper roll, you always run into danger, that the roll with go empty while having an event.

Describe the solution you'd like
A simple counter, maybe in the admin page (has to be resettable).

Describe alternatives you've considered
I always took the amount of files in the /data/print/ directory, but on that way I can't count the prints which got printed several times.

Additional context
A possible solution could be to count the executions of the print.php file, but myself is not able to code something like that.

@flighter18
Copy link

HI @danielovic295

I did something simalery. My goal was a webpage with all the photobooth statistics. This is the result:

Main page
Bildschirmfoto 2019-12-25 um 23 39 44

All taked Photos
Bildschirmfoto 2019-12-25 um 23 52 13

I use a PHP API and modified the takePic.php and print.php file. Now every time someone prints a picture or makes a photo a curl request will be send to my server. My server takes the request iand saves them in a Database. Finally my website evaluate the database and shows all the metrics in a nice way.

maybe that's a little over the top but let me know, if you want more infos. 😄

@danielovic295
Copy link
Author

Hi @flighter18,

this is brilliant, but for the live monitoring there is connection to the internet required, isn't it?

Besides that, I think I am not able to implement that into my system.

What resources do you need for that system?

But I think it is not absolutey necessary to have a live monitoring (but it's very nice tho :D), a simply offline tracking would be absolutely sufficient.

BR,
danielovic

@andi34
Copy link
Collaborator

andi34 commented Dec 26, 2019

Here's an example how to implement a counter:
ab6cc50#diff-1463ee9d4350b7e153b2bf7b62a8f151

@flighter18
Copy link

Hi @flighter18,

this is brilliant, but for the live monitoring there is connection to the internet required, isn't it?

Besides that, I think I am not able to implement that into my system.

What resources do you need for that system?

But I think it is not absolutey necessary to have a live monitoring (but it's very nice tho :D), a simply offline tracking would be absolutely sufficient.

BR,
danielovic

Actually you don't need an internet connection. you could do it on the photobooth hardware.
The only resource you additional need is a Database.

maybe you could tryout andi34's implementation. 😄

@andi34
Copy link
Collaborator

andi34 commented Dec 27, 2019

It's not my implementation, but a hint on how it could work and how it could be implemented.

@flighter18
Copy link

@andi34 sorry for the misunderstanding

@flacoonb
Copy link

Hi @flighter18
that's exactly what I'm looking for. Looks great! Can you provide your code?
Thank you very much.

@flighter18
Copy link

hi @flacoonb

You will find the code here:
https://github.com/flighter18/photobooth-buzzer-led

@flacoonb
Copy link

flacoonb commented Mar 4, 2020

thx @flighter18
but the link is for buzzer and not for the count printed pictures?

@flighter18
Copy link

flighter18 commented Mar 6, 2020

@flacoonb

ou sorry wrong theme :)
currently the code isn't on any git repo. 😃

But if you're so interested then i can create a repo this weekend. :)

@flacoonb
Copy link

flacoonb commented Mar 6, 2020

😉 @flighter18
all right, that would be great! I'm sure there are even more interested.
Thanks a lot already!

@flacoonb
Copy link

@flighter18
what about the repo? Thx

@flighter18
Copy link

@flacoonb
https://github.com/flighter18/photobooth-statistic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants