Giter Club home page Giter Club logo

appdaemon-config's People

Contributors

wazwaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sojourneer

appdaemon-config's Issues

Can't Authorize 'basecalendar' with Google

Hi there,

Love the basecalendar. It's just what i was looking for.

However, I can't seem to get it to authenticate. I'm sure I'm doing something wrong.

I put basecalendar/ and gcal.yaml into my /config/appdaemon/custom_widgets (basecalendar directory and gcal.yaml are the only things in there).

custom_widgets $ ls -al
total 16
drwxr-xr-x    3 root     root          4096 Dec 16 19:11 .
drwxr-xr-x    8 root     root          4096 Dec 16 18:53 ..
drwxr-xr-x    2 root     root          4096 Dec 16 19:11 basecalendar
-rw-r--r--    1 root     root           581 Dec 16 19:13 gcal.yaml
custom_widgets $ pwd
/config/appdaemon/custom_widgets
custom_widgets $

I copied the example.dash into "/config/appdaemon/dashboards", but when I load it, I get the following:

{ 

  "error": {
    "code": 400,
    "message": "API key not valid. Please pass a valid API key.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "API_KEY_INVALID",
        "domain": "googleapis.com",
        "metadata": {
          "service": "calendar-json.googleapis.com"
        }
      }
    ]
  }
}

And here's how it renders in HAD.

basecal

I created a new user for this, bound to a "Web Application", and the javascript Origins are set appropriately for the servers hosting this app.

I THINK, based on my amateur debugging skills, that something isn't raising the Google authentication pop-up that i'd expect and as I've had for other apps. The Authentication button doesn't seem to do anything either, but if i run:

gapi.auth2.getAuthInstance().signIn();

in the console, the window pops up... logging in doesn't seem to change anything though.

I've cleared cache, CTRL-F5 refreshed, restarted AppDaemon, HA and even rebooted the VM HA and AD run on. Still, nothing has changed.

Is there anything I can do to get this working?

Cheers,

Joel

All Day Events

All day event are being placed in the day before the actual event.
image

When Adding this console log as line 277
console.log(String(event.summary)+" - "+String(when)+" | "+String(whendate)+" | "+String(whendate0));

I get:
Christmas Eve - 2018-12-24 | Sun Dec 23 2018 19:00:00 GMT-0500 (Eastern Standard Time) | Sun Dec 23 2018 00:00:00 GMT-0500 (Eastern Standard Time)

Seems like it's converting my EST event to GMT.

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.