fuTelldus - PHP application for sensor-logging

Moderator: Telldus

hord
Posts: 6
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - PHP application for sensor-logging

Post by hord »

Regarding my problem in last post, with errors for cron files, this is now solved!

When looking into the two cron files, I could see what kayrune (thanks!) also discovered:

cron_temp_log.php:
require("lib/config.inc.php");

cron_schedule.php:
require("./lib/config.inc.php");

When updating like he did:
cron_schedule.php:
require("lib/config.inc.php");
...my file now return no warning or faults, and the schedule is working like a charm!

dico: thanks again, looking forward to you sing both of your hands to this project;)
Baltta
Posts: 10
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - PHP application for sensor-logging

Post by Baltta »

Hey!

Can someone give instruction how to install fuTelldus my own computer.
If I don't have any programs or experience. Or is it impossible.
I tried it. I install xampp sofware, but i don't know how to install oauht and instruction says put all files to your server. But where is my server?

If someone can help me!
Linus
Posts: 1
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - PHP application for sensor-logging

Post by Linus »

Hi,

First of all I would like to thank the author for this lovely application. I'm a very happy user!

I have a question:

When using RGraph, I can show both humidity and temperature, but when switching to Highcharts I can only see the temperature. Is there an easy way to show both humidity and temperature on Highcharts?
individual
Posts: 72
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - public page doesn't display icon images

Post by individual »

I have just installed v3 on a Synology NAS - all seems good and functioning. Except the public page does not display icon images due to wrong images path. An attempt to correct the path to images leads to not displaying them in the index page of non-public interface. Other than that, it looks fine! Congrats!
Attachments
noIconsOnFuTelldus.jpg
noIconsOnFuTelldus.jpg (57.05 KiB) Viewed 17844 times
TellStick Net v17 controller
COCO Technology & Proove switches/dimmers
Oregon THGN132N & Proove sensors
Software: Tasker, Remotestick, Telldus Live, DomoSpeak, TelLIVE Remote, Tellmon
individual
Posts: 72
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - PHP application for sensor-logging

Post by individual »

A few more things that I noticed so far:

1. Minimum temperature is always displayed as 0° although the average temperature seems to be calculated somehow and displayed at a value which I don't know if is real or not. Or the minimum temperature is displayed only after 24 hours? So far, only 18 hours passed since install :)
2. Email notification doesn't work when the repeat is set to 0 minutes.
3. If a new user is added as non-admin, the token keys for the admin user are deleted and the tokens for the new user are not saved. The accounts have to be edited and token reintroduced for both users - and this time everything is saved.
4. Dimmers are not implemented yet, right? I can switch them on/off only.
TellStick Net v17 controller
COCO Technology & Proove switches/dimmers
Oregon THGN132N & Proove sensors
Software: Tasker, Remotestick, Telldus Live, DomoSpeak, TelLIVE Remote, Tellmon
stre
Posts: 6
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - PHP application for sensor-logging

Post by stre »

"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 in inc/charts_highcharts.php - infact it looks like it should work AND show humidity... well, now off to other adventures for a while..."

I solved this by editing: /lib/packages/Highstock-1.3.1/js/highchart.js

Search for: useUTC:!0

and replace with: useUTC: false

Hope it will work for you...
pain123
Posts: 10
Joined: Fri Mar 17, 2023 9:45 am

Motion, twilight and magnetic switches

Post by pain123 »

Hi, I have installed your software for tellstick net and think it is very good! :clap:
Have a suggestion for development, when I create a schedule not only be able to choose from sensors, but also devices. This is because in my case to use my light sensor (on / off) to turn on and off my other devices. And being able to choose if I want to use both on and off from sensor, or just one. If so, it would finally be a way to use our motion, twilight and magnetic switches with TellStick Net.

Best regards Andreas
jobe64
Posts: 5
Joined: Fri Mar 17, 2023 9:45 am
Location: Björkling Sweden

Re: fuTelldus - PHP application for sensor-logging

