Add download meters
What does this suggestion do to pi-ware? It helps people gauge what's popular and what do download, as well as telling app contributors if their app is popular.
This could be implemented similarly to RPI Imager's telemetry, where installing a app sends a signal to a website to increase download counts in a JSON file for a app, and remove counts upon uninstall.
please give a completely description
@mobilegmYT
Wdym?
@mobilegmYT Like a download count of each app?
@mobilegmYT Like a download count of each app?
Yep
I think we can implement that.
What does this suggestion do to pi-ware? It helps people gauge what's popular and what do download, as well as telling app contributors if their app is popular.
This could be implemented similarly to RPI Imager's telemetry, where installing a app sends a signal to a website to increase download counts in a JSON file for a app, and remove counts upon uninstall.
I think we can implement that.
What does this suggestion do to pi-ware? It helps people gauge what's popular and what do download, as well as telling app contributors if their app is popular. This could be implemented similarly to RPI Imager's telemetry, where installing a app sends a signal to a website to increase download counts in a JSON file for a app, and remove counts upon uninstall.
BuT, that number could be manipulated, also I can make an script to change that number to whatever we want, taking the line of the installer and modifying it :/
oh, no. We will have the file download each time.
k
There can be a .txt file that stores the data. We would need it not to be in a obvious directory so users don't modify it.
But script says where can be located, and we can view the script
Yes, there is no way to hide where it stores the file
I suggest ip saving, like:
IP=$(curl ifconfig.me) if $IP is same as saved somewhere, not send 2 website
There can be a .txt file that stores the data. We would need it not to be in a obvious directory so users don't modify it.
We can also change view permissons
Yes, we can but we would have to do it on the install aswell because otherwise, they will be able to see in the install where does it store the file, even if it hides it.
Or chmod 700 the file Much more we cant do
Hmmm, this requires research.
Yes, it does
Would it be worth trying to hide the downloads data? What I mean is that is it worth the effort to hide the file? A user would have to burrow through pi-ware files to find and even if they did find it, they would just be able to change what the download data is.
Yeah, if they modifiy it, it gets replaced when pi-ware auto-updates.
Would it be worth trying to hide the downloads data? What I mean is that is it worth the effort to hide the file? A user would have to burrow through pi-ware files to find and even if they did find it, they would just be able to change what the download data is.
And i codename every file per it's purpose, so... yeah.
Would it be worth trying to hide the downloads data? What I mean is that is it worth the effort to hide the file? A user would have to burrow through pi-ware files to find and even if they did find it, they would just be able to change what the download data is.
And i codename every file per it's purpose, so... yeah.
Did you type the same message twice?
no, it does this sometimes.
Some good things
Some good things ?
Yes
The best way to do this I think is to make an api request to pi wares site each time you download an app and each time you check the download meters where the info will be stored and can be accessed. The api request would have to have a key or and id to make sure the request is coming form pi-ware and not spammed.
@gl91306 or uploading or updating a text when user clicks but IDK how to do this
may be this https://roytuts.com/python-flask-file-upload-example/