Code Monkey home page Code Monkey logo

pyrocketlauncher's Introduction

PyRocketLauncher

Description

This software was designed for a custom built fireworks ignition system. The corresponding hardware is based on a Raspberry Pi together with one or more TLC59116 to control a driver stage that drives eletric igniters. The Raspberry Pi communicates with the TLC59116 via an I²C interface. This communication is controlled by this software. In addition this software provides a browser based frontend for easy user intercation with the system.

Installation

  1. Download the rl-install script by running wget https://raw.githubusercontent.com/CR1337/PyRocketLauncher/main/bin/rl-install
  2. Set execution permission by running chmod +x rl-install
  3. Execute the rl-install script as root.
  4. Run sudo rl setup.
  5. Configure your device by interacting with the config wizard.
  6. Your device is now fully functional.
  7. Check further options by running sudo rl help.

pyrocketlauncher's People

Contributors

cr1337 avatar aliciusschroeder avatar

Stargazers

 avatar

Watchers

 avatar

pyrocketlauncher's Issues

Bug: Fireworks Editor 'timestamp' Field Incorrectly Stored

Description

When saving a fireworks program, the timestamp field, which should be a number, is being saved as a string in the exported JSON file. This occurs because the .toFixed(1) method, used to format the timestamp value, converts the number to a string. This leads to a mismatch in expected data types when loading the program, as the validation logic expects a number, not a string.

As a result, once a program has been saved, it cannot be opened again in the editor.

Steps to Reproduce

  1. Create a new fireworks program in the visual editor.
  2. Add events with various timestamps.
  3. Save the program.
  4. Opening the program results in the error message: "The loaded Program is ill formed!\nPlease check the file or choose a different one."

Expected behavior: The timestamp field should be stored as a number.

Actual behavior: The timestamp field is stored as a string.

Possible Solution

Convert the timestamp back to a number after applying .toFixed(1).

Additional Context

This issue impacts the loading functionality of the editor as the program fails to validate the loaded data due to the unexpected string type for timestamp. For the backend functionality this is not relevant as a conversion to the numerical datatype is enforced in /backend/program.py:

timestamp = float(event['timestamp'])

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.