• 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. psk
  3. Posts
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Offline
  • Profile
  • Following 1
  • Followers 0
  • Topics 1
  • Posts 13
  • Groups 0

Posts

Recent Best Controversial
  • RE: MMM-Temperature/Humidity Module (DHT11, DHT22 and AM2302 sensors.)

    This was my reference. Both the models are similar, though the one without the PCB(4 pin model) might require some resistance. Not sure though…Need to dig Deeper :D
    Cheers :)

    posted in Utilities
    P
    psk
    Nov 8, 2016, 6:59 PM
  • RE: MMM-Temperature/Humidity Module (DHT11, DHT22 and AM2302 sensors.)

    @d3r Dht 22 and 11 series doesnt require one :)

    PS: Just saw the post.Was out of town for two weeks…

    posted in Utilities
    P
    psk
    Nov 8, 2016, 1:56 PM
  • RE: MMM-Temperature/Humidity Module (DHT11, DHT22 and AM2302 sensors.)

    @jsyzthz Unfortunately neither did I have any luck executing with sudo while using ‘DISPLAY=:0’ .

    For auto start I used PM2.

    This is my mm.sh file

    cd ~/MagicMirror
    DISPLAY=:0 sudo npm start
    

    P.S : I haven’t yet tried this alternative by Bangee. But it sure looks promising in this scenario where we need the mirror to start from ssh(or Terminal) while specifying the display device.

    If i come across any workarounds, I’ll update.
    Cheers.

    posted in Utilities
    P
    psk
    Oct 19, 2016, 1:12 PM
  • RE: MMM-Temperature/Humidity Module (DHT11, DHT22 and AM2302 sensors.)

    @H3L1o150 currently, to define the pin to which sensor is connected, you need to edit the node_helper.js file ind MMM-Temperature-Humidity directory and edit line number 12.
    var dht = new rpiDhtSensor.DHT11(2); to var dht = new rpiDhtSensor.DHT11(21);

    you can leave the config as

                {
    			module: 'MMM-Temperature-Humidity',
    			position: 'bottom_right',
    			config: {
    				refreshInterval: 10000,
    				temperaturePrefix: "Room temperature: ",
    				temperatureSuffix: "°C",
    				humidityPrefix: "Humidity: ",
    				humiditySuffix: "%"
    			}
    		},
    

    guess this needs to be improved in future release… :D


    Note from admin: Please use Markdown on code snippets for easier reading!

    posted in Utilities
    P
    psk
    Oct 2, 2016, 8:58 PM
  • RE: MMM-Temperature/Humidity Module (DHT11, DHT22 and AM2302 sensors.)

    @jsyzthz Glad I could help :D :D

    posted in Utilities
    P
    psk
    Sep 30, 2016, 5:39 PM
  • RE: MagicMirror is voted number 1 in the MagPi Top 50!

    Awsome!!
    @MichMich Great initiative!!

    Good news for the community!
    Cheers People. \m/

    posted in Announcements
    P
    psk
    Sep 29, 2016, 2:39 PM
  • RE: MMM-Temperature/Humidity Module (DHT11, DHT22 and AM2302 sensors.)

    @jsyzthz
    I’m not sure whether to rebuild in MMM-Temperature-humidity directory or the Magic Mirror directory.
    Try executing in the MagicMirror directory first.

    npm rebuild --runtime=electron --target=1.4.0 --disturl=https://atom.io/download/atom-shell --build-from-source

    Also you can find the electron version by : npm list

    Just in case, i had this in my commands history :D
    npm rebuild --runtime=electron --target=1.3.4 --disturl=https://atom.io/download/atom-shell --abi=49 -d

    posted in Utilities
    P
    psk
    Sep 29, 2016, 2:35 PM
  • RE: MMM-Temperature/Humidity Module (DHT11, DHT22 and AM2302 sensors.)

    @jsyzthz I ran into the same while setting up!

    try this. Go to MMM-Temperature-Humidity,

    npm rebuild --runtime=electron --target=1.4.0 --disturl=https://atom.io/download/atom-shell --build-from-source

    My Electron version is 1.4.0. If yours is different, replace accordingly. :D

    This is a known issue which is caused by the serialport module using native code that is built for a different version of Node. You can read a bit more about addons here, if you’re interested; they’re just modules written in C/C++ that can interface with Node so the module can interface with the hardware more easily.

    Credits : stackoverflow.com


    Note from admin: Please use Markdown on code snippets for easier reading!

    posted in Utilities
    P
    psk
    Sep 29, 2016, 2:15 PM
  • RE: MMM-Temperature/Humidity Module (DHT11, DHT22 and AM2302 sensors.)

    @Bangee According to bcm2835 v1.50-

    "Running as root
    Prior to the release of Raspbian Jessie in Feb 2016, access to any peripheral device via /dev/mem on the RPi required the process to run as root. Raspbian Jessie permits non-root users to access the GPIO peripheral (only) via /dev/gpiomem, and this library supports that limited mode of operation.

    If the library runs with effective UID of 0 (ie root), then bcm2835_init() will attempt to open /dev/mem, and, if successful, it will permit use of all peripherals and library functions.

    If the library runs with any other effective UID (ie not root), then bcm2835_init() will attempt to open /dev/gpiomem, and, if successful, will only permit GPIO operations. In particular, bcm2835_spi_begin() and bcm2835_i2c_begin() will return false and all other non-gpio operations may fail silently or crash."

    So i guess we have run with sudo until some other library comes up :D

    PS: I should!! Its too hot in here… :D :D

    @cowboysdude Thanks! Cheers :D

    posted in Utilities
    P
    psk
    Sep 29, 2016, 11:55 AM
  • RE: MMM-Temperature/Humidity Module (DHT11, DHT22 and AM2302 sensors.)

    @cowboysdude DHT11 - This is the sensor that I am using.

    It has three pins -
    +ve - Connected to 5v
    -ve - Ground
    Data - Connected to pin 2

    0_1475147721302_Screenshot_20160929-130338.png

    @Bangee Now, I am running as sudo npm start. Without sudo, it will throw an exception that says it cannot open dev/mem

    0_1475147793966_permission.png

    This is the module screenshot.0_1475147819902_temp.png

    posted in Utilities
    P
    psk
    Sep 29, 2016, 11:18 AM
  • 1
  • 2
  • 1 / 2
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