`jq` parsing fail of screen list
vpetersson opened this issue · comments
Viktor Petersson commented
(sed '1d'
is to work around issue in #20.)
It appears as the JSON we generate is broken sometimes:
> $ screenly screen list --json | sed '1d' | jq
{
"config": {
"audio_output": "hdmi",
"disable_overscan": 0,
"display_rotate": 0,
"framebuffer_height": 0,
"framebuffer_width": 0,
"hdmi_boost": 2,
"hdmi_drive": 0,
"hdmi_force_hotplug": true,
"hdmi_group": 0,
"hdmi_mode": 0,
"hdmi_pixel_encoding": 0,
"hdmi_timings": "",
"overscan_bottom": 0,
"overscan_left": 0,
"overscan_right": 0,
"overscan_scale": 0,
"overscan_top": 0,
"play_history_enabled": false,
"shuffle_playlist": false,
"use_composite": false,
"use_composite_ntsc": false,
"use_composite_pal": false,
"verify_ssl": true
},
"coords": [
59.324,
18.0486
],
"created_at": "2021-09-22T10:39:21+00:00",
"debug": false,
"hardware_version": "Raspberry Pi 3B+",
"hostname": "[redacted]",
"id": "[redacted]",
"in_sync": false,
"interface": "eth0",
"is_enabled": true,
"last_ip": null,
"last_ping": "2021-09-23T11:55:35.776+00:00",
"last_screenshot": "https://us-assets.screenlyapp.com/018KXAT7680007YRRPFJ9WTG0W/screenshots/x/y",
"last_screenshot_time": "2021-09-23T11:44:00.94+00:00",
"load_avg": "0.81",
"local_ip": "192.168.202.180",
"location": "Stockholm, Sweden",
"mac": "[redacted]",
"name": "My Screen",
"signal_strength": null,
"software_version": "Screenly 2 Player",
"status": "Offline",
"team": "[redacted]",
"team_id": "[redacted]",
"timezone": "Europe/Stockholm",
"type": "hardware",
"uptime": "90134.67",
"ws_open": false
}
parse error: Expected value before ',' at line 57, column 4
Viktor Petersson commented
Closing this as it was related to formatting with sed
, which stripped out the opening [
.