Parser / System event

http://karpero.mine.nu/ha

Moderators: Daniel, tom_rosenback, Telldus

Post Reply
Urme
Posts: 34
Joined: Fri Mar 17, 2023 9:45 am

Parser / System event

Post 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...
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Parser / System event

Post 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?
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
Urme
Posts: 34
Joined: Fri Mar 17, 2023 9:45 am

Re: Parser / System event

Post 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...
Urme
Posts: 34
Joined: Fri Mar 17, 2023 9:45 am

Re: Parser / System event

Post by Urme »

Any idea why schedules doesn't work either? Tried to google a solution but no luck yet..
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Parser / System event

Post 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.
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
Urme
Posts: 34
Joined: Fri Mar 17, 2023 9:45 am

Re: Parser / System event

Post 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?
Urme
Posts: 34
Joined: Fri Mar 17, 2023 9:45 am

Re: Parser / System event

Post 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
Urme
Posts: 34
Joined: Fri Mar 17, 2023 9:45 am

Re: Parser / System event

Post by Urme »

System events still doesn't seem to work though :( But I got schedules to work..
tom_rosenback
Posts: 779
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Parser / System event

Post 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?
//Tom

Senaste info och release om/av HomeAutomation hittas här http://karpero.mine.nu/ha
Latest info and release of HomeAutomation can be found here http://karpero.mine.nu/ha
Urme
Posts: 34
Joined: Fri Mar 17, 2023 9:45 am

Re: Parser / System event

Post by Urme »

Yepp!

I've manually created a cronjob for now though
Post Reply