Coder Social home page Coder Social logo

inkycal_locationsharing's Introduction

Location Sharing Module (used with Google Location Sharing)

This is third-party module for the inkycal project for release 2.0.0.

This module displays the locations of everyone you are connected with via Google Location Sharing.

You must follow the instructions these instructions to set it up:

  1. Install a chrome extension to download your cookies, like this one (called Open Cookies.txt, the successor to Get Cookies.txt): https://chrome.google.com/webstore/detail/open-cookiestxt/gdocmgbfkjnnpapoeobnolbbkoibbcif/related.
  2. Navigate to Google Maps, and log in (if you aren't already logged in).
  3. Use the extension to download your cookies.
  4. Move the cookies file to your Pi.
  5. Enter the full file path to your cookies file in the box in the settings file web-ui. For example: /home/pi/Inkycal/example.cookies
  6. Enter the email address you logged into Google Maps with into the box in the settings file web-ui. For example: [email protected]

Installation instructions

How to install the module.

  1. Navigate to the modules directory cd Inkycal/inkycal/modules

  2. Download the third-party module:

# The URL is the rawfile url. e.g. open mymodule.py, then click on [raw] to see the rawfile-url
wget https://raw.githubusercontent.com/emilyboda/inkycal_locationsharing/master/inkycal_locationsharing.py
  1. Install locationsharinglib
  pip3 install locationsharinglib
  1. Register this module in Inkycal

Navigate to this file and edit it:

  nano /Inkycal/inkycal/__init__.py

Under #Default modules, add:

  import inkycal.modules.inkycal_locationsharing

Navigate to this file and edit it:

  nano /Inkycal/inkycal/modules/__init__.py

Add:

  from .inkycal_locationsharing import Locationsharing

Configuring this module

Once the module is registered, navigate to Inkycal/server and run the flask-server with: flask run --host=0.0.0.0

The web-UI should now be available at http://raspberrypi.local:5000/. If this does not work, you can manually use the IP address instead: http://192.168.1.142:5000/

Copy the generated settings.json file to your raspberry Pi (VNC/ WinSCP). If you don't have access to the Raspberry Pi via VNC/ WinSCP, you can copy the settings.json file to the microSD card instead. After inkycal starts, it will use the new settings.json file.

How to remove this module

# In python, run the following commands:
from inkycal import Inkycal
Inkycal.remove_module('filename.py') # where filename.py is the name of your third-party module in Inkycal/inkycal/modules
# If everything went well, you'll see a printed message without red lines.

inkycal_locationsharing's People

Contributors

emilyboda avatar

Stargazers

Josh D avatar

Watchers

 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.