Skip to content

Bash script fails to identify ratgdo-esphome #1

@linux4life798

Description

@linux4life798

Simply using the ratgdo-logger.sh logger script with the ratgdo esphome firmware fails during identification.
The HEAD HTTP method does not seam to be implemented on in firmware.

user@host:~/ratgdo-logging$ ./ratgdo-logger.sh 192.168.123.71
Pinging 192.168.55.70...
✅ Host 192.168.55.70 is reachable.
Checking firmware type...
❌ unknown firmware type

user@host:~/ratgdo-logging$ curl --head -s -o /dev/null -w "%{http_code}" "http://192.168.123.71/events"; echo
405

user@host:~/ratgdo-logging$ curl --head -s -w "%{http_code}" "http://192.168.123.71/events"; echo
HTTP/1.1 405 Method Not Allowed
Content-Type: text/html
Content-Length: 45

405

user@host:~/ratgdo-logging$ timeout 1 curl -s -w "%{http_code}" "http://192.168.123.71/events"; echo

retry: 30000
id: 569592442
event: ping
data: {"title":"Garage Door - Right","comment":"","ota":true,"log":true,"lang":"en"}

event: state
data: {"id":"binary_sensor-motion","name":"Motion","icon":"","entity_category":0,"value":false,"state":"OFF"}
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions