Skip to content

Instantly share code, notes, and snippets.

View chpeck's full-sized avatar

Choon chpeck

  • San Francisco, CA
View GitHub Profile
@chpeck
chpeck / configuration.yaml
Created November 3, 2022 05:51
REST Sensor for LTA Traffic
rest:
- resource: https://api.data.gov.sg/v1/transport/traffic-images
scan_interval: 300
sensor:
- name: Causeway
json_attributes_path: '$.items[0].cameras[?(@.camera_id == "2701")]'
json_attributes:
- image
- camera_id
- timestamp