Page 1 of 1

Parser / System event

Posted: Fri Mar 17, 2023 9:45 am
by Urme
I've been installing two sensors and everything is working fine except adding a "System Event" in Configuration in HomeAutomation.
I suppose this config should appear in the crontab?
I'm using a Raspberry Pi with Rasbian and PHP5.

I installed Parser 0.7.6 but no luck anyway.
If I do:
/usr/bin/php /var/www/ha/parser/parser.php
It logs the temperature from all sensors though

I've added this manually with "sudo crontab -e -u www-data" and that works but not if I add it in the configuration->System events in HomeAutomation...

Re: Parser / System event

Posted: Fri Mar 17, 2023 9:45 am
by tom_rosenback
Urme wrote:I've been installing two sensors and everything is working fine except adding a "System Event" in Configuration in HomeAutomation.
I suppose this config should appear in the crontab?
I'm using a Raspberry Pi with Rasbian and PHP5.

I installed Parser 0.7.6 but no luck anyway.
If I do:
/usr/bin/php /var/www/ha/parser/parser.php
It logs the temperature from all sensors though

I've added this manually with "sudo crontab -e -u www-data" and that works but not if I add it in the configuration->System events in HomeAutomation...
Does normal schedules work?

Re: Parser / System event

Posted: Fri Mar 17, 2023 9:45 am
by Urme
Haven't had time to try it yet, are those also suppose to be save in crontab?

EDIT: No it doesn't seem to work either...

Re: Parser / System event

Posted: Fri Mar 17, 2023 9:45 am
by Urme
Any idea why schedules doesn't work either? Tried to google a solution but no luck yet..

Re: Parser / System event

Posted: Fri Mar 17, 2023 9:45 am
by tom_rosenback
Urme wrote:Any idea why schedules doesn't work either? Tried to google a solution but no luck yet..
With not working you mean that you don't get any jobs in crontab when creating schedules in HA? The only one that should be there is the updatesschedules job, rest is in AT. Systemschedules on the other hand is ONLY in crontab. If the above is the case for you then I would suspect some permission related issue. Either in cron or php.

Re: Parser / System event

Posted: Fri Mar 17, 2023 9:45 am
by Urme
I have the updatesschedules job in crontab so that works.

I'm kind of new to both Linux/RPI and Tellstick, what do you mean with AT? How can I check that?

Re: Parser / System event

Posted: Fri Mar 17, 2023 9:45 am
by Urme
Alright I got it!

at isn't installed on a Raspberry Pi as default so I had to:
sudo apt-get update
sudo apt-get install at

After that I had to remove the user www-data in /etc/at.deny list.

Now it ran the schedule perfect :) I will try to add System event for my sensors as well now

Re: Parser / System event

Posted: Fri Mar 17, 2023 9:45 am
by Urme
System events still doesn't seem to work though :( But I got schedules to work..

Re: Parser / System event

Posted: Fri Mar 17, 2023 9:45 am
by tom_rosenback
Urme wrote:System events still doesn't seem to work though :( But I got schedules to work..
So you get a updateschedules job in cron but the systemschedules doesn't appear?

Re: Parser / System event

Posted: Fri Mar 17, 2023 9:45 am
by Urme
Yepp!

I've manually created a cronjob for now though