Shutdown domoticz pi

Moderator: leecollings

User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Shutdown domoticz pi

Post by Egregius »

That's one you'll never forget ;)

So, if I understand correctly the &param replacement is just in the logfile as it opens the url?
DaWauZ
Posts: 69
Joined: Wednesday 05 November 2014 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Shutdown domoticz pi

Post by DaWauZ »

Well my log is getting cleared after a reboot so I cant see it though.
I can see its rebooted in the log but I'm not seeing the command giving as its been gone after reboot.

Is there somehow a cli command to view it maybe? I can do that tonight when I'm home.
Raspberry Pi 2 model B with domoticz
OMV NAS installed on thin client HP T610
Openelec Kodi Mediaplayer on thin client HP T520 (and with multiboot windows 10)
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Shutdown domoticz pi

Post by Egregius »

I didn't know the logfile got cleared on a Pi. I know that happens on Synology. Is your logfile located at a tempfs storage?
If you really want to keep the logfile you could alter the /etc/init.d/domoticz script so it creates a copy of the logfile somewhere.
Jan Jansen
Posts: 229
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Shutdown domoticz pi

Post by Jan Jansen »

Hi all,

I would like to link up with this thread.

I use a 2nd pi as a media player (Squeeze Lite). Domoticz is also installed on it (Testing). I use this 2nd RPI not very much.

My Domoticz also runs on a Raspberry Pi. In Domoticz (1st RPI) I created a virtual switch (off action: http://192.168.0.7:8080/json.htm?type=c ... m_shutdown) to shut down the RPI with the media player. This worked well for a long time. Today I found out that it was not working anymore. The 2nd Pi does not shut down anymore.

When I use http://192.168.0.7:8080/json.htm?type=c ... m_shutdown" via my browser I get
{
"status" : "OK",
"title" : "SystemShutdown"
}
The Pi actually shuts down. I do not know where it goes wrong.

Searching for a solution, I created a new virtual switch. NO SUCCES.

I'm hoping for some help in solving the problem.

Thanks in advance

Jan
jannl
Posts: 673
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: Shutdown domoticz pi

Post by jannl »

Ehm. First you say no shutdown then you say the pi actually shuta down....

When I had the problem the pi did not shut down on the shutdown command, I had a corrupted sd card.
Jan Jansen
Posts: 229
Joined: Wednesday 30 April 2014 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: The Netherlands
Contact:

Re: Shutdown domoticz pi

Post by Jan Jansen »

When using a virtual switch (Pi one) >> mediaplayer (Pi two) do not shut down.

When using "http://192.168.0.7:8080/json.htm?type=c ... m_shutdown" via browser >> mediaplayer shuts down as expected.

I don't think its the SD card.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest