GithubHelp home page GithubHelp logo

Comments (8)

ludiazv avatar ludiazv commented on August 25, 2024 1

Thanks! I will include them in the project!

from node-red-contrib-bme280.

ludiazv avatar ludiazv commented on August 25, 2024

Yes. The current desing is wrong for that purpose. I can modify it to reuse the inconming message so no properties are lost.

I can commit the changes to the master branch. Could you help me testing it?

Regards,

from node-red-contrib-bme280.

shinobu1234 avatar shinobu1234 commented on August 25, 2024

Then that will simplify matters.
I'll test of course.

from node-red-contrib-bme280.

ludiazv avatar ludiazv commented on August 25, 2024

I commit a quick fix among other pending commits I had. It's not tested and not updated on nmp yet. You can test if works however.

from node-red-contrib-bme280.

shinobu1234 avatar shinobu1234 commented on August 25, 2024

it's work!
thank you!

from node-red-contrib-bme280.

ludiazv avatar ludiazv commented on August 25, 2024

Great! I will in publish the new version to npm soon.
Could you share a sample flow with http integration? I will put on the respository to help other users.

Regards,

from node-red-contrib-bme280.

shinobu1234 avatar shinobu1234 commented on August 25, 2024

JSON version sample.
Data of the JSON form can be acquired.
http: //{Node-RED host-ip}: 1880/bme280json

[{"id":"17646079.863cc","type":"http in","z":"9b546cc2.584d9","name":"","url":"bme280json","method":"get","upload":false,"swaggerDoc":"","x":110,"y":860,"wires":[["56ddef05.a245c"]]},{"id":"12587b55.d46e65","type":"http response","z":"9b546cc2.584d9","name":"","statusCode":"200","headers":{},"x":720,"y":860,"wires":[]},{"id":"56ddef05.a245c","type":"Bme280","z":"9b546cc2.584d9","name":"","bus":"1","address":"0x76","topic":"bme280","extra":false,"x":280,"y":860,"wires":[["46a48ddd.381ca4"]]},{"id":"46a48ddd.381ca4","type":"json","z":"9b546cc2.584d9","name":"","property":"payload","action":"","pretty":false,"x":410,"y":860,"wires":[["7dc41cd6.f34034"]]},{"id":"7dc41cd6.f34034","type":"template","z":"9b546cc2.584d9","name":"plain json","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}}","output":"str","x":560,"y":860,"wires":[["12587b55.d46e65"]]}]

enjoy.

from node-red-contrib-bme280.

shinobu1234 avatar shinobu1234 commented on August 25, 2024

HTML version sample flow.
Data can be acquired by a web page.
http: //{Node-RED host-ip}: 1880/bme280

[{"id":"17646079.863cc","type":"http in","z":"9b546cc2.584d9","name":"","url":"bme280","method":"get","upload":false,"swaggerDoc":"","x":90,"y":860,"wires":[["56ddef05.a245c"]]},{"id":"12587b55.d46e65","type":"http response","z":"9b546cc2.584d9","name":"","statusCode":"200","headers":{},"x":600,"y":860,"wires":[]},{"id":"2a13956c.f3379a","type":"template","z":"9b546cc2.584d9","name":"メインHTML","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"BME280 DATA: <BR>\n<HR>\nTEMPERATURE: {{payload.temperature_C}}<BR>\nPRESSURE: {{payload.pressure_hPa}}<BR>\nHUMIDITY: {{payload.humidity}}<BR>\n<HR>","output":"str","x":430,"y":860,"wires":[["12587b55.d46e65"]]},{"id":"56ddef05.a245c","type":"Bme280","z":"9b546cc2.584d9","name":"","bus":"1","address":"0x76","topic":"bme280","extra":false,"x":260,"y":860,"wires":[["2a13956c.f3379a"]]}]

from node-red-contrib-bme280.

Related Issues (9)

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.