MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. morozgrafix
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 136
    • Groups 2

    Posts

    Recent Best Controversial
    • OAuth flows, thoughts and considerations. Looking for feedback.

      Hello,

      Sorry this may get a bit lengthy.

      I recently joined MagicMirror community and started to play around and develop modules. I’m not a newbie to coding, but never really worked on a node based project. I’m learning as I go along and looking at many great modules that folks have created around here to understand how thing are done. Throughout my career I’ve worked with a bunch of API providers building apps, clients and bots.

      As I’m venturing into building another module I have been having some thoughts and considerations about how API access, tokens and user authentication is handled by different modules. Some of the API providers make it easy to obtain access to their keys, some make it difficult. Others don’t, sometimes they restrict who can sign up for API access, how they sign up,

      At the moment I’m looking into creating a module to display data from Runkeeper. They have fairly standard OAuth2 authentication and it’s pretty trivial to create an app and get access token from them. Once my module is published I would like to make sure that potential users have a pleasant experience, that they can easily set it up and get it running with minimal effort. I don’t want to burden them with going through process of creating their own application on API provider site, getting client_ids, secrets, scopes, doing OAuth dance and finally getting a token that they can put in the config. All of the above steps can lead to unnecessary confusion, frustration and additional support responsibilities for me as a developer of the module.

      Which leaves me with a few options on how to handle data source API access and user authentication. I’m sure this is not a full list of options, but some of the options that I’ve considered.

      1. My App + My Site = Your Token: As a developer of the app I create an app with API provider and provide a very user friendly webpage where OAuth2 Authentication takes place and access token is granted and displayed to be inserted in the module config.

      2. Your App + My Site = Your Token: I provide a list of instructions along with the module on how and where to register for the app, user registers and then uses my site to enter needed info (client_id, secret etc) to get access token that can be used with the module config. I don’t store any of the info and just provide friendly web interface to get that done.

      3. Your App + My Script = Your Token: I provide a list of instructions along with the module on how and where to register for the app, after cloning the module repo user can run a script that will spin up a temporary local webserver to accept OAuth callback and get access token that can be entered into config for the module.

      Theoretically I can combine 2 and 3, or even offer all 3 options. Number one is probably most user friendly way, but depending on popularity of the module rate limiting may come into effect. 2 & 3 will likely require more effort from users and possibly more support from me.

      Any thoughts or suggestions on this?

      Thank you.

      posted in Development
      morozgrafixM
      morozgrafix
    • RE: MMM-forecast-io -- Localized up to the minute weather

      @bminer1 I believe that default setting is not to show precipitation graph, unless there is a prediction for rain or snow in next hour. I think it takes data from minutely weather forecast supplied by DarkSky.

      posted in Utilities
      morozgrafixM
      morozgrafix
    • RE: You can officially call me stupid!

      @paviro was that by any chance related to this? https://forum.magicmirror.builders/topic/1341/problem-interacting-with-forum-on-ios-and-os-x-safari

      It started to work for me on mobile couple of hours ago. I haven’t seen it fail yet.

      posted in Forum
      morozgrafixM
      morozgrafix
    • RE: MMM-forecast-io -- Localized up to the minute weather

      @bminer1 it seems that you are trying to pull instead of clone (and git is not globally configured on your system and doesn’t recognize you)

      try running this command instead: git clone https://github.com/dmcinnes/MMM-forecast-io.git

      posted in Utilities
      morozgrafixM
      morozgrafix
    • RE: Magic Mirror Running a python script upon "DISPLAY=:0 npm start"

      Any idea where that LED.py script came from? Is it possible that this is a script that you’ve created at some point learning how to control an LED with GPIO outputs? Maybe posting exact steps and commands that you are running, along with output that you get would give us some more information to troubleshoot and help you.

      posted in Troubleshooting
      morozgrafixM
      morozgrafix
    • RE: JakDojade - public transport in Poland

      @Flagun it looks like the only way to get an API key is by emailing them, otherwise they only provide sample data. I think first thing to do would be for someone speaking Polish to find out what it takes to get an API key. Most of the modules that exist today require each individual to get their own API key, which may be a problem if Jakdojade dosn’t allow API keys to be generated through the site.

      Dostęp do API wymaga przesłania zgłoszenia na adres kontaktjakdojade.pl.
      ...
      ...
      ...
      Zapytania nieautoryzowane (bez sekcji związanej z autoryzacją) zwracają tylko przykładowe dane testowe. Zapytania takie powinny być wykorzystywane na potrzeby testowe.
      
      posted in Requests
      morozgrafixM
      morozgrafix
    • RE: Runkeeper Module

      @Atheose Sounds good. I will try to see if I can get it going. Will you have time to test module while it’s under development?

      posted in Requests
      morozgrafixM
      morozgrafix
    • RE: Runkeeper Module

      I poked around with Runkeeper Healthgraph and they provide tons of interesting information that can be piped to a MM. I barely use Runkeeper. @Atheose is there a specific list of things that you would like to display? It would be great to have some sort of spec before venturing into development.

      posted in Requests
      morozgrafixM
      morozgrafix
    • RE: Send Selfie to Flickr or Photobucket

      @alexyak this flickr-upload npm package https://www.npmjs.com/package/flickr-upload can be utilized for that functionality. (Heh, I just realized it was written by a friend of mine)

      posted in Requests
      morozgrafixM
      morozgrafix
    • RE: Runkeeper Module

      @Atheose Seems doable as Runkeeper has a decent set of APIs https://runkeeper.com/developer/healthgraph/home

      posted in Requests
      morozgrafixM
      morozgrafix
    • 1 / 1