Code Monkey home page Code Monkey logo

flippermaker.github.io's People

Contributors

maikthulhu avatar natehome avatar uberguidoz 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  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

flippermaker.github.io's Issues

Integration with Official Flipper application

Hey Nate! During the Flipper Q&A today, the official devs mentioned they were interested in having your site features integrated into the official Flipper infrastructure. I tagged you in the chat, but it was recommended to reach out here too. Hoping you see this and reach back out (and are interested). Thank you!

Leading 0 in binary Ook to Sub (Tool-SubGhz) gets dropped

I have a generic key fob with a HS1527 chip

image

Messages are sent with a preamble, 20bit unique ID and then 4bit value representing which buttons are pressed.
the preamble looks exactly like a binary '0', Thus when using the Ook to Sub tool with a binary input, the leading 0 gets truncated.

For example, here is the result for the input 0 1010 1010 1010 1010 0100 and (and transpose (1 -> 1110 and 0 0> 1000, with a width 333 for on and off)

image

A work around is to invert the binary message and use the transpose fields to flip them back, preserving the initial binary 0 required for preamble.

image

I believe the culprit is the following line:

getFormBinHexOok(getValue = false){
if(getValue){
var raw = this.getForm().elements["binHexOokToSub"].value.toString().trim();
raw = cleanString(raw).toString();
var isHex = allHex(raw);
var isBin = allBinary(raw);
var isNumber = allNumeric(raw);
var cleanValue = 0;
if (isBin){
cleanValue = BigInt("0b"+raw);
//console.log("base2~"+cleanValue.toString());
} else if (isHex){
cleanValue = BigInt("0x"+raw);
//console.log("base16~"+cleanValue.toString());
} else if (isNumber){ //should never reach this because all ints are also hex
cleanValue = parseInt(raw, 10);
//console.log("base10~"+cleanValue.toString());
}
return cleanValue.toString(10);
}else{
return this.getForm().elements["binHexOokToSub"];
}
}

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.