Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. Candle Manager - user-friendly web-based tool to program Arduino's

Candle Manager - user-friendly web-based tool to program Arduino's

Scheduled Pinned Locked Moved My Project
5 Posts 3 Posters 1.4k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • alowhumA Offline
    alowhumA Offline
    alowhum
    Plugin Developer
    wrote on last edited by alowhum
    #1

    For a project I'm working on I've created a small tool that could be useful to everyone in the community. I'm sharing an early version for Christmas :-)

    The tool is meant to be used with the Raspberry Pi. Through this web interface you can generate and upload code to a plugged in Arduino with the click of a few buttons.

    0_1545992240907_dashboard.png

    0_1545992251013_create_new.png

    It takes code templates (which are just normal Arduino files), and transforms them into an easy to use interface so that users can change some settings.

    0_1545991833537_code_ux_generation.png

    From the user's preferences new code is generated. This can then be uploaded with the upload wizard:

    0_1545992281342_upload_wizard2.png

    0_1545992295714_upload_wizard3.png

    The user never has to see any code if they don't want to. But if they do it has a built in code editor too.

    HOW DOES IT WORK?
    It builds on the new Arduino Command Line Interface (CLI).
    HTML5 <-> PHP <-> Arduino CLI

    What's is good for?

    • Giving workshops. People no longer have to install the Arduino IDE on their laptops, but can instead connect to Raspberry Pi wifi hotspot.
    • I'm developing it to be part of a privacy friendly smart home demonstrator that I've been working on for a while. I'm building it on top of MySensors, MySController-rs, Mozilla Gateway and the Arduino CLI.

    MORE DETAILS
    The code and more screenshots and details can be found here:
    https://github.com/createcandle/Candle-manager

    skywatchS 1 Reply Last reply
    3
    • alowhumA alowhum

      For a project I'm working on I've created a small tool that could be useful to everyone in the community. I'm sharing an early version for Christmas :-)

      The tool is meant to be used with the Raspberry Pi. Through this web interface you can generate and upload code to a plugged in Arduino with the click of a few buttons.

      0_1545992240907_dashboard.png

      0_1545992251013_create_new.png

      It takes code templates (which are just normal Arduino files), and transforms them into an easy to use interface so that users can change some settings.

      0_1545991833537_code_ux_generation.png

      From the user's preferences new code is generated. This can then be uploaded with the upload wizard:

      0_1545992281342_upload_wizard2.png

      0_1545992295714_upload_wizard3.png

      The user never has to see any code if they don't want to. But if they do it has a built in code editor too.

      HOW DOES IT WORK?
      It builds on the new Arduino Command Line Interface (CLI).
      HTML5 <-> PHP <-> Arduino CLI

      What's is good for?

      • Giving workshops. People no longer have to install the Arduino IDE on their laptops, but can instead connect to Raspberry Pi wifi hotspot.
      • I'm developing it to be part of a privacy friendly smart home demonstrator that I've been working on for a while. I'm building it on top of MySensors, MySController-rs, Mozilla Gateway and the Arduino CLI.

      MORE DETAILS
      The code and more screenshots and details can be found here:
      https://github.com/createcandle/Candle-manager

      skywatchS Offline
      skywatchS Offline
      skywatch
      wrote on last edited by skywatch
      #2

      @alowhum Oh, very good work sir! :)

      This is one of those things that has been needed for so long - I look forward to seeing the development of this as time goes on.

      Excellent! ;)

      1 Reply Last reply
      0
      • HomerH Offline
        HomerH Offline
        Homer
        wrote on last edited by
        #3

        This looks cool.

        Given that it's web based, would that mean that I could use it on my windows computer? Hope that question isn't too obvious or stupid.

        1 Reply Last reply
        0
        • HomerH Offline
          HomerH Offline
          Homer
          wrote on last edited by
          #4

          I'm hoping to have a go at this today. I have an old Raspberry Pi that I've never used sitting in my Arduino box. Because I've never used a Raspberry Pi before, I don't know what to do.... Do I need to install an operating system first? If so, which do you suggest?

          1 Reply Last reply
          0
          • alowhumA Offline
            alowhumA Offline
            alowhum
            Plugin Developer
            wrote on last edited by alowhum
            #5

            @homer This is how I do it:

            • First download the latest Mozilla WebThings Gateway image and burn that onto an SD card. Their guide will explain how to 'burn' it onto an SD card.
            • Insert it into the pi and boot it up. After a while you will see a new WiFi network for the gateway. Connect to it and follow the steps. You can skip the step to make a subdomain at Mozilla.
            • Once done, open gateway.local in a browser that's on the same wifi network. You should now see the Mozilla Gateway interface.
            • Under settings -> development enable SSH.
            • Open a terminal window and SSH into the device. Google how to do that. For linux/mac it's something like: ssh pi@gateway.local and then enter the default password raspberry.
            • once logged in, you have to install PHP.
            sudo apt-get install php5-fpm php5 -y
            
            • Next, copy the Candle Manager from Github onto the Pi.
            git clone https://github.com/createcandle/Candle-manager.git
            chmod +x ./Candle-manager/start.sh
            ./Candle-manager/start.sh
            

            Now you should be able to go to gateway.local:8023 to see the Candle Manager.

            By default it comes with only one demo sketch. In the future you will be able to install a lot more. Arduino Sketches have to be properly formatted and placed in the 'sources' folder to be automatically presented in the Candle Manager interface. Examples of such sketches can be found here.

            Basically, the variables that you want to be modifiable via the interface have to be placed in a special section. The description at the top of the sketch will also be shown in the interface. For example:

            /*
             * 
             * Temperature and more sensor
             * 
             * This device can measure:
             * - temperature
             * - humidity 
             * - airpressure (barometer). 
             * 
             *
             *
             * SETTINGS */ 
            
            // You can enable and disable the settings below by adding or removing double slashes ( // ) in front of a line.
            
            #define HAS_DISPLAY                                 // Did you connect a display?
            
            //#define FAHRENHEIT                                  // Do you want temperature measurements to be in Fahrenheit?
            
            //#define MY_SECURITY_SIMPLE_PASSWD "changeme"        // Be aware, the length of the password has an effect on memory use.
            
            
             /* END OF SETTINGS
             *
             *
             *
             */
            
            // The actual sketch and other variables are placed here.
            
            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            41

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular