• 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
Error message when start of pilight failed.
#1
I think it is a good idea to write the line out when the start from pilight failed.
i always need to have 2 consoles open to read error messages in the error log.

The log entry line should also be shown on the console.

example what i mean.
Code:
failed! not a valid json config file
or
Code:
failed! device invalid setting
 
Reply
#2
That would be against how linux works. That's why most programs offer a mode to run in the foreground.
 
Reply
#3
To elaborate Wink, run sudo pilight-daemon -D to see debug output Smile
 
Reply
#4
OK, thanks.
 
Reply
#5
After several re-installations and problems I have a working pilight v6. pilight-receive is working perfect. It’s far away from calling me a programmer but I’m more a man of electronics.
So, my next step is editing the onficg.json and in that stage I’m blocked. I’ve tried many possibilities by editing the “devices”-setup but the – service pilight start – is giving me the reaction [FAIL] and running Sudo pilight-daemon –D gives me the answer ‘Config is not in a valid json format’. I do understand the use of {/} is very important and it might be the problem, but I don’t understand the logic of where and when that signs are used. Is this short and simple to explain? Googling all over the web and reading books didn’t help me. If there are more reasons that bring me to mistakes I’m glad to hear it. I have typed/retyped many samples and get the same [FAIL]-message.
Thanks in advance
 
Reply
#6
Use http://www.jsonlint.com to see exactly where you made your mistake. Also don't read for hours for ask for help earlier.
 
Reply
#7
Try using http://jsonlint.com to check your JSON code to see where there are problems
 
Reply
#8
Hi guys,

i'm having the excact same problem as romsys. I feel like i posted that massage..Unsure

I've used jsonlint.com to check the json config file which states that it is valid. I didn't even start edditing the devices branche, just the settings were enough to get the fail.. In settings i only added: "receive-repeat": 1

I also did put a comma (,) after the last input and then added the above line whithout it as the last line, do you guys have any tip were to look?

Thanks

PS: If i should post my code could you quickly tell me how to do this?
 
Reply
#9
Check the pilight manual for valid settings: http://manual.pilight.org
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight-control modify values coolinx 13 183 3 hours ago
Last Post: coolinx
  Bug: double free or corruption in pilight-send blackzombie 12 249 10-07-2019, 08:15 PM
Last Post: blackzombie
  rpi3 Buster Compile Error Nikau 4 266 08-18-2019, 09:08 AM
Last Post: curlymo
  [Fixed] High CPU usage when pilight usb nano disconnects DieterK 1 171 08-13-2019, 05:43 PM
Last Post: curlymo
  pilight Nano USB interface curlymo 228 99,242 07-10-2019, 06:14 PM
Last Post: curlymo
  ERROR: The Broadcom 2835 GPIO 0 is not set to output mode stuckinger 10 866 05-07-2019, 09:11 PM
Last Post: curlymo
  problems compiling pilight on Odroid C2 WitchDoctor 101 10,543 03-14-2019, 09:01 PM
Last Post: curlymo
  pilight 8 what chages for custom protocols? polo 11 3,085 02-15-2019, 06:22 PM
Last Post: polo
  v8.1.3 compile error without https fourty2 3 528 11-21-2018, 08:02 PM
Last Post: fourty2
  Assert error in v8.1.3-nightly-d2ee2d0d Ulrich.Arnold 4 560 10-24-2018, 09:28 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)