Giter Site home page Giter Site logo

kalliope-allocine's Introduction

Allocine neuron for Kalliope

Synopsis

Get information about movies times in your favorite theaters.

Installation

kalliope install --git-url https://github.com/vbouchet31/kalliope-allocine.git

Options

parameter required choices comment
option yes getShowTimesList See more details in dedicated paragraph
theater no Only needed if you select an option which requires a theater parameter.

Possible "option" values

"getShowTimesList": Get today's show time for the given theater.

Get the theater code

The theater code is the Allocine's internal unique ID associate to the theater which you can get from the URL of the theater's page on Allocine. For example, "P0057" is the theater code for "Gaumont Toulouse Wilson" theater as per its page on Allocine (http://www.allocine.fr/seance/salle_gen_csalle=P0057.html).

Return Values

Name Description Type sample
events A list of events. list Each event has the following information: event['name'] is the movie name, event['times'] is the list of times, event['all_times_as_string'] are the same times as a string.

Synapses example

---
  - name: "get-gaumont-show-time-list"
    signals:
      - order: "Which movie at Gaumont"
      - order: "Which movie"
    neurons:
      - allocine:
          theater: "P0057"
          option: "getShowTimesList"
          file_template: "templates/allocine.j2"

Templates example

Next showtimes today are:
{% for key, event in events.items() %}
  {{ event['name'] }} at {{ event['all_times_as_string'] }}
{% endfor %}

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.