• 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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pilight service not starting
#1
 
Reply
#2
(05-26-2018, 12:51 PM)vlatko.jordanov Wrote: Hello Guys,

Maybe there is a post about this already but I was unable to find any Crying. I am using 433mhz devices around my home and previously I had pilight setup correctly and that was working fine until my sd card decided to corrupt itself and as I am I never did any backup of the config file, silly me. 

What happens is I try to configure only one ID in the JSON config and add it to the guy but then the service fails to start, if I delete/disable the devices and gui settings the service starts so I am kinda confused. I did type the config manually in case there was some typo etc. but none of it helped,

Please see my config below and advise if you can find what is the issue, would be much appreciated!:

Code:
{
       "devices": {
         "Bedroom1": {
           "protocol": [ "rsl366" ],
           "id": [{
             "systemcode": 1,
             "programcode": 1
           }],
           "state": "off"
          }
       },
       "rules": {},
       "gui": {
         "Lights": {
           "name": "Lights",
           "group": [ "Bedroom" ],
           "media": [ "all" ]
           "readonly": 0
           }
       },
       "settings": {
               "log-level": 6,
               "pid-file": "/var/run/pilight.pid",
               "log-file": "/var/log/pilight.log",
               "webserver-enable": 1,
               "webserver-root": "/usr/local/share/pilight/webgui",
               "webserver-http-port": 5001,
               "webserver-https-port": 5002,
               "webserver-cache": 1,
               "gpio-platform": "raspberrypi2"
       },
       "hardware": {
               "433gpio": {
                       "sender": 0,
                       "receiver": 1
               }
       },
       "registry": {
               "webserver": {
                       "ssl": {
                               "certificate": {
                                       "secure": 0,
                                       "location": "/etc/pilight/pilight.pem"
                               }
                       }
               },
               "webgui": {
                       "tabs": 0
               },
               "pilight": {
                       "version": {
                               "current": "8.1.0"
                       }
               }
       }
}

Cheers,
Vlatko Jordanov

In addition when I run debug it says that the program is not in valid JSON format sigh.... :

[May 26 12:31:03:617490] pilight-daemon: ERROR: config is not in a valid json format
 
Reply
#3
I am obviously a mongol for not using the awesome debugger aaaand an old friend which I totally forgot about jsonlint.com Smile so anyone having issues with validating their JSON feel free Smile

The issue was a bracket missing on the end of the config file which has resolved the issue other than that here was some other errors but as said thanks to the awesome debugger that's now solved and this thread can be closed Smile

Thanks,
Vlatko
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  tabs on pilight SeLi 5 2,429 05-31-2017, 09:25 PM
Last Post: NormBot
  alarm system using pilight rbrueckner 4 2,024 05-14-2016, 12:24 PM
Last Post: diman87
  Rules make pilight freeze koos147 5 1,927 05-04-2016, 08:11 PM
Last Post: curlymo
  Raspberry Freeze when starting pilight sunny20k17 2 1,264 03-18-2016, 12:29 PM
Last Post: sunny20k17
  pilight eventing rules terrar 94 37,966 02-18-2016, 10:21 PM
Last Post: brombeerwilli
  pilight after reboot SeLi 5 3,220 01-06-2016, 08:20 PM
Last Post: SeLi
  Confusion/possible bug in pilight tomza 3 1,982 11-06-2015, 05:40 PM
Last Post: pilino1234
  pilight eventing - sunset/sunrise/time Niek 14 10,720 04-27-2015, 05:20 PM
Last Post: troccolo
  Trigger a one-shot device from pilight Karel 5 3,109 03-12-2015, 03:54 PM
Last Post: martinr
Smile pilight eventing - randomization questor 8 4,292 01-29-2015, 04:21 PM
Last Post: Niek

Forum Jump:


Browsing: 1 Guest(s)