Skip to content

Commit ed277a1

Browse files
Merge pull request #13 from Bennett-Wendorf/Development
v0.2.0
2 parents ff80665 + 5959fcc commit ed277a1

343 files changed

Lines changed: 23986 additions & 1333 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
#Yaml file that contains sensative authentication information for integrations
1+
# Yaml file that contains sensative authentication information for integrations
22
*_authentication_settings.yml
33

4-
#Cache for storing microsoft oauth tokens
4+
# Cache for storing Microsoft oauth tokens
55
microsoft_cache.bin
66

7-
#VScode
7+
# Cache for storing Spotify oauth tokens
8+
spotify_cache.bin
9+
10+
# Lock file for virtual environment
11+
Pipfile.lock
12+
13+
# VScode
814
*.code-workspace
915
/.vscode
1016

@@ -39,7 +45,7 @@ MANIFEST
3945
# Usually these files are written by a python script from a template
4046
# before PyInstaller builds the exe, so as to inject date/other infos into it.
4147
*.manifest
42-
*.spec
48+
#*.spec
4349

4450
# Installer logs
4551
pip-log.txt
@@ -112,6 +118,6 @@ venv.bak/
112118

113119
# mypy
114120
.mypy_cache/
115-
116-
# Ignore dynaconf secret files
117-
.secrets.*
121+
122+
# Ignore dynaconf secret files
123+
.secrets.*

Pipfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ name = "pypi"
66
[packages]
77
kivy = "*"
88
requests-oauthlib = "*"
9-
pyyaml = "*"
109
python-dateutil = "*"
1110
pygments = "*"
1211
msal = "*"
1312
aiohttp = "*"
1413
dynaconf = "*"
14+
kivymd = "*"
15+
spotipy = "*"
1516

1617
[dev-packages]
18+
pyinstaller = "*"
19+
pytest = "*"
20+
coverage = "*"
1721

1822
[requires]
19-
python_version = "3.9"
23+
python_version = "3.10"

Pipfile.lock

Lines changed: 0 additions & 437 deletions
This file was deleted.

README.md

Lines changed: 24 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,21 @@
2222
<!-- PROJECT LOGO -->
2323
<br />
2424
<p align="center">
25-
<!-- TODO Add logo here -->
26-
<!-- <a href="https://github.com/bennett-wendorf/Kivy-Raspi-Desktop-App">
27-
<img src="images/logo.png" alt="Logo" width="80" height="80">
28-
</a> -->
25+
<a href="https://github.com/bennett-wendorf/Deskity">
26+
<img src="res/icons/app_logo_v0.2.0.png" alt="Logo" width="100" height="100">
27+
</a>
2928

30-
<h1 align="center">Kivy Raspi Desktop App</h3>
29+
<h1 align="center">Deskity</h3>
3130

3231
<p align="center">
33-
A small app that uses Python and Kivy. Syncs with Microsoft ToDo as well as Gmail and OpenWeatherMap for information. Designed to run on a 3.5" touch screen for the raspberry pi.
32+
A small app that uses Python and Kivy. Syncs with Microsoft ToDo as well as Spotify and OpenWeatherMap for information. Designed to run on a 3.5" touch screen for the raspberry pi.
3433
<br />
35-
<a href="https://github.com/bennett-wendorf/Kivy-Raspi-Desktop-App"><strong>Explore the docs »</strong></a>
34+
<a href="https://github.com/bennett-wendorf/Deskity"><strong>Explore the docs »</strong></a>
3635
<br />
3736
<br />
38-
<a href="https://github.com/bennett-wendorf/Kivy-Raspi-Desktop-App/issues">Report Bug</a>
37+
<a href="https://github.com/bennett-wendorf/Deskity/issues">Report Bug</a>
3938
·
40-
<a href="https://github.com/bennett-wendorf/Kivy-Raspi-Desktop-App/issues">Request Feature</a>
39+
<a href="https://github.com/bennett-wendorf/Deskity/issues">Request Feature</a>
4140
</p>
4241
</p>
4342

@@ -53,12 +52,7 @@
5352
<li><a href="#built-with">Built With</a></li>
5453
</ul>
5554
</li>
56-
<li>
57-
<a href="#getting-started">Getting Started</a>
58-
<ul>
59-
<li><a href="#installation">Installation</a></li>
60-
</ul>
61-
</li>
55+
<li><a href="#getting-started">Getting Started</a></li>
6256
<li><a href="#roadmap">Roadmap</a></li>
6357
<li><a href="#contributing">Contributing</a></li>
6458
<li><a href="#license">License</a></li>
@@ -72,7 +66,7 @@
7266
<!-- ABOUT THE PROJECT -->
7367
## About The Project
7468

75-
<p align='center'><img src='res/0.1.0_alpha.png'></p>
69+
<p align='center'><img src='res/0.2.0_alpha.png'></p>
7670

7771
When I started this project, I was both looking for a way to use the raspberry pi I had recently obtained, and also a way to expand my skills with python. The use case I came up with for a small desk accessory that showed some useful information at a glance was so specialized that I just decided to build it myself, rather than searching for a solution that did exactly what I wanted.
7872

