Sheherezadhe / awair-uploader

GNU General Public License v3.0
121 stars 57 forks source link

Linux shell only version without GUI? #31

Open edradev opened 2 years ago

edradev commented 2 years ago

When we will have chance to have linux shell only version without GUI?

racquemis commented 2 years ago

+1. yeah it stupid to have a GUI for this. Useless for people that actually have 24/7 running servers already. Please give possibility to configure the tool through a config file.

wwadge commented 2 years ago

Not currently possible - authentication from PW is requiring a browser flow. They can very easily fix it on their side but it's not something that this project can fix

shadylanebees commented 2 years ago

I think PlanetWatch needs to provide a proper API.

RobertoLeone commented 2 years ago

Not currently possible - authentication from PW is requiring a browser flow. They can very easily fix it on their side but it's not something that this project can fix

How can we push Planetwatch to implement the APIs needed to allow the development? I would like to run a simple linux job with a confing file (encrypted) to do this syncronization without consuming to much electricity or run a server!

substandardsolutions commented 2 years ago

They use a CF service that prevents automated requests. Normally, you could request an access token using keycloak with simple credentials without ever needing to touch a browser. A workaround that could work but in all honestly is not worth the effort would be to use selenium in headless mode emulating a browser login and fetch the access token. Once you've obtained it, you could send cURL requests with the bearer token. You would need to continually obtain a refresh token to keep it going however.

wwadge commented 2 years ago

https://github.com/wwadge/awair-bridge

That's exactly what I did in that project

On Mon, Apr 4, 2022, 02:28 wackoy5322 @.***> wrote:

It's not a great solution but works if you don't have any graphical environments that are running 24/7. The next goal would be to move the data fetching and pushing process to the backend only so all you need the browser for is setting up auth access and it would just run as a background service.

— Reply to this email directly, view it on GitHub https://github.com/Sheherezadhe/awair-uploader/issues/31#issuecomment-1086987479, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFGYD3WTJPGTSJ3MXY2XLVDIZSRANCNFSM5SK73S2A . You are receiving this because you commented.Message ID: @.***>

wwadge commented 2 years ago

And now that project can run completely headless so give it a shot if this project is difficult to run on your platform.