Coder Social home page Coder Social logo

csv2ir's Introduction

csv2ir's People

Contributors

evilpete avatar ezod avatar spexivus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

csv2ir's Issues

Address out of range error with Flipper when using IR folder examples

I'm testing out the ir folder from the repo on my Flipper and encountered an issue where many do not load anything in the UI for the Flipper, and generate an error in debug logging (see below).

These files (any many more) cause this issue, on at least the NEC/Panasonic protocols:
https://github.com/Spexivus/csv2ir/blob/main/ir/2wire/Unknown_2wire.ir
https://github.com/Spexivus/csv2ir/blob/main/ir/Panasonic/TV1.ir

After troubleshooting a bit with one of the Flipper maintainers on the discord, the address on the first 2wire example was determined to likely be NEC Extended (NECext), not regular NEC. There appears to be 4 different NEC protocols that are supported by the flipper, but this isn't being specified in the converted IR files. (See: https://github.com/flipperdevices/flipperzero-firmware/blob/dev/lib/infrared/encoder_decoder/nec/infrared_nec_spec.c

Here is an output for the first IR file that was tested:
36931 [E][InfraredParser]: Address is out of range (mask 0x000000FF): 0x2020

However, could the following item be related? I noticed in the python script that the Device and Sub-device are checked but then Device is used twice (row1 row1) in the output?

irFile.write(f"address: {row1} {row1} 00 00\n")

Flipper IR conversion

Hello,

I want to convert EVERY (converted) file, into a file that the flipper can use. My discord is Wisiewig#1369, can you add me so we could discuss this?

Ability to Batch Convert Multiple Subdirectories

I'm curious if this script could be made to be able to batch convert multiple .csv in multiple different multi-level subdirectories and keep the .ir file in the respective original folders.

e.g. If you wanted to download the entire IR library and batch convert all of the .csv files in the "codes" folder which has multiple subdirectories and leave those files in their respective folders.

I downloaded a bunch of folders and was hoping to not have to manually convert them all ๐Ÿ˜‚

Thank you, magical wizards!

Protocol ignored

instead of using he protocol in the csv the code looks like it uses the command line or a hardcoded value

thus many of the converted "RC5" protocol files get marked "NECext"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.