Skip to content

Application to show the sunrise/sunset time at a specific location, using Ionic. You can generate an application for desktop, Android, iOS or the browser.

License

Notifications You must be signed in to change notification settings

jrierab/SunriseSunset

Repository files navigation

SunriseSunset

Català English

English

Application to show the sunrise/sunset time at a specific location, using Ionic an electron. You can generate an application for desktop, Android, iOS or the browser.

Includes:

  • Geolocation to set the initial position.
  • GoogleMaps to choose a different site.
  • A calendar to choose a date.
  • Translation into different languages.
  • Personalized icons and fonts.

Step-by-step implementation is explained (in catalan, automatic translation available) in posts from the blog https://anomenaidesa.blogspot.com.es

Install

  1. Install NVM (Node Version Manager) from https://github.com/creationix/nvm
  2. Install Node
nvm install latest
  1. Install Ionic
npm install -g cordova ionic
  1. Clone this repository
git clone https://github.com/jrierab/SunriseSunset.git
  1. Install dependencies
cd SunriseSunset
npm install
  1. Generate your own config_keys.json to allow geolocation on desktop
cp config_keys_template.json config_keys.json

then edit it to fill with your Google API key for Geolocation and Maps.

Build

  1. Test on browser
ionic serve -c -s
  1. Build for android
ionic cordova build android
  1. Test electron desktop application
ionic serve --no-open
electron .
  1. Build linux desktop application with electron
npm run dist

Credits

Català

Aplicació per mostrar l'hora de sortida/posta de sol en un lloc determinat, usant Ionic i electron. Pot generar una aplicació d'escriptori, Android, iOS o pel navegador.

Inclou:

  • Geolocalització per fixar la posició inicial.
  • GoogleMaps per escollir un lloc diferent.
  • Un calendari per escollir una data.
  • Traducció a diferents idiomes.
  • Icones i tipus de lletra personalitzats.

Implementació pas a pas explicada en els articles del bloc https://anomenaidesa.blogspot.com.es

Instal·lació Execució Crèdits