Search found 6 matches

by stre
Fri Mar 17, 2023 9:45 am
Forum: General
Topic: fuTelldus - PHP application for sensor-logging
Replies: 184
Views: 709804

Cron

Hi, I have some trouble with the cron job. Apparently the job is ok to run via the test from the webpage, but when the job is started via cron the checks will not work. I have put log-code into the scripts so I know that the cron-job is running and going through the script, but its not activating or...
by stre
Fri Mar 17, 2023 9:45 am
Forum: General
Topic: fuTelldus - PHP application for sensor-logging
Replies: 184
Views: 709804

Re: fuTelldus - PHP application for sensor-logging

"There seems to be a bug with the time-zone when viewing the data in Highcharts, it is off by -2 hours, I live in Sweden, so I am GUESSING it defaults to GMT... I will see if I can hunt it down before the wife comes home, then I will let you know where it is... Hunted. I didnt find it (looked i...
by stre
Fri Mar 17, 2023 9:45 am
Forum: General
Topic: fuTelldus - PHP application for sensor-logging
Replies: 184
Views: 709804

The cron-problem...

I got this error message when I run the script through cron: OAuth Verification Failed: Can't verify request, missing oauth_consumer_key or oauth_token

When I run it "manually" through the browser it works ok... anyone got a clue?!
by stre
Fri Mar 17, 2023 9:45 am
Forum: General
Topic: fuTelldus - PHP application for sensor-logging
Replies: 184
Views: 709804

Re: The cron-problem...

I hard-coded the API keys in the cron-script, then got it to work so it has to be something wrong when the script is getting the API-keys from the database.
by stre
Fri Mar 17, 2023 9:45 am
Forum: General
Topic: fuTelldus - PHP application for sensor-logging
Replies: 184
Views: 709804

Re: fuTelldus - PHP application for sensor-logging

Sorry, dont know the user since the service provider (www.binero.se) sets up the cron-job as a request for the page. The page works if I call it via my browser, but not as the service provider cron-job. The only thing that fails is the OAuth Verification... I sent mails with logging so I got down to...
by stre
Fri Mar 17, 2023 9:45 am
Forum: General
Topic: fuTelldus - PHP application for sensor-logging
Replies: 184
Views: 709804

Re: fuTelldus - PHP application for sensor-logging

Found an error in the /inc/settings_exec.php:

if ($action == "deleteSchedule") {

should be: if ($action == "deleteNotification") {

to work properly...