-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Information not saved when refreshing browser #13
Comments
Hello @moryoav, |
I use it in English and the text is "Loading ...". Not the issue that troubled me though... I'll see if I can figure out a workaround to the refresh in Node-Red. |
You could use the same principle that is found in this module. They use "fs" in Node.js to read/write a file in the root directory of the module called "logs.json". In this file is stored all the previous message receive. In our situation, it will be a list of all the last state of each sensor. something like: {
sensors: {
"1": {
"temp": 27,
"humidity": 30.4,
"battery": 100,
},
"2": {
"temp": 28,
"humidity": 30.2,
"battery": 59,
}
}
} |
The module works great and displayed temperature and humidity. However, the information does not survive a browser refresh, when the browser is refreshed the information is lost, it'll display "Loading ..." instead of the last known info. Can that be avoided? anyway to store the information somehow? (Since it's only a browser refresh, not a service restart)
The text was updated successfully, but these errors were encountered: