Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By forlotto
#46837 Hrmmm I could see a use for this if codes can be repeated they are being captured somewhere before being repeated it should be possible to create a program that does the following:

Asks for a model of the device you are controlling.
Asks you to push a button or gives you the option to skip this button if it is not used.
Stores the data for that button under the model of the device.
Once the data is gathered the last prompt will write all this data to a file a remote configuration.

Then modify this program to load the remote data from a drop down menu when selected dynamically things will change to work for this remote that is selected...

Call me a dreamer but wouldn't something like this be possible at a point we could have a sub forum dedicated to IR remote configurations and people sharing them to make life even easier yet.

Just a wild thought I mean when you take a look at a universal remote you cant tell me the hardware is anywhere near as good as the esp8266 I would think remote control emulation at this level would indeed be possible.
User avatar
By Electroguard
#46840 You guys just continue to amaze!

Obviously image maps are specific to a persons image, and we all have different remote controllers, so how did you arrive at your image map coordinates - or more importantly... how could Joe Public derive the required hot-spot coordinates for their own images?
User avatar
By cicciocb
#46845 You can simply use windows paint.
Moving the mouse on the image, the coordinates are shown in the lower left corner.
For each button, you need to take the coordinates of the left top corner and the lower right.
As, in general, the buttons are placed in rows and columns, the coordinates are repeated per each line / column.

In the example posted, for example, in the line
Code: Select all<area shape="rect" coords=" 50,135,100,160" onclick="sendIR('ON')">

the coords represent x1, y1, x2, y2 where (x1,y1) is the top left corner and (x2,y2) is the lower right.
Last edited by cicciocb on Wed May 04, 2016 11:02 am, edited 3 times in total.