Coder Social home page Coder Social logo

Comments (5)

PoOwAa avatar PoOwAa commented on May 28, 2024

Please can you link here the onScreenMenu module? I'll check how they're handling the positioning, and I can change it that way.

from mmm-network-signal.

mcnahum avatar mcnahum commented on May 28, 2024

https://github.com/shbatm/MMM-OnScreenMenu

and my config is:

{
module: 'MMM-OnScreenMenu',
position: 'bottom_left',
/* Valid positions: 'top_right', 'top_left', 'bottom_right', 'bottom_left' */
config: {
touchMode: true,
enableKeyboard: true,
menuItems: {
//moduleToggle1: { title: "Toggle forcast", icon: "car", name: "weatherforcast" },
refresh: { title: "Refresh", icon: "recycle", source: "LOCAL" },
toggleFullscreen: { title: "Toggle Screen", icon: "desktop" },
notify1: {
title: "Display Forcast",
icon: "eye",
notification: "CURRENT_PROFILE",
payload: "Weather_Forcast"
},
},
// ... see more options below
},

    },

from mmm-network-signal.

arcangeloerrico avatar arcangeloerrico commented on May 28, 2024

Any Update? I will do this to that the wifi signal top right is. I will check the other module and do some test maybe i can find something.

from mmm-network-signal.

arcangeloerrico avatar arcangeloerrico commented on May 28, 2024

@PoOwAa @mcnahum I just try it per custom.css:

.MMM-network-signal {
Position: absolute;
Left: 200px;
Top: 200px;
Z-index: 1;
}

worked but 5 sec after load he goes to his initial position (in my config.js is this top_bar). Any idea how so?

from mmm-network-signal.

arcangeloerrico avatar arcangeloerrico commented on May 28, 2024

@PoOwAa @mcnahum I just modify the position of the module to be in a absolute position on the bottom right. What i do for this (Im not a Pro i just do this like a DIY project for me,it worked for me and i don't have any problem)

1.- I need to give permissions to .git/objects first, without didn't work for me. So first of all:

cd MagicMirror/modules/MMM-network-signal/.git
sudo chmod -R 777 objects

2.- Then just added in MMM-network-signal.js under getDom: function () {} the css you want, like this exemple:

getDom: function() { // original line
const content = document.createElement("div"); // original line
content.style = "display: flex;flex-direction: row;justify-content: space-between; align-items: center"; // original line
const wifiSign = document.createElement("img"); // original line
wifiSign.style = "transform:scale(0.25)";
wifiSign.style.position = "absolute"; // add this line
wifiSign.style.right = "-20px"; // add this line
wifiSign.style.top = "910px"; // add this line
wifiSign.style.zIndex = "2"; // add this line
if (this.config.showMessage) // original line

from mmm-network-signal.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.