vše vyřešeno. Děkuji.
Read the statement by Michael Teeuw here.
Best posts made by majsoft
-
RE: MM won't launch at startup, but will launch manually
Hi, this is how I’m running it for now, maybe it will help someone.
I will install PM2 according to the instructions
I will skip the command “pm2 startup”
After installation i proceed like this
i will create another boot file
cd ~ nano mm_start.sh
Add the following lines:
echo Start PM2...... pm2 start mm.sh read;
set permissions
chmod +x mm_start.sh
we will set up the script after booting Ubuntu
now i can start and stop services at will.
Latest posts made by majsoft
-
RE: MM won't launch at startup, but will launch manually
Hi, this is how I’m running it for now, maybe it will help someone.
I will install PM2 according to the instructions
I will skip the command “pm2 startup”
After installation i proceed like this
i will create another boot file
cd ~ nano mm_start.sh
Add the following lines:
echo Start PM2...... pm2 start mm.sh read;
set permissions
chmod +x mm_start.sh
we will set up the script after booting Ubuntu
now i can start and stop services at will.
-
RE: ubuntu - run the script before sleeping and after waking up the PC
Hi, thanks for guiding me in the right direction.
I had an error in the placement of the script.Now I have verified that it works.
I will then delete the sleep 60 command and the output to the file, I had time to find out if the necessary services are really turned off.so my solution was as follows:
file creation
sudo nano /usr/lib/systemd/system-sleep/wakeup.sh
the contents of the file
#!/bin/sh case $1/$2 in pre/*) echo "zastavuji domoticz......" service domoticz.sh stop >> /home/meteo/vystup_off.txt sleep 60 ;; post/*) echo "spouštím domoticz......" service domoticz.sh start >> /home/meteo/vystup_on.txt sleep 0 ;; esac
permission settings
sudo chmod a+x /usr/lib/systemd/system-sleep/wakeup.sh
once again thank you very much.
my next goal : Control MM Using systemd/systemctl
PM2 is not working correctly on Ubuntu 24 and I need to have MM as a service.
so far I’m using mm.sh after startup.cd ./MagicMirror DISPLAY=:0 npm start read;
-
RE: MMM-Domoticz-ext BME280 temperature, pressure and humidity are not displayed
yes i know that but i was hoping someone has dealt with a similar problem with this module and would know some advice.
-
MMM-Domoticz-ext BME280 temperature, pressure and humidity are not displayed
Hello everyone, can someone please help? I don’t see the data from the BME280, I only see the inscription. I have no idea where my mistake is.
{ module: "MMM-Domoticz-ext", position: "top_left", config: { apiBase: "192.168.2.90", apiPort: "8081", updateInterval: 15, displayType: "room", alwaysShowDashboard: false, alwaysShowActions: false, showButtons: false, horizontal: false, columnCount: 3, dashboardColumnCount: 13, maxTitleLength: 18, coloredIcons: true, rooms: [ { idx: "1", name:"@ MajSoft 2019 - 2024" }, //{ idx: "2", name:"" }, { idx: "3", name:"BME280" }, ], } },
the sensor is connected to the ESP8266 and the data is sent to the domoticz server where the data can be seen.
ESP
-
RE: ubuntu - run the script before sleeping and after waking up the PC
I can’t get the script to run itself, there are tutorials everywhere but none of them worked for me. I have to study further.
-
ubuntu - run the script before sleeping and after waking up the PC
Hello everyone, can I ask for help? I’m sorry, I’m using a translator, I can’t speak English.
I am using the new Ubuntu, where I have Domoticz server and MagicMirror running.
after 15 minutes the PC goes to sleep and then wakes up with PIR (ESP8266).After waking up, it takes a long time for the domoticz server to start working and sending Information to MagicMirror. I don’t want to solve it with service monitor.
I would like to set up a script:
before putting the PC to sleep run “sudo service domoticz.sh stop”
after waking up the PC run “sudo service domoticz.sh start”
it works reliably in the command line, it just needs a password that I enter and it’s ok.I saw somewhere that something like this can be used, but I don’t know exactly where to write, save and that it doesn’t ask for a password. Would someone be willing to write the exact procedure where to write what and save? I found a lot of versions and maybe I got it wrong or the instructions are for older Ubuntu
First of all thank you very much for the joy and newbie to ubuntu.
#!/bin/sh PATH=/sbin:/usr/sbin:/bin:/usr/bin case "$1" in pre) #code execution BEFORE sleeping/hibernating/suspending ;; post) #code execution AFTER resuming ;; esac exit 0
-
RE: MMM-OpenWeatherMapForecast - delete line
great tool, thank you very much
i used like this:
.MMM-OpenWeatherMapForecast .module-header { font-size: 35px; color: white; text-transform: none; border-bottom: 0px; padding-bottom: 5px; margin-bottom: 20px; }
can you advise how to move the text by a few pixels?
I can’t use text-align center, the module is wide and the text would interfere with the map.
I can’t figure it out. Thanks in advance -
MMM-OpenWeatherMapForecast - delete line
Good morning,
please advise how to delete this line marked with a red arrow?
I assume it will be a CSS edit, would someone be willing to write exactly what I should edit?
Thank you very much in advance.