probonopd / irdb

One of the largest crowd-sourced, manufacturer-independent databases of infrared remote control codes on the web, and aspiring to become the most comprehensive and most accurate one
Other
801 stars 149 forks source link

question on the API #25

Closed kdschlosser closed 4 years ago

kdschlosser commented 4 years ago

I see that you have the ability to query using the raw ir timings.. which is awesome.. The response from that produces a json response which has the protocol name, the device, subdevice and function. does it also return if available any names that have been stored for the device subdevice and function? That would be a nice thing to have available..

I am also going to ask how fast is your connection and server??? would I be able to drop queries against it for some 200K+ users??? I would cache the data locally on their machine after a query has been made so repeated queries from the same user for the same codes would not take place..

I do not know what you have for a server/host and I do not want to possibly cause a problem if there are to many queries being made. If the above might be an issue would setting up a mirror on my server be something you might consider?. My server is a 6 core @ 3.5gHz core with 8GB of ram 1gbit up/down stream and I believe 33TB data. 120 GB SSD.... in the last year I had a single outage for about 25 minutes due to a network issue. I am running Ubuntu 18.04 x64 LAMP and I have 4 IPv4 addresses available.

probonopd commented 4 years ago

@kdschlosser unfortunately I have not implemented that functionality.

The server I am running this on is the cheapest shared server I could find, so it would go down immediately under that type of load. Is is more a hobbyist proof-of-concept than anything else.

If you want to use IRDB in production, best use the files from this repo and build your own server-side solution around it.

kdschlosser commented 4 years ago

This repo contains the database for the stored codes. I would be interested in using the API and having the ability to grab codes a user can blast.. things like that..

I do not know if you remember speaking with me a while back about using your API in the project I am the administrator of . I have finally gotten the the time and have been putting some work into application's IR capabilities. I have done a complete rewrite of the connection to the MCE IR receiver So now it works like it should, It is far more accurate then the way it was being done before. it can handle multiple receivers and blasters. it's faster. I am wanting to expand the decoding capabilities. and I have been starting to add/fix to that portion of the code to make it more accurate. The issue I am running into is the lack of information available for a bunch of the protocols. The only thing I have been able to find is the IRP notations. I am not versed on this notation and from my readings it appears to be quite complex. in order for me to add the IRP notation handling to my code would be a pretty large task. and that only gives me the decoding portion. not the marrting of a device/command to a user friendly string. and that is something I am wanting to add.

I do not know how you are decoding the codes using your API that is a piece I am interested in knowing how to do.

probonopd commented 4 years ago

Check out http://www.harctoolbox.org/, that's what I am using. Let me know if you have specific questions. I might also open source the server side code if there is interest in it.

kdschlosser commented 4 years ago

you want to move your site to a dedicated server??, Free of charge except me being allowed to use the API with a possible heavy load on it.. I know you have been working on the database for a while now.. having my application connect to it to upload/download codes is going to help it grow pretty quickly. I do not want to make an attachment like that if you are on a shared server.. It wouldn't be pretty.. I also have to many eggs in my basket.. and you are familiar with how the thing works. it would be far easier for you to set the thing up and get it running,

the offer is there if you are interested. the ir code database is it the flat files you have here on github, or do you have it in some kind of a sql database and the files here are exported?

probonopd commented 4 years ago

Thanks @kdschlosser but I have decided to only offer irdb on GitHub going forward. I do not have the time to maintain infrastructure.