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

Cupola

@Cupola

2
Reputation
547
Profile views
6
Posts
0
Followers
0
Following
Joined Oct 26, 2017, 1:50 PM
Last Online Mar 26, 2019, 10:54 PM

Cupola Unfollow Follow

Best posts made by Cupola

  • RE: MMM-Todoist - Your todoist tasks on your mirror

    Dumb question, how do you exactly generate the access token? I’m a little bit confused…
    From pm2 logs, I read:
    ** Message: console message: http://localhost:8080/modules/MMM-Todoist//MMM-Todoist.js @199: SyntaxError: Unexpected token ‘>’
    I used the access token generated from here, but I’m not sure about the process, which App service URL did you use? Which OAuth redirect URL? And last which token is the right one? I can see three of them
    Thanks in advance

    posted in Productivity
    C
    Cupola
    Oct 26, 2017, 1:53 PM
  • RE: MMM-Todoist - Your todoist tasks on your mirror

    Thank you, now it’s working

    posted in Productivity
    C
    Cupola
    Oct 27, 2017, 3:34 PM

Latest posts made by Cupola

  • RE: Python code to power on/off your MM-lcd and to mqtt motion

    I’m a total noob at coding so really every kind of suggestion is appreciated

    posted in Troubleshooting
    C
    Cupola
    Jan 27, 2019, 11:40 AM
  • Python code to power on/off your MM-lcd and to mqtt motion

    Hello to everyone, this is my first post in the forum, please take that into consideration :D …
    So I have MM working on a pi zero w, I’ve modded the lcd to be able to power on and off the backlight using one of the Gpio using a python code on startup.
    The problem is that I’m having some problems, recently I’ve implemented in the same python code the sending of an mqtt message status every time the PIR is trigged ON or goes OFF, the fact is that time by time, let’s say every 24h the pi get stuck…
    This is the code:

    #!/usr/bin/env python
    
    from time import time, sleep
    import datetime
    import os                 
    import RPi.GPIO as GPIO
    import urlparse
    import paho.mqtt.client as paho
    
    # Time to wait (in seconds)
    ttw=59
    cttw=ttw
    
    # Setup Gpio
    # GPIO.setwarnings(False)
    GPIO.setmode(GPIO.BCM)
    GPIO.setup(23, GPIO.IN)         #Output PIR
    GPIO.setup(25, GPIO.OUT)
    
    # Mqtt
    #mqttc = mosquitto.Mosquitto()
    mqttc = paho.Client()
    
    url_str = 'mqtt://192.xxx.yyy.zzz:1883'
    url = urlparse.urlparse(url_str)
    mqttc.username_pw_set("xxxx", "yyyyyy")
    
    def sendmqtt(mess):
        print "Send mqtt"
        now = datetime.datetime.now()
        mqttc.connect(url.hostname, url.port)
    #   mqttc.publish("pir/kitchen", str(now) + mess)
        mqttc.publish("pir/kitchen", mess)
    
    while True:
        i=GPIO.input(23)
        if i==0:                 #When output from motion sensor is LOW, no movement
            cttw-=1
            print cttw
            if cttw==0: # Counter has reached zero
                print "Counter is 0"
                sendmqtt("OFF")
                GPIO.output(25, False)
                cttw=ttw    # Reset counter
    
        elif i==1:               #When output from motion sensor is HIGH, movement detected
            print "Motion detected"
            cttw=ttw   
            sendmqtt("ON")
            GPIO.output(25, True)
            sleep(1)    
        sleep(1)
    
    posted in Troubleshooting
    C
    Cupola
    Jan 27, 2019, 11:36 AM
  • RE: The Italian "dual" Job [Build]

    @achillealb this is an international forum… Why do you use italian?!?
    He used two raspberry probably

    posted in Show your Mirror
    C
    Cupola
    Jan 27, 2019, 11:13 AM
  • RE: MM-Dublin-Bus

    I’m using the module and I have been able to get it working, try this in the config.js
    {
    module: “MMM-Dublin-Bus”,
    position: “bottom_left”,
    config: {
    stopNumber: 111,
    updateInterval: 10,
    mode: “dom”
    }
    }

    posted in Troubleshooting
    C
    Cupola
    Nov 27, 2017, 5:32 PM
  • RE: MMM-Todoist - Your todoist tasks on your mirror

    Thank you, now it’s working

    posted in Productivity
    C
    Cupola
    Oct 27, 2017, 3:34 PM
  • RE: MMM-Todoist - Your todoist tasks on your mirror

    Dumb question, how do you exactly generate the access token? I’m a little bit confused…
    From pm2 logs, I read:
    ** Message: console message: http://localhost:8080/modules/MMM-Todoist//MMM-Todoist.js @199: SyntaxError: Unexpected token ‘>’
    I used the access token generated from here, but I’m not sure about the process, which App service URL did you use? Which OAuth redirect URL? And last which token is the right one? I can see three of them
    Thanks in advance

    posted in Productivity
    C
    Cupola
    Oct 26, 2017, 1:53 PM
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy