• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[nightly build] getting datetime in webgui
#1
Question 
Hi all,

Really enjoy working with pilight! Currently working with the nightly build (v5.0-140-gc3079a9). After a (hopefully) thorough search of the forum I am at a loss: I don't seem to get a date/time in the webgui. 'Datumtijd' is a datetime 'device' already defined and works great with the eventing.

Found:
Code:
libs/protocols/datetime.c:    options_add(&datetime->options, 0, "datetime", OPTION_HAS_VALUE, GUI_SETTING, JSON_NUMBER, (void *)0, "^[10]{1}$");
libs/protocols/datetime.c:    options_add(&datetime->options, 0, "format", OPTION_HAS_VALUE, GUI_SETTING, JSON_STRING, (void *)datetime_format, NULL);

Tried:
  • gui-show-datetime - not present anymore in nightly
  • placing 'datetime' in 'gui' element:
    Code:
    "gui": {
                    "datumtijd": {
                            "name": "Datum",
                            "datetime": 1,
                            "group": [ "Thuis" ]
                    },
    ...

Any hints would be greatly appreciated. Thanks!
 
Reply
#2
This was indeed a bug i just fixed. Thanks for reporting.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Assert error in v8.1.3-nightly-d2ee2d0d Ulrich.Arnold 4 463 10-24-2018, 09:28 PM
Last Post: curlymo
  WebGUI emtpy since 8.0.8 Dergo 14 2,127 02-24-2018, 01:09 PM
Last Post: Dergo
  CONTACT devices | Webgui wupperpi 2 643 01-18-2018, 03:37 PM
Last Post: wupperpi
  [solved] Webgui 404-Error PT-Biker 2 886 11-11-2017, 09:49 AM
Last Post: PT-Biker
  pilight-raw working in nightly? Cipher 8 1,640 08-30-2017, 09:35 PM
Last Post: curlymo
  pilight nightly does not start up, no log entries PT-Biker 4 1,605 06-09-2017, 06:34 AM
Last Post: PT-Biker
  No Heartbeat in Nightly anymore? Cipher 1 711 05-22-2017, 10:02 AM
Last Post: pilino1234
  When do "Pull-Requests" show up (in Nightly or 'git clone') TheWheel 3 1,233 12-24-2016, 09:58 AM
Last Post: curlymo
  pilight doesn't show the right status in webgui jurkla 8 2,370 11-17-2016, 09:41 AM
Last Post: gregnau
  Update Error latest Nightly Alex 13 3,933 09-11-2016, 02:51 PM
Last Post: Alex

Forum Jump:


Browsing: 1 Guest(s)