Giter Site home page Giter Site logo

Script improvement about sonota HOT 16 CLOSED

mirko avatar mirko commented on June 21, 2024
Script improvement

from sonota.

Comments (16)

mirko avatar mirko commented on June 21, 2024

Well, it's certainly possible and I'm happy to see that.

However using the script has a few implications:

  • you still need to build different images for particular devices (mainly the Sonoff 4CH switch as well as the Sonoff Touch, as they have the ESP8285 instead of the ESP8266 built-in)
  • you might brick your device and therefore should be able to unbrick / (re)flash it via serial

Making it too easy I kinda fear that people who are not aware of the above shouldn't use that script anyway (at least as long as it's just a PoC and there are risks of (soft-)bricking).

Though, as said, you're more than welcome of course to do so!

from sonota.

ionciubotaru avatar ionciubotaru commented on June 21, 2024

As I know @arendst solve the differences between 8266 and 8285 so you can use the same .bin for both
Unfortunately I am not so experienced in linux, that's why I request your help with a ready made raspberry image or, at leas,t all in one script.

You did a great job, keep up the good work

from sonota.

roondar avatar roondar commented on June 21, 2024

Why did you close the issue ? You could tag it as an enhancement ?
May be this weekend, I'will provide a docker image/virtualbox or other thing.

from sonota.

mirko avatar mirko commented on June 21, 2024

Why did you close the issue ? You could tag it as an enhancement ?

I'm sorry, I indeed only considered the issues being issues.
Will follow your advise and tag it appropriately.

from sonota.

roondar avatar roondar commented on June 21, 2024

Very fast ! :-)
It'll be easiest to do the job with latest Tasmota release.

from sonota.

mirko avatar mirko commented on June 21, 2024

Short update: I pushed quite a few code changes yesterday, incl. provisioning support which obsoletes using the proprietary app and the DNS redirect. Also the necessity as running it as root is gone.
That way I think the script should be pretty usable for everybody who can install python dependencies and running such a script.

from sonota.

ionciubotaru avatar ionciubotaru commented on June 21, 2024

Great news,
please upload the latest Tasmota bin1 and bin2, because this is another difficult part.
After first update is it possible to use the normal Tasmota web update procedure ?

from sonota.

mirko avatar mirko commented on June 21, 2024

The Tasmota images can be built according to the instructions stated in the Tasmota wiki with the adjustment mentioned in my blog post (as well as in the README of this very project).

from sonota.

ionciubotaru avatar ionciubotaru commented on June 21, 2024

Hi @mirko

You did a great job, you are just one step before complete - add a nice bash script to do all in one step:

#!/bin/bash
git clone https://github.com/mirko/SonOTA
#check if ssl certificate exist and create them if not
.............................
python3 sonota.py --wifi-ssid foobar --wifi-password ew4Ookie 10.23.42.5

For you is very easy to compile Tasmota's, but I'm sure that 50% of the users has problems finding boards.txt
That's why @smadds serve already compiled bin files http://sonoff.maddox.co.uk/tasmota/sonoff.bin
There is a link to your git in tasmota's wiki page https://github.com/arendst/Sonoff-Tasmota/wiki/Upload#sonoff-factory-ota-mechanism-experimental , so the easyer will be, the more users will benefit from it.

Sorry for my insistence

from sonota.

mirko avatar mirko commented on June 21, 2024

If you have such a script, find it worth being added to the repo, add some proper documentation from where to fetch what kind of pre-built images, I'm more than happy to take a look at respective pull-requests.

from sonota.

roondar avatar roondar commented on June 21, 2024

Hi Mirko,

Do you know if ssl still necessary ?

from sonota.

mirko avatar mirko commented on June 21, 2024

Do you know if ssl still necessary ?

Could you please elaborate or provide some context?

from sonota.

roondar avatar roondar commented on June 21, 2024

Yes, as you are using a different port than 443.
I suppose we can use a http url and not https.
So, if it's only http, openssl won't be needed ?

from sonota.

mirko avatar mirko commented on June 21, 2024

It is HTTPS - thus HTTP over SSL/TLS. I still wonder what your actual request is, especially in regard of this ticket(?)

from sonota.

roondar avatar roondar commented on June 21, 2024

It s in order to deliver a bash script.
I suposed https not needed anymore.

from sonota.

mirko avatar mirko commented on June 21, 2024

The device is initiating the communication by sending an HTTPS request. I wonder where your suppositions come from.
Anyway, I'll close this ticket - feel free to propose a pull request for that enhancement.

from sonota.

Related Issues (20)

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.