Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Improve Web page editing process #28

Merged
merged 2 commits into from
Dec 7, 2019

Conversation

LarsMichelsen
Copy link
Collaborator

  • Extract sketch website to dedicated file Web_Page.ino
  • Add helper script to create Web_Page.ino from Website.html
  • Add README for how to work with the website

* Extract sketch website to dedicated file Web_Page.ino
* Add helper script to create Web_Page.ino from Website.html
* Add README for how to work with the website
It updates the website from `Website.html`, compiles the firmware
and uploads it to the board via OTA upload.

The script can be called like this:

> compile_and_upload.py [IP-ADDRESS-OF-LAMP]

The script requires Python 3 with the requests module installed.
Additionally it requires the arduino IDE to be in PATH as "arduino"
command.

It has been developed and tested on Linux (Ubuntu). It should work
on MacOS or Windows either out of the box or with smaller changes.
@LarsMichelsen
Copy link
Collaborator Author

In the 2nd commit I have added a small helper script I use during development for quick deployments. I am not sure whether or not this is too specific. Feel free to add or drop it :-)

@thebigpotatoe
Copy link
Owner

Awesome stuff. The split does make things much more readable. This will all work along side some of the other changes I'm making to add new modes too.

The script is awesome too. Not a huge fan of python, probably because i don't know it enough, but the script works perfectly. So I'll defiantly keep it in the repo.

Thanks again.

@thebigpotatoe thebigpotatoe merged commit 143042d into thebigpotatoe:master Dec 7, 2019
@LarsMichelsen
Copy link
Collaborator Author

Nice.

Not a huge fan of python, probably because i don't know it enough

It's absolutely worth to give it some time :)

@LarsMichelsen LarsMichelsen deleted the website-editing branch December 7, 2019 08:52
@thebigpotatoe thebigpotatoe mentioned this pull request Dec 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants