Forum Replies Created
-
AuthorPosts
-
VaughanoParticipant@salbahra wrote:
I’m typing this out using Siri so sorry for the mistakes but if you don’t mind let me know what time zone is configured in the mobile web config.php. Thanks!
Thanks Samer, here it is:
$webtitle = 'Sprinkler System';
$os_ip = '192.168.1.111:8080';
$os_pw = '';
date_default_timezone_set('Australia/Adelaide');
$timeViewWindow = '7 days';
$pass_file = '/var/www/OpenSprinkler-Controller/.htpasswd';
$cache_file = '/var/www/OpenSprinkler-Controller/.cache';
$log_file = '/var/www/OpenSprinkler-Controller/SprinklerChanges.txt';
$log_previous = '/var/www/OpenSprinkler-Controller/SprinklerPrevious.txt';
$force_ssl=0;
?>
VaughanoParticipant@salbahra wrote:
@Oasiz37 and @Vaughano thank you for the detailed information! Your feedback was invaluable and I was able to hunt down and fix the specific bug. Turned out I wasn’t doing the decimal to binary conversion correctly. That has been fixed now. Please try the new push on Github and let me know if this fixes your problem.
Also, @Vaughano, has the timezone issues been resolved at this point?
Thanks!
Thanks Samer.
I have pulled the latest code but my timezone issue is still there. Basically it looks like the log file has correct local time from the machine, but when displayed in the app’s log page the timezone configured is being applied. Put more simply it seems the mobile webapp is assuming UTC time for its own logs, and adjusting according to timezone configured in the app (correct log behaviour is observed when the timezone offset is set to 0).
Perhaps this a feature, not a bug? A possible work around is to configure UTC timezone in the mobile webapp, and always set programmes to UTC time, but I’m not yet sure of the impact of this workaround on actual programmes sent to the interval webapp.
I will do more testing and report back.
Cheers
VaughanoEdit: I should add that my local timezone is one of those weird ones with a half-hour offset (Australia/Adelaide +9.5). May be significant?
VaughanoParticipantJust like to say that this is moving very quickly and I very much appreciate you effort, Salbhara!
I’m also having issues with the saving of programmes, or more specifically the loading of programmes to the UI form. For me, the stations always get reset to have only the first one checked. I can see that changes are correctly being applied in the interval webapp, so I suspect this is isolated to the form loading code.
Cheers
VaughanoEdit: Opened an issue for this in Git repo, see https://github.com/salbahra/OpenSprinkler-Controller/issues/1. Maybe if a few of us are testing this it would be better to track issues there?
VaughanoParticipantI have updated all code and am very happy to say I have this all working on my OSPi, with python interval app on port 8080 and this mobile PHP app in an apache server on port 80.
I am still testing, but the only issue I have found is that my times appear to be out by an hour. My Pi has time correctly set and I have “Australia/Adelaide” in my config.php and +9:30 set in ‘settings’, which seems to have propagated through to the interval python app.
Is there perhaps some daylight saving issue that shouldn’t be applying in my timezone? The hour discrepancy makes me suspect a daylight saving adjustment. I should also add that times in the logs are correct, it is just the display in both webapps that is wrong.
Any ideas?
VaughanoParticipantI forgot to mention my setup is OSPi. I have retrieved the latest code from git and the $force_ssl flag was useful; thanks.
I got to the same point as above, where app is almost working but not retrieving station names correctly. I’ve run out of time for now (Sunday night in Australia), but will come back ASAP to check the latest development and help in testing. Really like this interface!
Cheers
Vaughano
VaughanoParticipantGreat effort Salbhara!
I downloaded and tried this out before your most recent changes, and struck the issue with SSL not being configured in my apache2 server. I shall get the latest and have another go.
Thanks again.
Vaughano -
AuthorPosts