Post by jobe64 »

+1 Norway

Beautiful stuff, nice work.
stre
Posts: 6
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - PHP application for sensor-logging

Post by stre »

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

if ($action == "deleteSchedule") {

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

to work properly...
dico
Posts: 40
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - PHP application for sensor-logging

Post by dico »

Baltta wrote:Hey!
Can someone give instruction how to install fuTelldus my own computer.
If I don't have any programs or experience. Or is it impossible.
I tried it. I install xampp sofware, but i don't know how to install oauht and instruction says put all files to your server. But where is my server?
I think the best way to get fuTelldus to work for you is to download and install VirtualBox, then download Ubuntu Server and follow the guide in the first post.

Other solutions is to buy a Synology box or a webhotell (ex. proISP.no).

Linus wrote:Hi,
When using RGraph, I can show both humidity and temperature, but when switching to Highcharts I can only see the temperature. Is there an easy way to show both humidity and temperature on Highcharts?
Not at the moment. I'm currently using highstock charts to get the timeline at the bottom and I got some problems with the timeline when I tried to add more lines to the chart. The temperature and humidity have the same timestamp, so I should work.

In the next version I would probably use Highchart (insted of Highstock) to view all sensors, and Highstock (with temp and hum) for each.

individual wrote:I have just installed v3 on a Synology NAS - all seems good and functioning. Except the public page does not display icon images due to wrong images path. An attempt to correct the path to images leads to not displaying them in the index page of non-public interface. Other than that, it looks fine! Congrats!
Hmm, strange.. The images displays fine on my Synology-box. Can you post or send me the image path (In Chrome: Right click, copy imagepath)?

individual wrote:A few more things that I noticed so far:

1. Minimum temperature is always displayed as 0° although the average temperature seems to be calculated somehow and displayed at a value which I don't know if is real or not. Or the minimum temperature is displayed only after 24 hours? So far, only 18 hours passed since install :)
2. Email notification doesn't work when the repeat is set to 0 minutes.
3. If a new user is added as non-admin, the token keys for the admin user are deleted and the tokens for the new user are not saved. The accounts have to be edited and token reintroduced for both users - and this time everything is saved.
4. Dimmers are not implemented yet, right? I can switch them on/off only.
1. This is a tricky one. It looks like Telldus Live returns 0 sometimes. Currently i'm using MySQL queries to return MIN, MAX and AVRAGE - and when Telldus Live returns a 0, the MIN temperature will be 0. I think the best solution would be to add a WHERE statement, where sensorvalues is not 0 - but than it wouldn't display correct MIN temperature if it's actual zero (but I think we could live with that?).

2. It wouldn't be logic for it to work when it's set to 0? If I fix this you would get mails everytime CRON runs...

3. Is this in version 3? I fixed some redirect-back-paths from v2 to v3 that would cause this.

4. I just added the device list and an on/off option. As I don't have a dimmer yet, I don't have anything to test with - but I probably have to buy one soon:-)


stre wrote: I solved this by editing: /lib/packages/Highstock-1.3.1/js/highchart.js
Search for: useUTC:!0
and replace with: useUTC: false
Hope it will work for you...
This worked great. Thanks :-)
Will be added in the next version.


pain123 wrote:Hi, I have installed your software for tellstick net and think it is very good! :clap:
Have a suggestion for development, when I create a schedule not only be able to choose from sensors, but also devices. This is because in my case to use my light sensor (on / off) to turn on and off my other devices. And being able to choose if I want to use both on and off from sensor, or just one. If so, it would finally be a way to use our motion, twilight and magnetic switches with TellStick Net.

Best regards Andreas
I started to look into device schedule, most because I have a friend that uses Telldus USB and it looks like Telldus doesn't provide schedule to those who have the USB-stick. In those cases people could use fuTelldus to schedule devices. So I would probably add this in the next version.

