@Hawking Thank you, that works. Monitor is still not turning off, but that’s one issue off the list :)
Read the statement by Michael Teeuw here.
Posts made by mongo116
-
RE: Motion Detector
-
RE: Motion Detector
Hi, I’m a total noob to all this, but have recently started a project to build a magic mirror. I’ve got MagicMirror setup, and have the modules I want working. Now I’d like to use the motiondetector module, but although it appears to run without any error, the monitor itself is not turning off.
I’ve tested the camera module and that is working, and I can see an image / record video etc. I’ve also tested running the tvservice commands directly and both of these work as expected:
/opt/vc/bin/tvservice -o
/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chvt 7Only change I have made is to the timeout (30000 so I’m not waiting for too long before the screen should turn off).
My config.js has the following entry for motiondetector:
/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. * * For more information how you can configurate this file * See https://github.com/MichMich/MagicMirror#configuration * */ var config = { port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1","192.168.7.4"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], language: "en", timeFormat: 24, units: "metric", modules: [ { module: "alert", }, { module: "updatenotification", position: "top_bar" }, { module: "clock", position: "top_left" }, { module: "calendar", header: "UK Holidays", position: "top_left", config: { calendars: [ { symbol: "calendar-check-o ", url: "webcal://www.gov.uk/bank-holidays/england-and-wales.ics" } ] } }, { module: "currentweather", position: "top_right", config: { location: "London", locationID: "xxxxxxx", //ID from http://www.openweathermap.org/help/city_list.txt appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "London", locationID: "xxxxxxx", //ID from http://www.openweathermap.org/help/city_list.txt appid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } }, { module: "newsfeed", position: "bottom_bar", config: { feeds: [ { title: "BBC News", url: "http://feeds.bbci.co.uk/news/rss.xml?edition=uk" }, { title: "BBC London", url: "http://feeds.bbci.co.uk/news/england/london/rss.xml" }, ], showSourceTitle: true, showPublishDate: true } }, { module: 'MMM-UKNationalRail', position: 'top_left', header: 'Departures', //Optional - delete this line to turn OFF the header completely config: { stationCode: 'xxx', // CRS code for station app_id: 'xxxxxxx', // TransportAPI App ID app_key: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // TransportAPI App Key maxResults: 5, //Optional - Maximum results to display. showOrigin: false //Optional - Show the origin of the train in the table } }, { module: 'MMM-Tube-Status', position: 'top_left', header: 'Tube Status', config: { show_all: true } }, { module: 'MMM-UKLiveBusStopInfo', position: 'top_left', header: 'Departures', //Optional - delete this line to turn OFF the header completely config: { atcocode: 'xxxxxxxxxx', // ATCO code for specific bus stop app_id: 'xxxxxxx', // TransportAPI App ID app_key: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', // TransportAPI App Key limit: 5, // Optional - Maximum results to display. nextBuses: 'yes', // Optional - Use expensive RealTime info from NextBuses showRealTime: true, // Optional - show realtime departure info showDelay: true // Optional - show delay in minutes based on Real Time info vs Time table } }, { module: 'MMM-SystemStats', position: 'bottom_right', // This can be any of the regions. classes: 'small dimmed', // Add your own styling. Optional. config: { updateInterval: 10000, animationSpeed: 0, align: 'left', // align labels //header: 'System Stats', // This is optional }, }, { module: "MMM-ip", position: "bottom_right" }, { module: 'MMM-Remote-Control' // uncomment the following line to show the URL of the remote control on the mirror // , position: 'bottom_left' // you can hide this module afterwards from the remote control itself }, { module: 'motiondetector' }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}
Weird thing is, if I try to have a config section in the config.js with the timeout, and restart MagicMirror, I get an error that the config.js is corrupt. But if I remove the config part, MagicMirror loads without error. MM log below:
0|mm | Connecting socket for: MMM-ip 0|mm | Starting module helper: MMM-ip 0|mm | Connecting socket for: MMM-Remote-Control 0|mm | Starting node helper for: MMM-Remote-Control 0|mm | Connecting socket for: motiondetector 0|mm | Sockets connected & modules started ... 0|mm | monitor on: true 0|mm | monitor :state 0x120006 [DVI DMT (82) RGB full 16:9], 1920x1080 @ 60.00Hz, progressive 0|mm | 0|mm | Launching application. 0|mm | Create new calendar fetcher for url: http://www.gov.uk/bank-holidays/england-and-wales.ics - Interval: 300000 0|mm | Create new news fetcher for url: http://feeds.bbci.co.uk/news/rss.xml?edition=uk - Interval: 300000 0|mm | Create new news fetcher for url: http://feeds.bbci.co.uk/news/england/london/rss.xml - Interval: 300000 0|mm | monitor :state 0x120006 [DVI DMT (82) RGB full 16:9], 1920x1080 @ 60.00Hz, progressive 0|mm |
Any ideas on what could be the problem?
Thanks…
-
RE: Hive current room temperature
This looks perfect for what I need - https://github.com/aklambeth/bg-hive-api, but I haven’t a clue how to integrate this into a module. Anyone help?
-
Hive current room temperature
I am looking to be able to show the current room temperature from my Hive thermostat.
Thanks…