|
@ -3,4 +3,9 @@ Version 0.1.0:
|
|||
|
||||
Version 0.2.0:
|
||||
- Improve UI to fit better on mobile devices
|
||||
- UI bug fixes
|
||||
- UI bug fixes
|
||||
|
||||
Verson 0.3.0:
|
||||
- Add location service to find users current location
|
||||
- Add support for languages
|
||||
- Add German translation
|
24
README.md
|
@ -18,7 +18,7 @@ This small program should answer all these questions.
|
|||
+4. Find the position of the moon at a spesific time -- Implemented and equations seem to be sufficiently precise (~ ± 2°)
|
||||
+5. Present all calculated data in the GUI -- Most of the data is showen
|
||||
+6. Create the location search -- A simple offline search is implemented now more will follow
|
||||
-7. Implement "smarphone functionality" e.g. find location via GPS
|
||||
+7. Implement "smarphone functionality" e.g. find location via GPS
|
||||
+8. Insert a map view with OSM
|
||||
+9. Visualise important data direktly on the map
|
||||
```
|
||||
|
@ -36,12 +36,11 @@ Some of these formulas are from the excellent book by Jean Meeus "Astronomical A
|
|||
- Libadwaita is used to make the GUI adaptive.
|
||||
- Shumate is used to show a map.
|
||||
- Libgweather is used for the offline search functionality.
|
||||
- GeoClue is used to get the users current location.
|
||||
|
||||
|
||||
## Build
|
||||
|
||||
At the moment this application is NOT fully functional.
|
||||
|
||||
```diff
|
||||
git clone https://gitlab.com/Zwarf/picplanner.git
|
||||
cd picplanner
|
||||
|
@ -51,18 +50,11 @@ ninja
|
|||
ninja install
|
||||
```
|
||||
|
||||
Or download the Flatpak from <a href='https://flathub.org/apps/details/de.zwarf.picplanner'>Flathub</a>
|
||||
|
||||
## Screenshots Desktop Size, Light Theme
|
||||
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/screenshot-large-1.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/screenshot-large-1.png'/></a>
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/screenshot-large-2.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/screenshot-large-2.png'/></a>
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/screenshot-large-3.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/screenshot-large-3.png'/></a>
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/screenshot-large-4.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/screenshot-large-4.png'/></a>
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/screenshot-large-5.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/screenshot-large-5.png'/></a>
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/screenshot-large-6.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/screenshot-large-6.png'/></a>
|
||||
|
||||
## Screenshots Mobile Size, Light Theme
|
||||
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/screenshot-small-1.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/screenshot-small-1.png'/></a>
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/screenshot-small-2.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/screenshot-small-2.png'/></a>
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/screenshot-small-3.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/screenshot-small-3.png'/></a>
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/screenshot-small-4.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/screenshot-small-4.png'/></a>
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/picplanner-1.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/picplanner-1.png'/></a>
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/picplanner-2.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/picplanner-2.png'/></a>
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/picplanner-3.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/picplanner-3.png'/></a>
|
||||
<a href='https://gitlab.com/zwarf/picplanner/-/blob/main/screenshots/picplanner-4.png'><img height='550px' alt='screenshot-large' src='https://gitlab.com/zwarf/picplanner/-/raw/main/screenshots/picplanner-4.png'/></a>
|
|
@ -26,28 +26,20 @@
|
|||
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<caption>Overview with map and some controls</caption>
|
||||
<image type="source" width="1600" height="900">https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/screenshot-large-1.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<caption>Change date and time in the overview</caption>
|
||||
<image type="source" width="1600" height="900">https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/screenshot-large-2.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<caption>Information about celestial bodies</caption>
|
||||
<image type="source" width="1600" height="900">https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/screenshot-large-3.png</image>
|
||||
<caption>Overview with a map and some basic information</caption>
|
||||
<image type="source" width="1600" height="900">https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/picplanner-1.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<caption>The sun page</caption>
|
||||
<image type="source" width="1600" height="900">https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/screenshot-large-4.png</image>
|
||||
<image type="source" width="1600" height="900">https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/picplanner-2.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<caption>The moon page</caption>
|
||||
<image type="source" width="1600" height="900">https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/screenshot-large-5.png</image>
|
||||
<image type="source" width="1600" height="900">https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/picplanner-3.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<caption>The milky way page</caption>
|
||||
<image type="source" width="1600" height="900">https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/screenshot-large-6.png</image>
|
||||
<image type="source" width="1600" height="900">https://gitlab.com/Zwarf/picplanner/-/raw/main/screenshots/picplanner-4.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
|
||||
|
@ -81,6 +73,16 @@
|
|||
</requires>
|
||||
|
||||
<releases>
|
||||
<release version="0.3.0" date="2022-09-13" >
|
||||
<description>
|
||||
<p>New features have been added:</p>
|
||||
<ul>
|
||||
<li>Add location service to find users current location</li>
|
||||
<li>Add support for languages</li>
|
||||
<li>Add German translation</li>
|
||||
</ul>
|
||||
</description>
|
||||
</release>
|
||||
<release version="0.2.0" date="2022-09-05" >
|
||||
<description>
|
||||
<p>UI improvements and smaller bug fixes</p>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
project('picplanner', 'c',
|
||||
version: '0.2.0',
|
||||
version: '0.3.0',
|
||||
meson_version: '>= 0.50.0',
|
||||
default_options: [ 'warning_level=2',
|
||||
'c_std=gnu11',
|
||||
|
|
Po Szerokość: | Wysokość: | Rozmiar: 1.0 MiB |
Po Szerokość: | Wysokość: | Rozmiar: 57 KiB |
Po Szerokość: | Wysokość: | Rozmiar: 47 KiB |
Po Szerokość: | Wysokość: | Rozmiar: 59 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 1.3 MiB |
Przed Szerokość: | Wysokość: | Rozmiar: 1.3 MiB |
Przed Szerokość: | Wysokość: | Rozmiar: 1.1 MiB |
Przed Szerokość: | Wysokość: | Rozmiar: 1.1 MiB |
Przed Szerokość: | Wysokość: | Rozmiar: 55 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 44 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 54 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 183 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 37 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 32 KiB |
Przed Szerokość: | Wysokość: | Rozmiar: 44 KiB |
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* location-service.c
|
||||
* Copyright (C) 2021 Zwarf <zwarf@mail.de>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include "location-service.h"
|
||||
|
||||
/* GeoClue */
|
||||
|
@ -39,7 +58,7 @@ set_user_location (GObject *source_object,
|
|||
double latitude;
|
||||
double longitude;
|
||||
GError *error = NULL;
|
||||
static GClueLocation *location;
|
||||
static GClueLocation *location; /* How can one free this? */
|
||||
|
||||
simple = gclue_simple_new_with_thresholds_finish (res, &error);
|
||||
|
||||
|
|
|
@ -1,3 +1,22 @@
|
|||
/*
|
||||
* location-service.h
|
||||
* Copyright (C) 2021 Zwarf <zwarf@mail.de>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <geoclue.h>
|
||||
|
|