@Fix-Not-Found I did not. But after formating and reinstalling it worked just fine. No idea what the problem was!
Read the statement by Michael Teeuw here.
Posts
-
RE: Nothing showing but app is running
-
RE: [SEMI-SOLVED] PIR-sensor wake screen
Hmm check if you have installed xscreensaver, otherwise reinstall it.
And also check if you placed the script in the right autostart folder! I sometimes pick the old one.
Write
xscreensaver-command -activate
in command line. If it doesn’t active the problem is with xscreensaver! -
RE: Layout problem
@strawberry-3.141 said in Layout problem:
@fiskaren custom.css
body { margin: 0px; height: 100%; width: 100%; }
@broberg said in Layout problem:
Do what strawberry wrote, it will give you more space on the screen.
also
This should change the size of the fonts in the top two modules only
.currentweather { font-size: 50%; } .clock { font-size: 50%; }
Awesome. Thank you both. It looks perfect now! :D
-
RE: [SEMI-SOLVED] PIR-sensor wake screen
Wow, I actually managed to do this myself. Probably in the worst way ever, and everyone who knows coding will cringe. But at least I’m happy.
I took the code from a PIR-guide (this one: https://diyhacking.com/raspberry-pi-gpio-control/). Basically just to show how it works. And then I googled as hell for other commands. And finally mashed them togheter to this AWESOME python script.
//import RPi.GPIO as GPIO import time GPIO.setwarnings(False) GPIO.setmode(GPIO.BOARD) GPIO.setup(11, GPIO.IN) #Read output from PIR motion sensor GPIO.setup(3, GPIO.OUT) #LED output pin while True: i=GPIO.input(11) if i==0: #When output from motion sensor is LOW print "No intruders",i GPIO.output(3, 0) #Turn OFF LED time.sleep(0.1) elif i==1: #When output from motion sensor is HIGH import os os.system("xscreensaver-command -deactivate"),i GPIO.output(3, 1) #Turn ON LED time.sleep(0.1)
And I put this in autostart. So I guess it checks the GPIO every 0.1 second. And I made the true to deactivate xscreensaver. I didn’t even remove the other code so I guess my command line are getting spammed by “No intruders” all the time hahaha.
This is really the first time coding something. Otherwise I have just followed step-by-step guides when RPIng. So this is a big step for me.
Anyway, if someone has a better way for this then I am happy to hear!
-
RE: Layout problem
@broberg Well I am not really happy with the results right now. I have changed the size pretty much, but they still merge into eachother. And I realize I have to change the size even more if I dont want them to do that. And since that changes the font on every module it will look crazy and also unreadable.
Here is a picture of how it looks right now:
http://imgur.com/a/t8JDjIs it possible to force the modules some pixels out? Because if so I could put them closer to the edges and that would probably solve the problem.
The last solution could be to remove wind-speed. But it’s windy where I live and I would very much like to know the wind speed!
-
[SEMI-SOLVED] PIR-sensor wake screen
Soo… this will be my third troubleshooting thread. Thankful for all the help I’ve got.
Anyway, the problem now is with PIR-sensor. I simply want the screen to be blacked out when I’m not there and wake when motion is detected. There is a module for this, but from what I understand that module is only made for HDMI monitors. I use the 7" official touchscreen which connects through the DSI-cionnector on the Pi. So I am wondering how to solve this matter? It does not have to be a module or something, I am happy for every solution.
I have tried google it and there are some solutions. But there are either the problem they assume you know what you do, I don’t. Kinda need a step-by-step guide. Or the solution are made for HDMI.
And I don’t have to shut down the screen, I understand that is not possible with DSI-screens. I just want it to become black/dark!
Best regards
FiskarenEdit: I would be happy if it was possible to just make the PIR send a mouseklick or keystroke as that would solve my problem as well.
-
RE: Layout problem
@broberg Awesome, will try that soon after my trip to the store for a PIR-sensor.
The clock is at
top_bar
and right now the weather is attop_left
. When both are placed attop_bar
the clock are one row over the weather. Will that auto-adjust when changing the font? -
Layout problem
Hi,
Finally got MM to work. I use it on the official 7" Raspberry Pi Touchscreen. But I do have problems getting a nice layout. What I want is to have the time and current weather side-by-side. I have searched but did not find a new module containing both. Right now it looks like this:
Total mess lol. But if I manage to get them side-by-side it will look OK. How do I do this? I am kind of noobish so please overexplain!
Best regards
Fiskaren*edit photo did not show, here is a link: http://imgur.com/a/sicJ0
-
RE: Nothing showing but app is running
@mortenbirkelund Actually I have. Still doesn’t work. The only way I made it finally work was to add “@pm2 start mm.sh” in "/home/pi/.config/lxsession/LXDE/autostart "
I guess that is a OK solution?
-
RE: Nothing showing but app is running
And I have of couse done the autostart part of the installation. Here is the code for that, if that could be intresting:
pi@raspberrypi:~ $ pm2 startup [PM2] Init System found: systemd [PM2] You have to run this command as root. Execute the following command: sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi pi@raspberrypi:~ $ sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi --hp /home/pi [PM2] Init System found: systemd Platform systemd Template [Unit] Description=PM2 process manager Documentation=https://pm2.keymetrics.io/ After=network.target [Service] Type=forking User=pi LimitNOFILE=infinity LimitNPROC=infinity LimitCORE=infinity TimeoutStartSec=8 Environment=PATH=/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin Environment=PM2_HOME=/home/pi/.pm2 PIDFile=/home/pi/.pm2/pm2.pid ExecStart=/usr/lib/node_modules/pm2/bin/pm2 resurrect ExecReload=/usr/lib/node_modules/pm2/bin/pm2 reload all ExecStop=/usr/lib/node_modules/pm2/bin/pm2 kill [Install] WantedBy=multi-user.target Target path /etc/systemd/system/pm2-pi.service Command list [ 'chmod +x /etc/systemd/system/pm2-pi.service', 'systemctl enable pm2-pi', 'systemctl start pm2-pi', 'systemctl daemon-reload', 'systemctl status pm2-pi' ] [PM2] Writing init configuration in /etc/systemd/system/pm2-pi.service [PM2] Making script booting at startup... >>> Executing chmod +x /etc/systemd/system/pm2-pi.service [DONE] >>> Executing systemctl enable pm2-pi [DONE] >>> Executing systemctl start pm2-pi [DONE] >>> Executing systemctl daemon-reload [DONE] >>> Executing systemctl status pm2-pi ● pm2-pi.service - PM2 process manager Loaded: loaded (/etc/systemd/system/pm2-pi.service; enabled) Active: active (running) since Wed 2017-03-08 12:21:50 UTC; 176ms ago Docs: https://pm2.keymetrics.io/ Main PID: 1011 (PM2 v2.4.2: God) CGroup: /system.slice/pm2-pi.service ‣ 1011 PM2 v2.4.2: God Daemon (/home/pi/.pm2) Mar 08 12:21:50 raspberrypi pm2[1239]: [PM2] Resurrecting Mar 08 12:21:50 raspberrypi pm2[1239]: [PM2] Restoring processes located in /home/pi/.pm2/dump.pm2 Mar 08 12:21:50 raspberrypi pm2[1239]: ┌──────────┬────┬──────┬──────┬────────┬─────────┬────────┬─────┬──────────┬──────────┐ Mar 08 12:21:50 raspberrypi pm2[1239]: │ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ watching │ Mar 08 12:21:50 raspberrypi pm2[1239]: ├──────────┼────┼──────┼──────┼────────┼─────────┼────────┼─────┼──────────┼──────────┤ Mar 08 12:21:50 raspberrypi pm2[1239]: │ mm │ 0 │ fork │ 1021 │ online │ 0 │ 7m │ 0% │ 2.3 MB │ disabled │ Mar 08 12:21:50 raspberrypi pm2[1239]: └──────────┴────┴──────┴──────┴────────┴─────────┴────────┴─────┴──────────┴──────────┘ Mar 08 12:21:50 raspberrypi pm2[1239]: Use `pm2 show ` to get more details about an app Mar 08 12:21:50 raspberrypi systemd[1]: Started PM2 process manager. [DONE] +---------------------------------------+ [PM2] Freeze a process list on reboot via: $ pm2 save [PM2] Remove init script via: $ pm2 unstartup systemd