ospfranco / sol

MacOS launcher & command palette
MIT License
1.94k stars 91 forks source link

Set the coordinates and the API key #6

Closed Angelk90 closed 2 years ago

Angelk90 commented 2 years ago

Hi @ospfranco , I created a file called env.json in the main dir.

I wanted to try to set the values but I'm not really understanding how to do it.

I am doing a similar thing.

WEATHER_API_KEY=MYCODE

But it appears that the code is not being taken in the store.

I also un-commented the config.ts file.

ospfranco commented 2 years ago

I changed this, the env.json file is no longer being used, there is a in-app command to set the API key and the coordinates.

Screenshot 000011
Angelk90 commented 2 years ago

@ospfranco :

Schermata 2022-03-20 alle 12 18 56

even if i put all the data, how do i confirm, to then go back?

Angelk90 commented 2 years ago

@ospfranco : In case there is no apiKey and no audio application open, wouldn't it be better not to show it?

Schermata 2022-03-20 alle 12 14 04
Angelk90 commented 2 years ago
Schermata 2022-03-20 alle 12 27 38

If an invalid code is entered, for example, I get this, after reloading, closing and reopening sol.

ospfranco commented 2 years ago

feel free to open pull requests for all this stuff, so far I've developed this app for myself, it is very unpolished