i can connect to both my mirrors on the 2.4.1 version
Read the statement by Michael Teeuw here.
Posts made by sdetweil
-
RE: Conncting to MM from outside
-
RE: Help with inserting a script into a <div> element
@adambd if you look at the MMM_ImagedPhotos and MMM_ImageSlideshow modules, you will see they map a url for the express server running in MM
extraRoutes: function() { var self = this; this.expressApp.get("/MMM-ImagesPhotos/photos", function(req, res) { self.getPhotosImages(req, res); }); this.expressApp.use("/MMM-ImagesPhotos/photo", express.static(self.path_images)); }, // return photos-images by response in JSON format. getPhotosImages: function(req, res) { directoryImages = this.path_images; var imagesPhotos = this.getImages(this.getFiles(directoryImages)).map(function (img) { return {url: "/MMM-ImagesPhotos/photo/" + img}; }) res.send(imagesPhotos); },
-
RE: Help with inserting a script into a <div> element
@adambd EXTERNAL url = “https://some_server_com/etc/whatever.js”
-
RE: how to set module div for fullscreen
here is another way.
window.getComputedStyle(document.body).getPropertyValue('margin-top');
now… i forgot that I had a custom.css to eliminate the margins.
but the fullscreen style still has the -60 adjustments for the default border
-
RE: how to set module div for fullscreen
@strawberry-3-141 thanks… sadly this re-introduces the margins in both dimensions
-
RE: how to set module div for fullscreen
so close…
client Height/Width is the screen, but the body has height/width reduced by margins…
how can I get the size of the margin in javascript to do the corrections programatically?
-
RE: A fan script for a beginner
@cyrus1337 the specs do not say how the yellow wire is used to control the fan.
-
RE: A fan script for a beginner
@peter so, you made a transistor based relay… cool…
but that doesn’t help his speed control question…
-
how to set module div for fullscreen
I am trying to fix MMM-ImagePhotos and MMM-Slideshow to not truncate portrait images or zoom in some landscape images…
i have them almost completely fixed, except a small section of the screen at the bottom starting in the middle of the rss feed output and below…
https://www.dropbox.com/s/jnudtn8wpef4ba5/IMG_20180925_125325.jpg?dl=0https://www.dropbox.com/s/gt1nxxwxkymgyic/IMG_20180925_125340.jpg?dl=0
the updated code does// create the div for this module var wrapper = document.createElement("div"); // set its size to the full display area wrapper.style.width = document.body.clientWidth; wrapper.style.height = document.body.clientHeight; // set the div position wrapper.style.left = 0; wrapper.style.top = document.body.clientHeight; // make position relative wrapper.style.position = "relative"; // set a background color to improve the looks wrapper.style.backgroundColor = self.config.backgroundColor; // turn off any border wrapper.style.border = "none"; // use users opacity setting wrapper.style.opacity = self.config.opacity;
if I use position=“absolute” for the div it looks like this
https://www.dropbox.com/s/k0i4hror1rx9tp5/IMG_20180925_125427.jpg?dl=0
how can I get rid of the bottom bar?
it looks worse on a different tv (both devices are TVs, not monitors)
https://www.dropbox.com/s/shly9zuo8hhb3bn/IMG_20180925_125243.jpg?dl=0why don’t my pics show when I use the Picture info wrapper?
-
RE: A fan script for a beginner
the raspberry pi does not provide +12v on any pin… only +5 or +3.3v
see https://www.raspberrypi.org/documentation/usage/gpio/
so you will need another power source that you can turn on/off programatically… or have to install a relay you can control via gpio pins… see google search results for ‘raspberry pi relay control’
now… what signal is required on the speed wire?
typically a gpio pin is either on, or off, or transitioning between one and the other.
so, you would need some other hardware to control the levels of this input to the fansee google search results for ‘programmable potentiometer raspberry pi’
once u can control it manually, you can write code to do the same…