@@ -87,56 +81,13 @@ This project is written in python using kivy for the UI elements.
8781
<!-- GETTING STARTED -->
8882
## Getting Started
8983

90-
For now, there is no installer or prepackaged installation for this project. This will be coming in the future. For now, follow the installation instructions below.
91-
92-
### Installation
93-
94-
1. Clone the repo
95-
```sh
96-
git clone https://github.com/Bennett-Wendorf/Kivy-Raspi-Desktop-App.git
97-
```
98-
2. Install dependencies
99-
* Use pipenv to install the requirements in a virtual environment
100-
```sh
101-
pipenv install
102-
```
103-
OR
104-
* Manually install requirements using `pip`
105-
```sh
106-
pip install <requirements from Pipfile>
107-
```
108-
3. Make a copy of the `TEMPLATE.secrets.toml` file and rename the copy to `.secrets.toml`. This is where you will add settings that shouldn't be pushed to a repository, such as API keys.
109-
3. Get a free API Key for weather data at [openweathermap.org/api](https://openweathermap.org/api).
110-
* Add this key in `.secrets.toml` under the setting for `api_key` in the `Weather_Widget` category.
111-
```toml
112-
[Weather_Widget]
113-
api_key = "<Your Key Here>"
114-
```
115-
* You can also try to use my API key by removing this setting from the file, but that may lead to throttling issues over time with OpenWeatherMap's free API. It is preferable to get your own key.
116-
4. Set up your app with Microsoft Graph. For the timebeing, I do not know if my `app_id` will work for all users, but feel free to test it by removing that setting in `.secrets.toml`. Otherwise, you will need to set up a free account and register the app yourself. Check out [Microsoft's page](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app) for more help with this.
117-
* You should get an `app_id` from this, which should also be added in `.secrets.toml` under the setting for `app_id` in the `To_Do_Widget` category.
118-
```toml
119-
[To_Do_Widget]
120-
app_id = "<Your App Id Here>"
121-
```
122-
5. Modify any other settings you would like in the `settings.toml` file. What is listed in that file already is also the default if that particular setting is not specified, with the exception of the `lists_to_use` setting, which defaults to an empty list.
123-
6. Run the app
124-
* If pipenv was used:
125-
```sh
126-
pipenv run python main.py
127-
```
128-
OR
129-
* If not, just run:
130-
```sh
131-
python main.py
132-
```
133-
84+
See the instructions on the [wiki](https://github.com/Bennett-Wendorf/Deskity/wiki/Getting-Started) for help with getting this project set up.
13485

13586

13687
<!-- ROADMAP -->
13788
## Roadmap
13889

139-
See the [projects](https://github.com/Bennett-Wendorf/Kivy-Raspi-Desktop-App/projects) tab for an updated list of what I am working on. For any feature requests, please create an [issue](https://github.com/Bennett-Wendorf/Kivy-Raspi-Desktop-App/issues) (See [Contributing](#contributing)).
90+
See the [projects](https://github.com/Bennett-Wendorf/Deskity/projects) tab for an updated list of what I am working on. For any feature requests, please create an [issue](https://github.com/Bennett-Wendorf/Deskity/issues) (See [Contributing](#contributing)).
14091

14192

14293

@@ -151,7 +102,7 @@ Contributions are what make the open source community such an amazing place to b
151102
4. Push to the Branch (`git push origin feature/AmazingFeature`)
152103
5. Open a Pull Request
153104

154-
If you find an issue in existing code, feel free to use the above procedure to generate a change, or open an [issue](https://github.com/Bennett-Wendorf/Kivy-Raspi-Desktop-App/issues) for me to fix it.
105+
If you find an issue in existing code, feel free to use the above procedure to generate a change, or open an [issue](https://github.com/Bennett-Wendorf/Deskity/issues) for me to fix it.
155106

156107

157108
<!-- LICENSE -->
@@ -166,7 +117,7 @@ Distributed under the MIT License. See `LICENSE` for more information.
166117

167118
Bennett Wendorf - [Website](https://bennett-wendorf.github.io/) - bennettwendorf@gmail.com
168119

169-
Project Link: [https://github.com/Bennett-Wendorf/Kivy-Raspi-Desktop-App](https://github.com/Bennett-Wendorf/Kivy-Raspi-Desktop-App)
120+
Project Link: [https://github.com/Bennett-Wendorf/Deskity](https://github.com/Bennett-Wendorf/Deskity)
170121

171122

172123

@@ -182,13 +133,13 @@ Project Link: [https://github.com/Bennett-Wendorf/Kivy-Raspi-Desktop-App](https:
182133

183134
<!-- MARKDOWN LINKS & IMAGES -->
184135
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
185-
[contributors-shield]: https://img.shields.io/github/contributors/bennett-wendorf/kivy-raspi-desktop-app.svg?style=flat&color=informational
186-
[contributors-url]: https://github.com/bennett-wendorf/kivy-raspi-desktop-app/graphs/contributors
187-
[forks-shield]: https://img.shields.io/github/forks/bennett-wendorf/kivy-raspi-desktop-app.svg?style=flat
188-
[forks-url]: https://github.com/bennett-wendorf/kivy-raspi-desktop-app/network/members
189-
[stars-shield]: https://img.shields.io/github/stars/bennett-wendorf/kivy-raspi-desktop-app.svg?style=flat&color=yellow
190-
[stars-url]: https://github.com/bennett-wendorf/kivy-raspi-desktop-app/stargazers
191-
[issues-shield]: https://img.shields.io/github/issues/bennett-wendorf/kivy-raspi-desktop-app.svg?style=flat&color=red
192-
[issues-url]: https://github.com/bennett-wendorf/kivy-raspi-desktop-app/issues
193-
[license-shield]: https://img.shields.io/github/license/bennett-wendorf/kivy-raspi-desktop-app.svg?style=flat
194-
[license-url]: https://github.com/bennett-wendorf/kivy-raspi-desktop-app/blob/master/LICENSE.txt
136+
[contributors-shield]: https://img.shields.io/github/contributors/bennett-wendorf/Deskity.svg?style=flat&color=informational
137+
[contributors-url]: https://github.com/bennett-wendorf/Deskity/graphs/contributors
138+
[forks-shield]: https://img.shields.io/github/forks/bennett-wendorf/Deskity.svg?style=flat
139+
[forks-url]: https://github.com/bennett-wendorf/Deskity/network/members
140+
[stars-shield]: https://img.shields.io/github/stars/bennett-wendorf/Deskity.svg?style=flat&color=yellow
141+
[stars-url]: https://github.com/bennett-wendorf/Deskity/stargazers
142+
[issues-shield]: https://img.shields.io/github/issues/bennett-wendorf/Deskity.svg?style=flat&color=red
143+
[issues-url]: https://github.com/bennett-wendorf/Deskity/issues
144+
[license-shield]: https://img.shields.io/github/license/bennett-wendorf/Deskity.svg?style=flat
145+
[license-url]: https://github.com/bennett-wendorf/Deskity/blob/master/LICENSE

TEMPLATE.secrets.toml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@ dynaconf_merge = true
77
[Weather_Widget]
88
# This is where you should specify your openweathermap API key.
99
# Get a free API key by creating an account here: https://openweathermap.org/api
10-
# This value will default to my API key if not specified, but is is
11-
# greatly encouraged that you get your own so all users can have a good experience.
10+
# Also check out https://github.com/Bennett-Wendorf/Deskity/wiki/Getting-Started#14-set-up-openweathermap-api-key for more info
1211
api_key = ""
1312

1413
[To_Do_Widget]
15-
# This is where your Microsoft app ID should be specified.
16-
# Eventually, I am going to look into a way where an end user
17-
# will not need to specify this, but for now, it is necessary.
18-
# This will also default to my app id if not specified, but I DO NOT know if that works.
14+
# This is where your Microsoft app ID should be specified.
15+
# Check out my wiki https://github.com/Bennett-Wendorf/Deskity/wiki/Getting-Started#15-set-up-microsoft-app-id for help with this
1916
# Check out the following page for more help with this:
2017
# https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app
21-
app_id = ""
18+
#app_id = ""
19+
20+
[Spotify_Widget]
21+
# This is where Spotify API information should be specified.
22+
# Check out my wiki article for how to do this https://github.com/Bennett-Wendorf/Deskity/wiki/Set-up-Spotify-API
23+
# Also see https://developer.spotify.com/documentation/web-api/quick-start/ for more info
24+
client_id = ""
25+
client_secret = ""
7.77 MB
Binary file not shown.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This setting allows these values to merge into the settings, because by default this
2+
# file will overwrite all settings in the same group names in the main 'settings.toml'
3+
# file. It is REQUIRED that this setting stay 'true' so as not to completely overwrite all
4+
# other settings.
5+
dynaconf_merge = true
6+
7+
[Weather_Widget]
8+
# This is where you should specify your openweathermap API key.
9+
# Get a free API key by creating an account here: https://openweathermap.org/api
10+
# Also check out https://github.com/Bennett-Wendorf/Deskity/wiki/Getting-Started#14-set-up-openweathermap-api-key for more info
11+
api_key = ""
12+
13+
[To_Do_Widget]
14+
# This is where your Microsoft app ID should be specified.
15+
# Check out my wiki https://github.com/Bennett-Wendorf/Deskity/wiki/Getting-Started#15-set-up-microsoft-app-id for help with this
16+
# Check out the following page for more help with this:
17+
# https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app
18+
#app_id = ""
19+
20+
[Spotify_Widget]
21+
# This is where Spotify API information should be specified.
22+
# Check out my wiki article for how to do this https://github.com/Bennett-Wendorf/Deskity/wiki/Set-up-Spotify-API
23+
# Also see https://developer.spotify.com/documentation/web-api/quick-start/ for more info
24+
client_id = ""
25+
client_secret = ""
812 KB
Binary file not shown.

0 commit comments

Comments
 (0)