-->
Page 11 of 14

Re: How to use local Cloud update of own code

PostPosted: Thu May 28, 2015 11:30 pm
by Pablo2048
scratchrobot wrote:I installed the Sming framework on a linux server and made a little webserver to edit and build my code :D
https://youtu.be/HoFeFtLLPKg

Excellent - can You please publish the source code? Thank You.
Pablo2048

Re: How to use local Cloud update of own code

PostPosted: Fri May 29, 2015 1:21 am
by moodgorning
scratchrobot wrote:I installed the Sming framework on a linux server and made a little webserver to edit and build my code :D
https://youtu.be/HoFeFtLLPKg

Yes please if possible save us all a couple of hours and publish the code please. That would be much appreciated.

Re: How to use local Cloud update of own code

PostPosted: Fri May 29, 2015 3:51 am
by scratchrobot
I'm sorry i can't give plug and play code but this is what i did:
Installed the https://github.com/anakod/Sming on a linux server
Installed Apache webserver and PHP
Installed https://github.com/codemirror/CodeMirror to edit the code
The build button executes a PHP script that executes a shell script on the server

#!/bin/bash
cd /var/www/html/Source
make rebuild

The 'Basic_AirUpdate' Sming example takes care of the OTA update.

Re: How to use local Cloud update of own code

PostPosted: Fri May 29, 2015 5:09 am
by tavalin
Apologies for being off topic a bit but I watched some of your other videos scratchrobot.

Could you share your circuit for your wall switches? I planned to do something similar as I have the same ones and I'm curious whether you hacked the current PCB or made a completely new one.