Page 2 of 2

Re: Shutdown domoticz pi

Posted: Monday 31 October 2016 6:39
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?

Re: Shutdown domoticz pi

Posted: Monday 31 October 2016 7:15
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.

Re: Shutdown domoticz pi

Posted: Monday 31 October 2016 8:05
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.

Re: Shutdown domoticz pi

Posted: Thursday 03 November 2016 16:13
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

Re: Shutdown domoticz pi

Posted: Thursday 03 November 2016 18:16
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.

Re: Shutdown domoticz pi

Posted: Thursday 03 November 2016 20:58
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.