But so I understand you correctly: You want the function to read the on/off statement on your devices to trigger other devices? The data would most likely need to be pulled with a cronjob - this means that if the motion sensor is trigged, it could be up to a minute before the event reaches the device... ?

jobe64 wrote:+1 Norway
Beautiful stuff, nice work.
Thanks :-)

stre wrote:Found an error in the /inc/settings_exec.php:
if ($action == "deleteSchedule") {
should be: if ($action == "deleteNotification") {
to work properly...
This is mentioned in this post: http://telldus.com/forum/viewtopic.php? ... =15#p20194 :-)
individual
Posts: 72
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - PHP application for sensor-logging

Post by individual »

Regarding 0 for min temperature - Remotestick correctly shows min temperature somehow... Maybe there should be a workaround. Now I can confirm that even after days of using it, min temp is always displayed as 0. As a side note, I have 4 sensors and for all of them the min temp is 0. Maybe a WHERE TODAY statement would be a better solution, since the minimum values are stored in local database?

Regarding the notification at 0 min - maybe this should be interpreted "if is set to 0 then no notification at all", or a checkbox (no notification) should be added to clarify?

And yes, I installed v3. I could give you the admin password to experiment with my installation if you would accept forum member's messages.

Here is an ex. of image path in the public page: <img src="images/water.png" alt="icon"> it should be ../images/water.png
TellStick Net v17 controller
COCO Technology & Proove switches/dimmers
Oregon THGN132N & Proove sensors
Software: Tasker, Remotestick, Telldus Live, DomoSpeak, TelLIVE Remote, Tellmon
individual
Posts: 72
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - PHP application for sensor-logging

Post by individual »

I have changed the type of a device in live telldus from "white" to "self learning on/off" but I kept the same name. Now in fuTelldus I can see two devices with the same name, but of course, only one works. Is this a bug of some sort?
TellStick Net v17 controller
COCO Technology & Proove switches/dimmers
Oregon THGN132N & Proove sensors
Software: Tasker, Remotestick, Telldus Live, DomoSpeak, TelLIVE Remote, Tellmon
pain123
Posts: 10
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - PHP application for sensor-logging

Post by pain123 »

I started to look into device schedule, most because I have a friend that uses Telldus USB and it looks like Telldus doesn't provide schedule to those who have the USB-stick. In those cases people could use fuTelldus to schedule devices. So I would probably add this in the next version.

But so I understand you correctly: You want the function to read the on/off statement on your devices to trigger other devices? The data would most likely need to be pulled with a cronjob - this means that if the motion sensor is trigged, it could be up to a minute before the event reaches the device... ?
This is exactly the feature I want, if it can be done in the script on the website or through crontab does not matter. Would also like to have an option to log such as the doorbell in the database.

Best regards
Andreas
individual
Posts: 72
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - PHP application for sensor-logging

Post by individual »

Some more feedback:
- Deleted users are not actually removed from DB. I have checked this and the record was still there. I deleted it manually.
- Same happens with modified devices in Telldus Live. I suppose the sync list function doesn't function properly (read my previous post).
- I also deleted 0 records of sensors (only one record per sensor in the whole database) and now the minimum temp is displayed in charts.

Suggestion:
- How about doing a package for Synology NAS? This way more people could easily deploy the application on their NAS's.
- If you need a tester for your future updates, let me know.

Best regards!
TellStick Net v17 controller
COCO Technology & Proove switches/dimmers
Oregon THGN132N & Proove sensors
Software: Tasker, Remotestick, Telldus Live, DomoSpeak, TelLIVE Remote, Tellmon
crazy
Posts: 2
Joined: Fri Mar 17, 2023 9:45 am

Re: fuTelldus - PHP application for sensor-logging

Post by crazy »

@dico aka 'fuTelldus'-founder :)
I have integrated some minor changes based on your great fuTelldus which might be useful for the community. Because it seems to me that it is not possible to send you a private message, could you please provide me your eMail-address or tell me who of the 4-FU-guys you are? :) I'd like to contact you with further information.
Post Reply