pi-ware icon indicating copy to clipboard operation
pi-ware copied to clipboard

Add download meters

Open NoozAbooz opened this issue 4 years ago • 65 comments

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.

NoozAbooz avatar Jun 30 '21 12:06 NoozAbooz

please give a completely description

Painadath avatar Jun 30 '21 12:06 Painadath

@mobilegmYT

Painadath avatar Jun 30 '21 13:06 Painadath

Wdym?

NoozAbooz avatar Jun 30 '21 13:06 NoozAbooz

@mobilegmYT Like a download count of each app?

IsaacMvmv avatar Jun 30 '21 14:06 IsaacMvmv

@mobilegmYT Like a download count of each app?

Yep

NoozAbooz avatar Jun 30 '21 14:06 NoozAbooz

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.

oxmc avatar Jun 30 '21 14:06 oxmc

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 :/

IsaacMvmv avatar Jun 30 '21 14:06 IsaacMvmv

oh, no. We will have the file download each time.

oxmc avatar Jun 30 '21 14:06 oxmc

k

IsaacMvmv avatar Jun 30 '21 14:06 IsaacMvmv

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.

ZaydTheCoder avatar Jun 30 '21 14:06 ZaydTheCoder

But script says where can be located, and we can view the script

IsaacMvmv avatar Jun 30 '21 14:06 IsaacMvmv

Yes, there is no way to hide where it stores the file

ZaydTheCoder avatar Jun 30 '21 14:06 ZaydTheCoder

I suggest ip saving, like:

IP=$(curl ifconfig.me) if $IP is same as saved somewhere, not send 2 website

IsaacMvmv avatar Jun 30 '21 14:06 IsaacMvmv

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

oxmc avatar Jun 30 '21 14:06 oxmc

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.

ZaydTheCoder avatar Jun 30 '21 14:06 ZaydTheCoder

Or chmod 700 the file Much more we cant do

IsaacMvmv avatar Jun 30 '21 14:06 IsaacMvmv

Hmmm, this requires research.

oxmc avatar Jun 30 '21 14:06 oxmc

Yes, it does

ZaydTheCoder avatar Jun 30 '21 14:06 ZaydTheCoder

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.

ZaydTheCoder avatar Jun 30 '21 14:06 ZaydTheCoder

Yeah, if they modifiy it, it gets replaced when pi-ware auto-updates.

oxmc avatar Jun 30 '21 14:06 oxmc

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.

oxmc avatar Jun 30 '21 14:06 oxmc

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.

oxmc avatar Jun 30 '21 14:06 oxmc

Did you type the same message twice?

ZaydTheCoder avatar Jun 30 '21 14:06 ZaydTheCoder

no, it does this sometimes.

oxmc avatar Jun 30 '21 14:06 oxmc

Some good things

IsaacMvmv avatar Jun 30 '21 15:06 IsaacMvmv

Some good things ?

oxmc avatar Jun 30 '21 15:06 oxmc

Yes

IsaacMvmv avatar Jun 30 '21 16:06 IsaacMvmv

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 avatar Jul 09 '21 05:07 gl91306

@gl91306 or uploading or updating a text when user clicks but IDK how to do this

Painadath avatar Jul 09 '21 06:07 Painadath

may be this https://roytuts.com/python-flask-file-upload-example/

Painadath avatar Jul 11 '21 02:07 Painadath