Giter Site home page Giter Site logo

laravel-meteoapi's Introduction

laravel-meteoapi

API for meteocat

curl_setopt

platges

  • /platges
  • /platges/geosearch/{longitude}/{latitude}
  • /platges/geosearch/{longitude}/{latitude}/{limit}

municipis

  • /municipis
  • /municipis/geosearch/{longitude}/{latitude}
  • /municipis/geosearch/{longitude}/{latitude}/{limit}
  • /municipis/{municipi_slug}
  • /municipis/{municipi_slug}/previsio
  • /municipis/{municipi_slug}/platges
  • /municipis/{municipi_slug}/platges/{platja_slug}
  • /municipis/{municipi_slug}/platges/{platja_slug}/previsio

comarques

  • /comarques
  • /comarques/{comarca_slug}

estat

  • /estat

commands

meteoapi:initdb

init db

meteoapi:getmunicipis

obté/actualitza els municipis

meteoapi:getplatges

get platges

meteoapi:getprevisiomunicipi

obte previsio municipal

meteoapi:getprevisioplatja

get Previso Platja

meteoapi:showcomarques

llistat de comarques

meteoapi:showmunicipis

llistat de municipis

meteoapi:showplatges

llistat de platges

meteoapi:updateprevisions

Actualitza previsions existents

S'actualitza diariament dues vegades si es configura el següent cron:

* * * * * php /home/jprats/git/laravel-meteoapi/meteoapi/artisan schedule:run 1>> /dev/null 2>&1

systemd - queue worker

root@shuvak:/etc/systemd/system# systemctl start laravelqueue@meteoapi
root@shuvak:/etc/systemd/system# systemctl status laravelqueue@meteoapi
● [email protected] - Laravel queue worker meteoapi
   Loaded: loaded (/etc/systemd/system/[email protected]; disabled; vendor preset: enabled)
   Active: active (running) since Sun 2018-06-24 20:08:03 CEST; 1s ago
 Main PID: 11136 (php)
   CGroup: /system.slice/system-laravelqueue.slice/[email protected]
           └─11136 /usr/bin/php /home/jprats/git/laravel-meteoapi/meteoapi/artisan queue:work --daemon --env=production

Jun 24 20:08:03 shuvak systemd[1]: Started Laravel queue worker meteoapi.
root@shuvak:/etc/systemd/system# systemctl enable laravelqueue@meteoapi
Created symlink from /etc/systemd/system/multi-user.target.wants/[email protected] to /etc/systemd/system/[email protected].
root@shuvak:/etc/systemd/system# cat [email protected]
[Unit]
Description=Laravel queue worker %i

[Service]
User=www-data
Group=www-data
Restart=always
ExecStart=/usr/bin/php /home/jprats/git/laravel-%i/%i/artisan queue:work --daemon --env=production

[Install]
WantedBy=multi-user.target
root@shuvak:/etc/systemd/system#

laravel-meteoapi's People

Contributors

jordiprats avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.