Skip to content

jeanmatthieud/iot-audio-player

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Platform

Expressif

  • Arduino/ESP8266@2.1.0

Libraries

  • PubSubClient@2.6
  • WiFiManager@0.12
  • Json@5.6.2

API

Messages

Endpoint: /v1.0/messages/[chip-id] Example of received message: {"sensor": "tardis", "audio": on|off, "pulse": endMs}

Actions

Endpoint: /v1.0/actions/[chip-id]

Play

Example: { "name": "play", "params": { "track": 0 } }, { "name": "play", "params": { "track": 1 } }

Pause

Send: { "name": "pause" }

Mute

Send: { "name": "mute" }

Unmute

Send: { "name": "unmute"}

Volume

Send: { "name": "volume", "params": { "value": 0 }} to { "name": "volume", "parameters": { "value": 7 }}

Pulse

Send: { "name": "pulse", "parameters": { "duration": 2000 }}

Duration is in ms

Errors

Endpoint: /v1.0/errors/[chip-id]

Releases

No releases published

Packages

No packages published