Close

Software

A project log for ESP8266 based Mopidy remote controller

I use esp8266 accompanied with IR remote to control Mopidy music server in local network

andriymalyshenkoandriy.malyshenko 03/31/2019 at 14:240 Comments

I use Sming framework for my esp8266 based project. I think this one is most handy for quick and convinient development.

I split unit's tasks in classes with following high level responsibilities:

wifimanager - tries to connect to known network and notifies application if connection established or lost. when no connection avalable - it starts AP point so you can connect to it and configure.

webserver - starts and provides basic interface for listing wifi networks and connecting to one.

mopidy - basic httpclient used for communication with mopidy music server using jsonrpc. Additionaly to basic operations like play and stop, it loads user stored playlist from mopidy server and provides possibility to start track by number.

ir - provides mapping between remore buttons and mopidy actions

aso IR library included with all protocols disabed apart from those that i need. This improves remote responsiveness dramaticaly.

I use vscode for development and basic build tasks for vscode are included

Discussions