Comments (12)
Actually there is a 4th option, on the OpenEVSE WiFi firmware we no longer use SPIFFS to reduce memory usage. All the HTML/JS/CSS files are compiled into the firmware so you would be able to use the SD lib to problem.
The two OpenEVSE WiFi firmware and EmonESP are similar code bases so should be possible to port the changes, that is certainly on the list of things to do. It is however a rather complex change I am afraid.
One thing that may help is this: https://docs.platformio.org/en/latest/platforms/espressif32.html#embedding-binary-data, but that may only be for the ESP32.
PS really sorry I have not had a chance to look at the emonDC
from emonesp.
Oh yeah I gave you one ages ago. Keep it? Bin it? Not sure what you could do with it really. Old version with more than one design issue! You're also welcome to send it back.
That 4th option makes sense, coincidentally it's something I mentioned to Trystan today. I first noticed it was possible to embed all the website stuff in the first flash, hard-code the images etc., in the Luftdaten.info project esp8266 firmware.
I think this 4th option will have to go on the list..
from emonesp.
Today the task is to make another menu box item in the emonESP webpage with a toggle switch to activate another mode.. "sampling with the external ADC and doing some maths", and sending through the values by the emonESP backend to appear at "latest data".
SD card afterwards..
from emonesp.
from emonesp.
from emonesp.
FYI I spoke with @glynhudson and I will be working on pulling some of the OpenEVSE changes into EmonESP, including the changes to embed the HTML/JS in the firmware, probably will be over the next couple of weeks.
Re your attempts to enabling the ADC directly may be an idea to raise a separate issue with a bit more detail, or if you already have some code create a PR so we can see the code.
from emonesp.
from emonesp.
from emonesp.
from emonesp.
I'll close the issue. The SD card issue won't be a problem with moving everything to the main 4MB memory.
It's in my interest to improve EmonESP as a foundation to my DC project. So we could coordinate to bring the code together if you like.
my email address is dgbates2 .. At.. Gmail.. Dot.. Com.
from emonesp.
from emonesp.
I'd probably be able to help but I haven't made a library before so I'd probably be a bit slow.
I get the concept of creating self-contained programs using classes and private initialisations, that's about it.
Maybe my help goes as far as janitorial duties :) Like, I changed config.js to point to emoncms.org by default.
function ConfigViewModel() {
BaseViewModel.call(this, {
"ssid": "",
"pass": "",
"emoncms_server": "emoncms.org",
"emoncms_path": "",
"emoncms_apikey": "",
"emoncms_node": "",
"emoncms_fingerprint": "",
"mqtt_server": "",
"mqtt_topic": "",
"mqtt_feed_prefix": "",
"mqtt_user": "",
"mqtt_pass": "",
"www_username": "",
"www_password": "",
"espflash": "",
"version": "0.0.0"
}, baseEndpoint + '/config');
from emonesp.
Related Issues (20)
- EmonCMS HTTPs fingerprint is not treated correctly HOT 1
- Add selectable baud rate
- Automatic Scheduled Restart HOT 1
- Timer 2 not working at all
- Release 3.1.0 on SonOff Basic WIFI switch HOT 4
- More than one package has been found by NTPClient @ 3.1.0 HOT 1
- Non standard MQTT port not saving
- No ability to change the serial baudrate HOT 2
- MQTT host IP address incorrect in debug HOT 2
- emoncms_path is missing HOT 1
- Add a 'last will' availability topic to MQTT
- State is not published to MQTT when smartplug is controlled via MQTT HOT 1
- Define HTTP Port of target emoncms server from UI HOT 2
- Time is wrong... HOT 1
- What is the purpose of the 'ctrl_update' variable ?
- Some part of the UI shown even should be hidden...
- Default values get overwritten... wrong behaviour HOT 2
- Control state On/Off/Timer is not saved if nothing else is changed in the dialog
- Current time ignores DST...
- NTP time with time zone and dst HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emonesp.