Time date setting add to Web ui #1314
Replies: 8 comments 10 replies
-
@Dentonknifeworks Do you mean the ability to sync the Pi's time to the device you are using to view the WebUI? So, for example, if you are using a PC to access the WebUI and the PC's time is Eric |
Beta Was this translation helpful? Give feedback.
-
@Dentonknifeworks, I haven't had a chance to look at it. It's on my to-do list but won't make it in the next release, which is close to being ready for user testing. |
Beta Was this translation helpful? Give feedback.
-
@Dentonknifeworks, I would probably use code very similar to the "Start allsky" code that's in /var/www/html/includes/system.php. |
Beta Was this translation helpful? Give feedback.
-
Try setting the time in a hidden html field, and pass that to the php script into a variable called $newDate, then dosystem("sudo date -s '$newDate'"); Ideally clicking on the "Set time" button would update the javascript time, then call the php script with that updated time. |
Beta Was this translation helpful? Give feedback.
-
So I have this test code. |
Beta Was this translation helpful? Give feedback.
-
@Dentonknifeworks In the .html file you call "form.php" but the file you attached is called "sample.php". Also, in the .html file the variable that holds the string is called "dateIV" but in "sample.php" you check for "Chg". I suggest just passing the new time, and in the .php file, doing Also, I suggest checking for errors, for example:
|
Beta Was this translation helpful? Give feedback.
-
@Dentonknifeworks For the What does |
Beta Was this translation helpful? Give feedback.
-
@Dentonknifeworks I'm curious regarding the pro's and con's of using |
Beta Was this translation helpful? Give feedback.
-
I would like to see a Time and date set in the WEB UI.
Yes I have RTCs on the portable cameras but sometimes they fail and as I take them camping in the RV there are times I am in a different time zone. Would be nice to be able to set the time using the WEB UI.
Make the settings a drop-down list the less typing the better.
Thanks
Brad
Beta Was this translation helpful? Give feedback.
All reactions