Comments (9)
You can find Sensor ID in HTTP Header of request. Look for X-Sensor
POST /data.php HTTP/1.1
Host: api.host.com
X-Sensor: esp8266-1335052
from sensors-software.
Good to know that the data is available in the HTTP header. But for the ease of consumption i.e. with Node-Red it would help to have it in the JSON directly.
from sensors-software.
+1
from sensors-software.
If @ricki-z confirm, I can add necessary code and make PR to project.
But in my opinion, this will add a few line of code witch will duplicate existing information (in header). As you may know, ESP has a limited memory and it is not a good idea to waste it.
from sensors-software.
I've added the ID to the JSON sent to custom api in the actual version. This will add 112 Byte to filesize. can someone test it?
from sensors-software.
I've tested it. It doesn't work as is.
You send 'data' but should send 'data_4_custom'.
So change line 2573 to:
sendData(data_4_custom,0,host_custom,port_custom,url_custom,basic_auth_custom.c_str(),FPSTR(TXT_CONTENT_TYPE_JSON));
Then it works as expected .
from sensors-software.
Is changed. Will be pushed to the sensors in the next days.
from sensors-software.
Excellent. Thank you all. Will check and then close the issue.
from sensors-software.
Got Firmware: NRZ-2017-086 on my sensors now and the JSON does now contain esp8266id
from sensors-software.
Related Issues (20)
- Please support Sensirion SEN6x sensors HOT 2
- compilation failed HOT 2
- Device hangs every 2 to 3 days HOT 17
- Beta: No automatic refresh of the values site.
- Fehlübermittlung HOT 1
- temp compensation limited? unable to apply with HTU21D
- Restart nach 1/2 Jahr: Keine Messwerte mehr HOT 4
- Wifi with Username/PW or Public with accepting the agreement first HOT 2
- continuous exception (28) with NRZ-2020-133/DE HOT 31
- Platformio Firmware compilation fails (SSD1306 library missing) HOT 5
- WiFi signal stength and BME250 air pressuse on a LCD1602 HOT 2
- bei jedem reboot geht die WLAN Konfiguration ( Passwort ) verloren und Sensor geht in Konfigurationsmodus HOT 7
- beta-esp32 branch HOT 2
- wrong ID, sensor comunity HOT 2
- SEN5X PM measurement is not working HOT 2
- Support for all data on non-rotating display #enhancement HOT 1
- Support for battery reporting #enhancement HOT 6
- Sensor displays - 141.6 °C HOT 12
- doesn't compile anymore for esp8266 HOT 1
- Remove "aircms.online" "Public air quality monitoring in Russia" from firmware HOT 5
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 sensors-software.